35 #include "DetectorConstruction.hh"
36 #include "DetectorMessenger.hh"
62 fPBox(0), fLBox(0), fMaterial(0), fMagField(0), fDetectorMessenger(0)
73 {
delete fDetectorMessenger;}
79 return ConstructVolumes();
84 void DetectorConstruction::DefineMaterials()
130 sBox =
new G4Box(
"Container",
131 fBoxSize/2,fBoxSize/2,fBoxSize/2);
157 <<
" of " << fMaterial->
GetName()
158 <<
"\n \n" << fMaterial <<
G4endl;
170 if(fMaterial != pttoMaterial) {
171 fMaterial = pttoMaterial;
176 G4cout <<
"\n--> warning from DetectorConstruction::SetMaterial : "
177 << materialChoice <<
" not found" <<
G4endl;
197 if (fMagField)
delete fMagField;
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
CLHEP::Hep3Vector G4ThreeVector
G4bool SetDetectorField(G4Field *detectorField)
const G4String & GetName() const
G4VPhysicalVolume * Construct()
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
static G4NistManager * Instance()
static G4PhysicalVolumeStore * GetInstance()
G4GLOB_DLL std::ostream G4cout
void PhysicsHasBeenModified()
void AddIsotope(G4Isotope *isotope, G4double RelativeAbundance)
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
static G4GeometryManager * GetInstance()
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const
static G4RunManager * GetRunManager()
void SetMagField(G4double)
G4Material * MaterialWithSingleIsotope(G4String, G4String, G4double, G4int, G4int)
const XML_Char int const XML_Char * value
void OpenGeometry(G4VPhysicalVolume *vol=0)
void AddElement(G4Element *element, G4int nAtoms)
void CreateChordFinder(G4MagneticField *detectorMagField)
void SetMaterial(G4Material *pMaterial)
void SetMaterial(G4String)