#include <F02DetectorConstruction.hh>
Definition at line 56 of file F02DetectorConstruction.hh.
F02DetectorConstruction::F02DetectorConstruction |
( |
| ) |
|
Definition at line 60 of file F02DetectorConstruction.cc.
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;
static constexpr double mm
static constexpr double cm
G4VUserDetectorConstruction()
F02DetectorConstruction::~F02DetectorConstruction |
( |
| ) |
|
|
virtual |
void F02DetectorConstruction::ConstructSDandField |
( |
| ) |
|
|
virtual |
Reimplemented from G4VUserDetectorConstruction.
Definition at line 384 of file F02DetectorConstruction.cc.
388 if (!fCalorimeterSD.
Get()) {
390 fCalorimeterSD.
Put(calorimeterSD);
397 if (!fEmFieldSetup.
Get()) {
400 fEmFieldSetup.
Put(fieldSetup);
void SetSensitiveDetector(const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
void AddNewDetector(G4VSensitiveDetector *aSD)
static G4SDManager * GetSDMpointer()
void Put(const value_type &val) const
G4Material* F02DetectorConstruction::GetAbsorberMaterial |
( |
| ) |
|
|
inline |
G4double F02DetectorConstruction::GetAbsorberRadius |
( |
| ) |
|
|
inline |
G4double F02DetectorConstruction::GetAbsorberThickness |
( |
| ) |
|
|
inline |
G4double F02DetectorConstruction::GetAbsorberZpos |
( |
| ) |
|
|
inline |
G4Material* F02DetectorConstruction::GetWorldMaterial |
( |
| ) |
|
|
inline |
G4double F02DetectorConstruction::GetWorldSizeR |
( |
| ) |
|
|
inline |
G4double F02DetectorConstruction::GetWorldSizeZ |
( |
| ) |
|
|
inline |
G4double F02DetectorConstruction::GetZEndAbs |
( |
| ) |
|
|
inline |
G4double F02DetectorConstruction::GetZStartAbs |
( |
| ) |
|
|
inline |
void F02DetectorConstruction::PrintCalorParameters |
( |
| ) |
|
Definition at line 278 of file F02DetectorConstruction.cc.
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;
static constexpr double mm
const G4String & GetName() const
G4GLOB_DLL std::ostream G4cout
void F02DetectorConstruction::SetAbsorberMaterial |
( |
G4String |
materialChoice | ) |
|
Definition at line 295 of file F02DetectorConstruction.cc.
302 for (
size_t j=0 ; j<theMaterialTable->size() ; j++)
303 { material = (*theMaterialTable)[j];
304 if (material->
GetName() == materialChoice)
const G4String & GetName() const
static G4MaterialTable * GetMaterialTable()
std::vector< G4Material * > G4MaterialTable
void PhysicsHasBeenModified()
static G4RunManager * GetRunManager()
void SetMaterial(G4Material *pMaterial)
void F02DetectorConstruction::SetAbsorberRadius |
( |
G4double |
val | ) |
|
Definition at line 345 of file F02DetectorConstruction.cc.
348 fAbsorberRadius = val;
349 ComputeCalorParameters();
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
static G4RunManager * GetRunManager()
void F02DetectorConstruction::SetAbsorberThickness |
( |
G4double |
val | ) |
|
Definition at line 335 of file F02DetectorConstruction.cc.
338 fAbsorberThickness = val;
339 ComputeCalorParameters();
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
static G4RunManager * GetRunManager()
void F02DetectorConstruction::SetAbsorberZpos |
( |
G4double |
val | ) |
|
Definition at line 375 of file F02DetectorConstruction.cc.
378 ComputeCalorParameters();
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
static G4RunManager * GetRunManager()
void F02DetectorConstruction::SetWorldMaterial |
( |
G4String |
materialChoice | ) |
|
Definition at line 315 of file F02DetectorConstruction.cc.
322 for (
size_t j=0 ; j<theMaterialTable->size() ; j++)
323 { material = (*theMaterialTable)[j];
324 if(material->
GetName() == materialChoice)
const G4String & GetName() const
static G4MaterialTable * GetMaterialTable()
std::vector< G4Material * > G4MaterialTable
void PhysicsHasBeenModified()
static G4RunManager * GetRunManager()
void SetMaterial(G4Material *pMaterial)
Definition at line 365 of file F02DetectorConstruction.cc.
367 fWorldChanged =
true;
369 ComputeCalorParameters();
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
static G4RunManager * GetRunManager()
Definition at line 355 of file F02DetectorConstruction.cc.
357 fWorldChanged =
true;
359 ComputeCalorParameters();
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
static G4RunManager * GetRunManager()
The documentation for this class was generated from the following files: