35 #include "DetectorConstruction.hh"
36 #include "DetectorMessenger.hh"
60 fNLtot(40),fNRtot(50),fDLradl(0.5),fDRradl(0.1),
61 fDLlength(0.),fDRlength(0.),
63 fEcalLength(0.),fEcalRadius(0.),
64 fSolidEcal(0),fLogicEcal(0),fPhysiEcal(0),
75 {
delete fDetectorMessenger;}
81 return ConstructVolumes();
86 void DetectorConstruction::DefineMaterials()
102 G4int ncomponents, natoms;
134 fDLlength = fDLradl*Radl; fDRlength = fDRradl*Radl;
135 fEcalLength = fNLtot*fDLlength; fEcalRadius = fNRtot*fDRlength;
146 fSolidEcal =
new G4Tubs(
"Ecal",0.,fEcalRadius,0.5*fEcalLength,0.,360*
deg);
149 fLogicEcal,
"Ecal",0,
false,0);
169 if(pttoMaterial && fMaterial != pttoMaterial) {
170 fMaterial = pttoMaterial;
171 if(fLogicEcal) { fLogicEcal->
SetMaterial(fMaterial); }
180 fNLtot = (
G4int)Value(0);
182 G4cout <<
"\n ---> warning from SetLBining: "
194 fNRtot = (
G4int)Value(0);
196 G4cout <<
"\n ---> warning from SetRBining: "
208 if ( fFieldMessenger.
Get() == 0 ) {
217 fFieldMessenger.
Put( msg );
G4IonisParamMat * GetIonisation() const
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
CLHEP::Hep3Vector G4ThreeVector
std::vector< ExP01TrackerHit * > a
void SetMeanExcitationEnergy(G4double value)
const G4String & GetName() const
G4VPhysicalVolume * Construct()
static G4MaterialTable * GetMaterialTable()
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void SetLBining(G4ThreeVector)
static G4NistManager * Instance()
static G4PhysicalVolumeStore * GetInstance()
virtual void ConstructSDandField()
G4GLOB_DLL std::ostream G4cout
void PhysicsHasBeenModified()
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
static constexpr double eV
static G4GeometryManager * GetInstance()
G4double GetRadlen() const
static constexpr double cm3
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
static G4RunManager * GetRunManager()
void SetRBining(G4ThreeVector)
void OpenGeometry(G4VPhysicalVolume *vol=0)
void AddElement(G4Element *element, G4int nAtoms)
static constexpr double deg
void SetMaterial(G4Material *pMaterial)
void Put(const value_type &val) const
static constexpr double mole
void SetMaterial(G4String)