W
pliku src/MyDetectorConstruction.cc
(zmiany kolorem czerwonym)
...............................................................................................
void MyDetectorConstruction::DefineMaterials()
{
G4String symbol;
G4double a, z, density;
G4int ncomponents;
G4double fractionmass;
// Define simple
materials
// Define beryllium, silicon and iron
new
G4Material("Beryllium", z=4., a=9.012182*g/mole,
density=1.8480*g/cm3);
new
G4Material("Silicon", z=14., a=28.0855*g/mole,
density=2.330*g/cm3);
new
G4Material("Iron", z=26.,
a=55.845*g/mole, density=7.87*g/cm3);
new G4Material("Titanium", z=22.,
a=47.90*g/mole, density=4.540*g/cm3);
// Define elements
G4Element* N = new G4Element("Nitrogen", symbol="N", z=7.,
a=14.01*g/mole);
G4Element* O = new G4Element("Oxygen",
symbol="O", z=8., a=16.00*g/mole);
..................................................................................................