35 #include "DetectorConstruction.hh"
36 #include "DetectorMessenger.hh"
56 :fWallMaterial(0),fWall(0),fCavityMaterial(0),fCavity(0),fDetectorMessenger(0)
59 fCavityThickness = 2*
mm;
62 fWallThickness = 5*
mm;
75 {
delete fDetectorMessenger;}
81 return ConstructVolumes();
86 void DetectorConstruction::DefineMaterials()
137 fTotalThickness = fCavityThickness + 2*fWallThickness;
138 fWallRadius = fCavityRadius + fWallThickness;
141 sChamber =
new G4Tubs(
"Chamber",
142 0.,fWallRadius,0.5*fTotalThickness,0.,
twopi);
160 sCavity =
new G4Tubs(
"Cavity",
161 0.,fCavityRadius,0.5*fCavityThickness,0.,
twopi);
188 G4cout <<
"\n---------------------------------------------------------\n";
190 <<
" of " << fWallMaterial->
GetName() <<
" ( "
193 <<
" of " << fCavityMaterial->
GetName() <<
" ( "
195 G4cout <<
"\n---------------------------------------------------------\n";
203 fWallThickness =
value;
212 if (pttoMaterial) fWallMaterial = pttoMaterial;
219 fCavityThickness =
value;
226 fCavityRadius =
value;
235 if (pttoMaterial) fCavityMaterial = pttoMaterial;
G4IonisParamMat * GetIonisation() const
static constexpr double mm
static constexpr double mg
CLHEP::Hep3Vector G4ThreeVector
std::vector< ExP01TrackerHit * > a
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
void SetMeanExcitationEnergy(G4double value)
static constexpr double perCent
const G4String & GetName() const
G4VPhysicalVolume * Construct()
static G4MaterialTable * GetMaterialTable()
G4double GetDensity() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
static constexpr double twopi
virtual void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
static G4PhysicalVolumeStore * GetInstance()
G4GLOB_DLL std::ostream G4cout
const XML_Char int const XML_Char * value
static constexpr double cm
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
static constexpr double eV
static G4GeometryManager * GetInstance()
void SetWallMaterial(G4String)
static constexpr double cm3
void SetCavityMaterial(G4String)
void SetCavityRadius(G4double)
static G4RunManager * GetRunManager()
void SetCavityThickness(G4double)
void SetWallThickness(G4double)
void OpenGeometry(G4VPhysicalVolume *vol=0)
void AddElement(G4Element *element, G4int nAtoms)
static constexpr double mole