Introduction to GEANT4
From UCL HEP PBT Wiki
m |
m |
||
Line 122: | Line 122: | ||
The elements and materials are defined using classes <span style="color:#ff0000"> G4Element </span> and <span style="color:#ff0000"> G4Material </span>. For example water, hydrogen and oxygen are defined as: | The elements and materials are defined using classes <span style="color:#ff0000"> G4Element </span> and <span style="color:#ff0000"> G4Material </span>. For example water, hydrogen and oxygen are defined as: | ||
+ | |||
<span style="color:#800000"> void DetectorConstruction::DefineMaterials() { </span> | <span style="color:#800000"> void DetectorConstruction::DefineMaterials() { </span> |