77 "Define magnetic field value (in X direction");
97 return DefineVolumes();
103 void B4dDetectorConstruction::DefineMaterials()
107 G4bool fromIsotopes =
false;
130 G4int nofLayers = 10;
135 G4double layerThickness = absoThickness + gapThickness;
136 G4double calorThickness = nofLayers * layerThickness;
137 G4double worldSizeXY = 1.2 * calorSizeXY;
138 G4double worldSizeZ = 1.2 * calorThickness;
145 if ( ! defaultMaterial || ! absorberMaterial || ! gapMaterial ) {
146 G4cerr <<
"Cannot retrieve materials already defined. " <<
G4endl;
156 worldSizeXY/2, worldSizeXY/2, worldSizeZ/2);
179 =
new G4Box(
"Calorimeter",
180 calorSizeXY/2, calorSizeXY/2, calorThickness/2);
203 calorSizeXY/2, calorSizeXY/2, layerThickness/2);
224 calorSizeXY/2, calorSizeXY/2, absoThickness/2);
247 calorSizeXY/2, calorSizeXY/2, gapThickness/2);
268 G4cout <<
"\n------------------------------------------------------------"
269 <<
"\n---> The calorimeter is " << nofLayers <<
" layers of: [ "
270 << absoThickness/
mm <<
"mm of " << absorberMaterial->
GetName()
272 << gapThickness/
mm <<
"mm of " << gapMaterial->
GetName() <<
" ] "
273 <<
"\n------------------------------------------------------------\n";
336 if ( fMagField )
delete fMagField;
338 if ( fieldValue != 0. ) {