34 #include "DetectorConstruction.hh"
35 #include "DetectorMessenger.hh"
57 fBox(0), fBoxSize(500*
m), fMaterial(0), fMagField(0),
58 fUserLimits(0), fDetectorMessenger(0)
73 {
delete fDetectorMessenger;}
79 return ConstructVolumes();
84 void DetectorConstruction::DefineMaterials()
111 sBox =
new G4Box(
"Container",
112 fBoxSize/2,fBoxSize/2,fBoxSize/2);
151 if (pttoMaterial) fMaterial = pttoMaterial;
172 if (fMagField)
delete fMagField;
194 {
G4cout <<
"\n --->warning from SetMaxStepSize: maxStep "
195 << val <<
" out of range. Command refused" <<
G4endl;
208 {
G4cout <<
"\n --->warning from SetMaxStepLength: maxStep "
209 << val <<
" out of range. Command refused" <<
G4endl;
virtual void SetMaxAllowedStep(G4double ustepMax)
CLHEP::Hep3Vector G4ThreeVector
void SetMaxStepSize(G4double)
G4bool SetDetectorField(G4Field *detectorField)
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
const G4String & GetName() const
G4VPhysicalVolume * Construct()
void SetUserLimits(G4UserLimits *pULimits)
static G4MaterialTable * GetMaterialTable()
#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()
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const
static G4RunManager * GetRunManager()
void SetMagField(G4double)
void SetMaxStepLength(G4double)
const XML_Char int const XML_Char * value
void OpenGeometry(G4VPhysicalVolume *vol=0)
void SetLargestAcceptableStep(G4double newBigDist)
void CreateChordFinder(G4MagneticField *detectorMagField)
G4PropagatorInField * GetPropagatorInField() const
void SetMaterial(G4String)