35 #include "DetectorConstruction.hh"
36 #include "DetectorMessenger.hh"
58 fBox(nullptr), fMaterial(nullptr)
69 {
delete fDetectorMessenger;}
73 void DetectorConstruction::DefineMaterials()
91 G4int ncomponents, natoms;
110 density = 0.001*
mg/
cm3;
192 fBox =
new G4Box(
"Container",
193 fBoxSize/2,fBoxSize/2,fBoxSize/2);
231 fMaterial = pttoMaterial;
234 G4cout <<
"\n--> warning from DetectorConstruction::SetMaterial : "
235 << materialChoice <<
" not found" <<
G4endl;
246 fBox->SetXHalfLength(fBoxSize/2);
247 fBox->SetYHalfLength(fBoxSize/2);
248 fBox->SetZHalfLength(fBoxSize/2);
259 if ( fFieldMessenger.
Get() == 0 ) {
268 fFieldMessenger.
Put( msg );
G4IonisParamMat * GetIonisation() const
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
static constexpr double mg
CLHEP::Hep3Vector G4ThreeVector
void AddMaterial(G4Material *material, G4double fraction)
std::vector< ExP01TrackerHit * > a
int universe_mean_density
void SetMeanExcitationEnergy(G4double value)
static constexpr double perCent
const G4String & GetName() const
G4VPhysicalVolume * Construct()
static G4MaterialTable * GetMaterialTable()
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
static G4NistManager * Instance()
virtual void ConstructSDandField()
G4GLOB_DLL std::ostream G4cout
static constexpr double m
const XML_Char int const XML_Char * value
void PhysicsHasBeenModified()
void AddIsotope(G4Isotope *isotope, G4double RelativeAbundance)
static constexpr double eV
static constexpr double kelvin
static constexpr double cm3
static G4RunManager * GetRunManager()
void AddElement(G4Element *element, G4int nAtoms)
G4Element * FindOrBuildElement(G4int Z, G4bool isotopes=true)
void SetMaterial(G4Material *pMaterial)
void Put(const value_type &val) const
static constexpr double atmosphere
static constexpr double mole
void SetMaterial(G4String)