34 #include "DetectorConstruction.hh"
35 #include "DetectorMessenger.hh"
60 fDefaultMaterial(0),fSolidWorld(0),fLogicWorld(0),fPhysiWorld(0),
61 fSolidCalor(0),fLogicCalor(0),fPhysiCalor(0),
62 fSolidLayer(0),fLogicLayer(0),fPhysiLayer(0),
63 fMagField(0),fDetectorMessenger(0)
164 new G4Material(
"Polystyrene", density= 1.032*
g/
cm3, ncomponents=2);
169 new G4Material(
"Scintillator", density= 1.032*
g/
cm3, ncomponents=2);
266 density = universe_mean_density;
268 temperature = 2.73*
kelvin;
272 density = 1.e-5*
g/
cm3;
273 pressure = 2.e-2*
bar;
274 temperature = STP_Temperature;
276 new G4Material(
"Beam", density, ncomponents=1,
410 G4cout <<
"\n-------------------------------------------------------------"
411 <<
"\n ---> The calorimeter is " <<
fNbOfLayers <<
" layers of:";
417 G4cout <<
"\n-------------------------------------------------------------\n";
423 G4cout <<
"\n-------------------------------------------------------------\n";
443 {
G4cout <<
"\n --->warning from SetfNbOfLayers: "
444 << ival <<
" must be at least 1. Command refused" <<
G4endl;
456 if (ival < 1 || ival > (
MaxAbsor-1))
457 {
G4cout <<
"\n ---> warning from SetfNbOfAbsor: "
458 << ival <<
" must be at least 1 and and most " <<
MaxAbsor-1
459 <<
". Command refused" <<
G4endl;
472 {
G4cout <<
"\n --->warning from SetAbsorMaterial: absor number "
473 << ival <<
" out of range. Command refused" <<
G4endl;
489 {
G4cout <<
"\n --->warning from SetAbsorThickness: absor number "
490 << ival <<
" out of range. Command refused" <<
G4endl;
494 {
G4cout <<
"\n --->warning from SetAbsorThickness: thickness "
495 << val <<
" out of range. Command refused" <<
G4endl;
508 {
G4cout <<
"\n --->warning from SetfCalorSizeYZ: thickness "
509 << val <<
" out of range. Command refused" <<
G4endl;
G4LogicalVolume * fLogicLayer
G4IonisParamMat * GetIonisation() const
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
void SetChemicalFormula(const G4String &chF)
CLHEP::Hep3Vector G4ThreeVector
G4bool SetDetectorField(G4Field *detectorField)
void AddMaterial(G4Material *material, G4double fraction)
void SetMeanExcitationEnergy(G4double value)
const G4String & GetName() const
G4VPhysicalVolume * Construct()
void SetBirksConstant(G4double value)
void SetWorldMaterial(const G4String &)
G4VPhysicalVolume * fPhysiAbsor[MaxAbsor]
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4VPhysicalVolume * fPhysiLayer
G4Material * fAbsorMaterial[MaxAbsor]
static G4NistManager * Instance()
void SetNbOfLayers(G4int)
virtual void DefineWorldVolume(G4VPhysicalVolume *worldVol, G4bool topologyIsChanged=true)
G4LogicalVolume * fLogicAbsor[MaxAbsor]
static G4PhysicalVolumeStore * GetInstance()
G4double fAbsorThickness[MaxAbsor]
void ComputeCalorParameters()
G4GLOB_DLL std::ostream G4cout
G4LogicalVolume * fLogicWorld
G4VPhysicalVolume * fPhysiWorld
void SetAbsorMaterial(G4int, const G4String &)
G4LogicalVolume * fLogicCalor
void AddIsotope(G4Isotope *isotope, G4double RelativeAbundance)
G4VPhysicalVolume * fPhysiCalor
G4UniformMagField * fMagField
static G4LogicalVolumeStore * GetInstance()
static G4SolidStore * GetInstance()
static const double perCent
static G4GeometryManager * GetInstance()
static const double kelvin
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const
static G4RunManager * GetRunManager()
G4Material * fDefaultMaterial
void SetCalorSizeYZ(G4double)
void SetMagField(G4double)
G4Box * fSolidAbsor[MaxAbsor]
G4VPhysicalVolume * ConstructCalorimeter()
static const double atmosphere
void SetAbsorThickness(G4int, G4double)
void OpenGeometry(G4VPhysicalVolume *vol=0)
void AddElement(G4Element *element, G4int nAtoms)
G4Material * ConstructNewGasMaterial(const G4String &name, const G4String &nameNist, G4double temp, G4double pres, G4bool isotopes=true)
void CreateChordFinder(G4MagneticField *detectorMagField)
void PrintCalorParameters()
G4Element * FindOrBuildElement(G4int Z, G4bool isotopes=true)
Messenger class that defines commands for DetectorConstruction.
DetectorMessenger * fDetectorMessenger