87 nistManager->FindOrBuildMaterial(
"G4_Pb");
114 auto layerThickness = absoThickness + gapThickness;
115 auto calorThickness =
fNofLayers * layerThickness;
116 auto worldSizeXY = 1.2 * calorSizeXY;
117 auto worldSizeZ = 1.2 * calorThickness;
124 if ( ! defaultMaterial || ! absorberMaterial || ! gapMaterial ) {
126 msg <<
"Cannot retrieve materials already defined.";
127 G4Exception(
"B4DetectorConstruction::DefineVolumes()",
136 worldSizeXY/2, worldSizeXY/2, worldSizeZ/2);
159 =
new G4Box(
"Calorimeter",
160 calorSizeXY/2, calorSizeXY/2, calorThickness/2);
183 calorSizeXY/2, calorSizeXY/2, layerThickness/2);
204 calorSizeXY/2, calorSizeXY/2, absoThickness/2);
227 calorSizeXY/2, calorSizeXY/2, gapThickness/2);
250 <<
"------------------------------------------------------------" <<
G4endl
251 <<
"---> The calorimeter is " <<
fNofLayers <<
" layers of: [ "
252 << absoThickness/
mm <<
"mm of " << absorberMaterial->GetName()
254 << gapThickness/
mm <<
"mm of " << gapMaterial->GetName() <<
" ] " <<
G4endl
255 <<
"------------------------------------------------------------" <<
G4endl;
263 simpleBoxVisAtt->SetVisibility(
true);
264 calorLV->SetVisAttributes(simpleBoxVisAtt);