31 #include "B4DetectorConstruction.hh"
77 "Define magnetic field value (in X direction");
97 return DefineVolumes();
102 void B4DetectorConstruction::DefineMaterials()
106 G4bool fromIsotopes =
false;
129 G4int nofLayers = 10;
134 G4double layerThickness = absoThickness + gapThickness;
135 G4double calorThickness = nofLayers * layerThickness;
136 G4double worldSizeXY = 1.2 * calorSizeXY;
137 G4double worldSizeZ = 1.2 * calorThickness;
144 if ( ! defaultMaterial || ! absorberMaterial || ! gapMaterial ) {
145 G4cerr <<
"Cannot retrieve materials already defined. " <<
G4endl;
155 worldSizeXY/2, worldSizeXY/2, worldSizeZ/2);
178 =
new G4Box(
"Calorimeter",
179 calorSizeXY/2, calorSizeXY/2, calorThickness/2);
202 calorSizeXY/2, calorSizeXY/2, layerThickness/2);
223 calorSizeXY/2, calorSizeXY/2, absoThickness/2);
247 calorSizeXY/2, calorSizeXY/2, gapThickness/2);
269 G4cout <<
"\n------------------------------------------------------------"
270 <<
"\n---> The calorimeter is " << nofLayers <<
" layers of: [ "
271 << absoThickness/
mm <<
"mm of " << absorberMaterial->
GetName()
273 << gapThickness/
mm <<
"mm of " << gapMaterial->
GetName() <<
" ] "
274 <<
"\n------------------------------------------------------------\n";
300 if ( fMagField )
delete fMagField;
302 if ( fieldValue != 0. ) {