62 fDetectorMessenger(0),
63 fSolidWorld(0), fLogicWorld(0), fPhysiWorld(0),
64 fSolidAbsorber(0), fLogicAbsorber(0), fPhysiAbsorber(0),
65 fAbsorberMaterial(0), fAbsorberThickness(0.), fAbsorberRadius(0.),
66 fZAbsorber(0.), fZStartAbs(0.), fZEndAbs(0.),
67 fWorldMaterial(0), fWorldSizeR(0.), fWorldSizeZ(0.)
71 fWorldSizeZ = 44000.*
mm;
72 fWorldSizeR = 22000.*
mm;
74 fAbsorberThickness = 1.0*
mm;
76 fAbsorberRadius = 20000.*
mm;
77 fZAbsorber = 21990.0*
mm;
93 delete fDetectorMessenger;
100 return ConstructCalorimeter();
105 void F01DetectorConstruction::DefineMaterials()
113 G4double fractionmass, pressure, temperature;
140 density = 1.39*
g/
cm3;
154 density = 3.700*
mg/
cm3;
160 density = 1.7836*
mg/
cm3;
164 density = 1.25053*
mg/
cm3;
168 density = 1.4289*
mg/
cm3;
172 density = 1.2928*
mg/
cm3;
180 air->
AddMaterial( nitrogen, fractionmass = 0.7557 );
187 density = 5.858*
mg/
cm3;
193 density = 1.842*
mg/
cm3;
200 density = 5.0818*
mg/
cm3;
203 Xe20CO2->
AddMaterial( CarbonDioxide, fractionmass = 0.078 );
207 density = 3.601*
mg/
cm3;
210 Kr20CO2->
AddMaterial( CarbonDioxide, fractionmass = 0.11 );
216 fAbsorberMaterial = air;
218 fWorldMaterial = air;
237 ComputeCalorParameters();
242 fSolidWorld =
new G4Tubs(
"World",
243 0.,fWorldSizeR,fWorldSizeZ/2.,0.,
twopi);
258 fSolidAbsorber =
new G4Tubs(
"Absorber", 1.0*
mm,
260 fAbsorberThickness/2.,
282 G4cout <<
"\n The WORLD is made of "
283 << fWorldSizeZ/
mm <<
"mm of " << fWorldMaterial->
GetName();
284 G4cout <<
", the transverse size (R) of the world is "
285 << fWorldSizeR/
mm <<
" mm. " <<
G4endl;
286 G4cout <<
" The ABSORBER is made of "
287 << fAbsorberThickness/
mm <<
"mm of " << fAbsorberMaterial->
GetName();
288 G4cout <<
", the transverse size (R) is " << fAbsorberRadius/
mm
290 G4cout <<
" Z position of the (middle of the) absorber "
291 << fZAbsorber/
mm <<
" mm." <<
G4endl;
304 for (
size_t j=0 ; j<theMaterialTable->size() ; j++)
305 { material = (*theMaterialTable)[j];
306 if (material->
GetName() == materialChoice)
324 for (
size_t j=0 ; j<theMaterialTable->size() ; j++)
325 { material = (*theMaterialTable)[j];
326 if(material->
GetName() == materialChoice)
340 fAbsorberThickness = val;
341 ComputeCalorParameters();
350 fAbsorberRadius = val;
351 ComputeCalorParameters();
360 ComputeCalorParameters();
369 ComputeCalorParameters();
378 ComputeCalorParameters();
388 if (!fCalorimeterSD.
Get()) {
390 fCalorimeterSD.
Put(calorimeterSD);
396 if (!fEmFieldSetup.
Get()) {
400 fEmFieldSetup.
Put(fieldSetup);
static constexpr double tesla
void SetAbsorberMaterial(G4String)
F01DetectorConstruction()
static constexpr double mm
static constexpr double mg
void SetAbsorberThickness(G4double)
CLHEP::Hep3Vector G4ThreeVector
void AddMaterial(G4Material *material, G4double fraction)
std::vector< ExP01TrackerHit * > a
const G4String & GetName() const
static G4MaterialTable * GetMaterialTable()
std::vector< G4Material * > G4MaterialTable
Definition of the F01DetectorMessenger class.
static constexpr double twopi
static G4PhysicalVolumeStore * GetInstance()
Definition of the F01DetectorConstruction class.
void SetWorldSizeR(G4double)
void SetWorldMaterial(G4String)
void SetWorldSizeZ(G4double)
G4GLOB_DLL std::ostream G4cout
Definition of the F01FieldSetup class.
void PhysicsHasBeenModified()
void SetAbsorberZpos(G4double)
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
static G4GeometryManager * GetInstance()
virtual G4VPhysicalVolume * Construct()
Definition of the F01CalorimeterSD class.
static constexpr double cm3
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
void AddNewDetector(G4VSensitiveDetector *aSD)
static G4RunManager * GetRunManager()
virtual void ConstructSDandField()
static G4SDManager * GetSDMpointer()
void OpenGeometry(G4VPhysicalVolume *vol=0)
void AddElement(G4Element *element, G4int nAtoms)
virtual ~F01DetectorConstruction()
void SetMaterial(G4Material *pMaterial)
void Put(const value_type &val) const
static constexpr double mole
void PrintCalorParameters()
void SetAbsorberRadius(G4double)