34 #include "DetectorConstruction.hh"
35 #include "DetectorMessenger.hh"
245 G4cout <<
"\n-------------------------------------------------------------"
246 <<
"\n ---> The Absorber is " <<
fNbOfAbsor <<
" layers of:";
253 G4cout <<
"\n-------------------------------------------------------------\n"
263 if (ival < 1 || ival > (
MaxAbsor-1))
264 {
G4cout <<
"\n ---> warning from SetfNbOfAbsor: "
265 << ival <<
" must be at least 1 and and most " <<
MaxAbsor-1
266 <<
". Command refused" <<
G4endl;
279 if (iabs > fNbOfAbsor || iabs <= 0)
280 {
G4cout <<
"\n --->warning from SetfAbsorMaterial: absor number "
281 << iabs <<
" out of range. Command refused" <<
G4endl;
299 if (iabs > fNbOfAbsor || iabs <= 0)
300 {
G4cout <<
"\n --->warning from SetfAbsorThickness: absor number "
301 << iabs <<
" out of range. Command refused" <<
G4endl;
305 {
G4cout <<
"\n --->warning from SetfAbsorThickness: thickness "
306 << val <<
" out of range. Command refused" <<
G4endl;
320 {
G4cout <<
"\n --->warning from SetfAbsorSizeYZ: thickness "
321 << val <<
" out of range. Command refused" <<
G4endl;
334 if (iabs > fNbOfAbsor || iabs < 1)
335 {
G4cout <<
"\n --->warning from SetNbOfDivisions: absor number "
336 << iabs <<
" out of range. Command refused" <<
G4endl;
341 {
G4cout <<
"\n --->warning from SetNbOfDivisions: "
342 << ival <<
" must be at least 1. Command refused" <<
G4endl;
G4IonisParamMat * GetIonisation() const
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
CLHEP::Hep3Vector G4ThreeVector
G4double fXfront[MaxAbsor]
void SetMeanExcitationEnergy(G4double value)
const G4String & GetName() const
G4VPhysicalVolume * Construct()
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4Material * fAbsorMaterial[MaxAbsor]
static G4NistManager * Instance()
G4Cache< G4GlobalMagFieldMessenger * > fFieldMessenger
static G4PhysicalVolumeStore * GetInstance()
virtual void ConstructSDandField()
G4double fAbsorThickness[MaxAbsor]
G4GLOB_DLL std::ostream G4cout
void PhysicsHasBeenModified()
G4VPhysicalVolume * fPhysiWorld
void SetAbsorMaterial(G4int, const G4String &)
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
static G4GeometryManager * GetInstance()
void ReinitializeGeometry(G4bool destroyFirst=false, G4bool prop=true)
static const double kelvin
static G4RunManager * GetRunManager()
G4Material * fDefaultMaterial
void SetAbsorSizeYZ(G4double)
void SetNbOfDivisions(G4int, G4int)
void SetAbsorThickness(G4int, G4double)
void OpenGeometry(G4VPhysicalVolume *vol=0)
void AddElement(G4Element *element, G4int nAtoms)
G4int fNbOfDivisions[MaxAbsor]
G4VPhysicalVolume * ConstructVolumes()
G4Element * FindOrBuildElement(G4int Z, G4bool isotopes=true)
void Put(const value_type &val) const
Messenger class that defines commands for DetectorConstruction.
DetectorMessenger * fDetectorMessenger