Just to give you a general principle off any Monte Carlo code, you have to define it with their elemental mass fractions as well as densities. On the other hand, each code has their material definition rules. So, better to read guide of Geant4 carefully. I agree with Al-Noor about the link that given in previous response.