Physical properties and chemical composition of the cores in the California molecular cloud