72 "Define magnetic field value (in X direction");
92 return DefineVolumes();
98 void B4cDetectorConstruction::DefineMaterials()
102 G4bool fromIsotopes =
false;
125 G4int nofLayers = 10;
130 G4double layerThickness = absoThickness + gapThickness;
131 G4double calorThickness = nofLayers * layerThickness;
132 G4double worldSizeXY = 1.2 * calorSizeXY;
133 G4double worldSizeZ = 1.2 * calorThickness;
140 if ( ! defaultMaterial || ! absorberMaterial || ! gapMaterial ) {
141 G4cerr <<
"Cannot retrieve materials already defined. " <<
G4endl;
151 worldSizeXY/2, worldSizeXY/2, worldSizeZ/2);
174 =
new G4Box(
"Calorimeter",
175 calorSizeXY/2, calorSizeXY/2, calorThickness/2);
198 calorSizeXY/2, calorSizeXY/2, layerThickness/2);
219 calorSizeXY/2, calorSizeXY/2, absoThickness/2);
242 calorSizeXY/2, calorSizeXY/2, gapThickness/2);
263 G4cout <<
"\n------------------------------------------------------------"
264 <<
"\n---> The calorimeter is " << nofLayers <<
" layers of: [ "
265 << absoThickness/
mm <<
"mm of " << absorberMaterial->
GetName()
267 << gapThickness/
mm <<
"mm of " << gapMaterial->
GetName() <<
" ] "
268 <<
"\n------------------------------------------------------------\n";
308 if ( fMagField )
delete fMagField;
310 if ( fieldValue != 0. ) {