35 #include "DetectorConstruction.hh"
36 #include "DetectorMessenger.hh"
61 fNLtot(40),fNRtot(50),fDLradl(0.5),fDRradl(0.1),
62 fDLlength(0.),fDRlength(0.),
64 fEcalLength(0.),fEcalRadius(0.),
65 fSolidEcal(0),fLogicEcal(0),fPhysiEcal(0),
76 {
delete fDetectorMessenger;}
82 return ConstructVolumes();
87 void DetectorConstruction::DefineMaterials()
103 G4int ncomponents, natoms;
135 fDLlength = fDLradl*Radl; fDRlength = fDRradl*Radl;
136 fEcalLength = fNLtot*fDLlength; fEcalRadius = fNRtot*fDRlength;
147 fSolidEcal =
new G4Tubs(
"Ecal",0.,fEcalRadius,0.5*fEcalLength,0.,360*
deg);
150 fLogicEcal,
"Ecal",0,
false,0);
170 if(pttoMaterial && fMaterial != pttoMaterial) {
171 fMaterial = pttoMaterial;
172 if(fLogicEcal) { fLogicEcal->
SetMaterial(fMaterial); }
181 fNLtot = (
G4int)Value(0);
183 G4cout <<
"\n ---> warning from SetLBining: "
195 fNRtot = (
G4int)Value(0);
197 G4cout <<
"\n ---> warning from SetRBining: "
209 if ( fFieldMessenger.
Get() == 0 ) {
218 fFieldMessenger.
Put( msg );
G4IonisParamMat * GetIonisation() const
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
CLHEP::Hep3Vector G4ThreeVector
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()
void ConstructSDandField()
G4GLOB_DLL std::ostream G4cout
void PhysicsHasBeenModified()
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
static G4GeometryManager * GetInstance()
G4double GetRadlen() const
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)
void SetMaterial(G4Material *pMaterial)
void Put(const value_type &val) const
void SetMaterial(G4String)