35 #include "DetectorConstruction.hh"
36 #include "DetectorMessenger.hh"
56 :fWallMaterial(0),fWall(0),fCavityMaterial(0),fCavity(0),fDetectorMessenger(0)
59 fWallThickness = 5*
cm;
60 fCavityThickness = 2*
mm;
73 {
delete fDetectorMessenger;}
79 return ConstructVolumes();
84 void DetectorConstruction::DefineMaterials()
129 fWorldThickness = fCavityThickness + 2*fWallThickness;
132 sWall =
new G4Tubs(
"Wall",
133 0.,fWorldRadius,0.5*fWorldThickness,0.,
twopi);
151 sCavity =
new G4Tubs(
"Cavity",
152 0.,fWorldRadius,0.5*fCavityThickness,0.,
twopi);
179 G4cout <<
"\n---------------------------------------------------------\n";
181 <<
" of " << fWallMaterial->
GetName() <<
" ( "
184 <<
" of " << fCavityMaterial->
GetName() <<
" ( "
186 G4cout <<
"\n---------------------------------------------------------\n";
196 if (pttoMaterial) fWallMaterial = pttoMaterial;
199 if (pttoMaterial) fCavityMaterial = pttoMaterial;
206 fWallThickness =
value;
213 fCavityThickness =
value;
220 fWorldRadius =
value;
G4IonisParamMat * GetIonisation() const
CLHEP::Hep3Vector G4ThreeVector
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
void SetMeanExcitationEnergy(G4double value)
const G4String & GetName() const
G4VPhysicalVolume * Construct()
static G4MaterialTable * GetMaterialTable()
G4double GetDensity() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
virtual void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
static G4PhysicalVolumeStore * GetInstance()
G4GLOB_DLL std::ostream G4cout
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
static G4GeometryManager * GetInstance()
void SetWallMaterial(G4String)
static G4RunManager * GetRunManager()
void SetCavityThickness(G4double)
void SetWorldRadius(G4double)
void SetWallThickness(G4double)
const XML_Char int const XML_Char * value
void OpenGeometry(G4VPhysicalVolume *vol=0)
void AddElement(G4Element *element, G4int nAtoms)