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 fWorldChanged(false), fZAbsorber(0.), fZStartAbs(0.), fZEndAbs(0.),
67 fWorldMaterial(0), fWorldSizeR(0.), fWorldSizeZ(0.)
74 fAbsorberThickness = 40.0*
mm;
76 fAbsorberRadius = 10.*
cm;
93 delete fDetectorMessenger;
100 return ConstructCalorimeter();
105 void F02DetectorConstruction::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;
179 air->
AddMaterial( nitrogen, fractionmass = 0.7557 );
185 density = 5.858*
mg/
cm3;
191 density = 1.842*
mg/
cm3;
198 density = 5.0818*
mg/
cm3;
201 Xe20CO2->
AddMaterial( CarbonDioxide, fractionmass = 0.078 );
205 density = 3.601*
mg/
cm3;
208 Kr20CO2->
AddMaterial( CarbonDioxide, fractionmass = 0.11 );
214 fAbsorberMaterial = Kr20CO2;
216 fWorldMaterial = air;
235 ComputeCalorParameters();
240 fSolidWorld =
new G4Tubs(
"World",
241 0.,fWorldSizeR,fWorldSizeZ/2.,0.,
twopi);
256 fSolidAbsorber =
new G4Tubs(
"Absorber",0.,
258 fAbsorberThickness/2.,
280 G4cout <<
"\n The WORLD is made of "
281 << fWorldSizeZ/
mm <<
"mm of " << fWorldMaterial->
GetName();
282 G4cout <<
", the transverse size (R) of the world is "
283 << fWorldSizeR/
mm <<
" mm. " <<
G4endl;
284 G4cout <<
" The ABSORBER is made of "
285 << fAbsorberThickness/
mm <<
"mm of " << fAbsorberMaterial->
GetName();
286 G4cout <<
", the transverse size (R) is " << fAbsorberRadius/
mm
288 G4cout <<
" Z position of the (middle of the) absorber "
289 << fZAbsorber/
mm <<
" mm." <<
G4endl;
302 for (
size_t j=0 ; j<theMaterialTable->size() ; j++)
303 { material = (*theMaterialTable)[j];
304 if (material->
GetName() == materialChoice)
322 for (
size_t j=0 ; j<theMaterialTable->size() ; j++)
323 { material = (*theMaterialTable)[j];
324 if(material->
GetName() == materialChoice)
338 fAbsorberThickness = val;
339 ComputeCalorParameters();
348 fAbsorberRadius = val;
349 ComputeCalorParameters();
357 fWorldChanged =
true;
359 ComputeCalorParameters();
367 fWorldChanged =
true;
369 ComputeCalorParameters();
378 ComputeCalorParameters();
388 if (!fCalorimeterSD.
Get()) {
390 fCalorimeterSD.
Put(calorimeterSD);
397 if (!fEmFieldSetup.
Get()) {
400 fEmFieldSetup.
Put(fieldSetup);
Definition of the F02ElectricFieldSetup class.
static constexpr double mm
static constexpr double mg
CLHEP::Hep3Vector G4ThreeVector
void AddMaterial(G4Material *material, G4double fraction)
std::vector< ExP01TrackerHit * > a
void PrintCalorParameters()
const G4String & GetName() const
static G4MaterialTable * GetMaterialTable()
std::vector< G4Material * > G4MaterialTable
void SetWorldSizeR(G4double)
F02DetectorConstruction()
virtual ~F02DetectorConstruction()
void SetAbsorberRadius(G4double)
static constexpr double twopi
Definition of the F02DetectorConstruction class.
static G4PhysicalVolumeStore * GetInstance()
void SetWorldSizeZ(G4double)
G4GLOB_DLL std::ostream G4cout
void PhysicsHasBeenModified()
static constexpr double cm
void SetAbsorberZpos(G4double)
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
void SetWorldMaterial(G4String)
Definition of the F02DetectorMessenger class.
static G4GeometryManager * GetInstance()
Definition of the F02CalorimeterSD class.
static constexpr double cm3
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
void SetAbsorberThickness(G4double)
virtual void ConstructSDandField()
void AddNewDetector(G4VSensitiveDetector *aSD)
static G4RunManager * GetRunManager()
void SetAbsorberMaterial(G4String)
static G4SDManager * GetSDMpointer()
void OpenGeometry(G4VPhysicalVolume *vol=0)
void AddElement(G4Element *element, G4int nAtoms)
void SetMaterial(G4Material *pMaterial)
void Put(const value_type &val) const
static constexpr double mole
virtual G4VPhysicalVolume * Construct()