34 #include "DetectorConstruction.hh"
35 #include "DetectorMessenger.hh"
56 :pWorld(0), pBox(0), aMaterial(0)
63 SetTargetMaterial(
"G4_Fe");
72 delete detectorMessenger;
90 sWorld =
new G4Box(
"World",
91 worldSize/2,worldSize/2,worldSize/2);
109 sBox =
new G4Box(
"Container",
110 boxSizeXY/2.,boxSizeXY/2.,boxSizeZ/2.);
153 if (mat != aMaterial) {
158 G4cout <<
"### Warning! Target material: <"
159 << materialChoice <<
"> not found" <<
G4endl;
171 if (mat != wMaterial) {
176 G4cout <<
"### Warning! World material: <"
177 << materialChoice <<
"> not found" <<
G4endl;
187 if (worldSize<boxSizeXY) worldSize = 1.2*boxSizeXY;
194 if (worldSize<boxSizeZ) worldSize = 1.2*boxSizeZ;
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
CLHEP::Hep3Vector G4ThreeVector
void SetWorldMaterial(G4Material *amaterial)
const G4String & GetName() const
G4VPhysicalVolume * Construct()
static G4PolarizationManager * GetInstance()
void SetWorldMaterial(const G4String &)
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
static G4NistManager * Instance()
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 SetTargetMaterial(const G4String &)
static G4RunManager * GetRunManager()
const XML_Char int const XML_Char * value
void OpenGeometry(G4VPhysicalVolume *vol=0)