35 #include "DetectorConstruction.hh"
36 #include "DetectorMessenger.hh"
59 fTargetMater(0), fLogicTarget(0),
60 fDetectorMater(0), fLogicDetector(0),
61 fWorldMater(0), fPhysiWorld(0),
135 sWorld =
new G4Tubs(
"World",
154 sTarget =
new G4Tubs(
"Target",
173 sDetector =
new G4Tubs(
"Detector",
205 <<
" Tickness = " <<
G4BestUnit(fDetectorThickness,
"Length")
223 G4cout <<
"\n--> warning from DetectorConstruction::SetTargetMaterial : "
224 << materialChoice <<
" not found" <<
G4endl;
241 G4cout <<
"\n--> warning from DetectorConstruction::SetDetectorMaterial : "
242 << materialChoice <<
" not found" <<
G4endl;
266 fDetectorThickness = value;
void SetDetectorMaterial(G4String)
void SetTargetLength(G4double val)
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
G4LogicalVolume * GetLogicTarget()
void SetDetectorThickness(G4double value)
CLHEP::Hep3Vector G4ThreeVector
const G4String & GetName() const
G4VPhysicalVolume * Construct()
G4Material * fDetectorMater
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4double GetTargetRadius()
static G4NistManager * Instance()
G4LogicalVolume * fLogicTarget
static G4PhysicalVolumeStore * GetInstance()
G4GLOB_DLL std::ostream G4cout
G4Material * GetDetectorMaterial()
void PhysicsHasBeenModified()
G4VPhysicalVolume * fPhysiWorld
static const double twopi
void SetDetectorLength(G4double value)
static G4LogicalVolumeStore * GetInstance()
G4Material * fTargetMater
static G4SolidStore * GetInstance()
G4LogicalVolume * fLogicDetector
static G4GeometryManager * GetInstance()
G4double fDetectorThickness
G4double GetDetectorLength()
void SetTargetMaterial(const G4String &)
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
static const double kelvin
static G4RunManager * GetRunManager()
T max(const T t1, const T t2)
brief Return the largest of the two arguments
void SetTargetRadius(G4double val)
static const double atmosphere
void OpenGeometry(G4VPhysicalVolume *vol=0)
void AddElement(G4Element *element, G4int nAtoms)
G4VPhysicalVolume * ConstructVolumes()
G4double GetTargetLength()
void SetMaterial(G4Material *pMaterial)
Messenger class that defines commands for DetectorConstruction.
G4LogicalVolume * GetLogicDetector()
const G4Material * GetTargetMaterial() const
G4double GetDetectorThickness()
DetectorMessenger * fDetectorMessenger