76 #define GAP 1 // Magnet geometric volume
77 #define MAG 1 // Magnetic field grid
78 #define MEASUREVOL 1 // Volume for measurement
84 :physiWorld(NULL), logicWorld(NULL), solidWorld(NULL),
85 physiGap1(NULL), logicGap1(NULL), solidGap1(NULL),
86 physiGap2(NULL), logicGap2(NULL), solidGap2(NULL),
87 physiMeasureVolume(NULL), logicMeasureVolume(NULL),
88 solidMeasureVolume(NULL),
125 G4int ncomponents, natoms;
151 density = 1.000*
g/
cm3;
158 density = 1.290*
mg/
cm3;
164 density = 1.e-5*
g/
cm3;
165 pressure = 2.e-2*
bar;
173 density = 1.7836*
mg/
cm3 ;
177 density = 1.25053*
mg/
cm3 ;
181 density = 1.4289*
mg/
cm3 ;
186 density = 1.2928*
mg/
cm3 ;
193 density,ncomponents=3,
195 LaboratoryVacuum->
AddMaterial( Nitrogen, fractionmass = 0.7557 ) ;
196 LaboratoryVacuum->
AddMaterial( Oxygen, fractionmass = 0.2315 ) ;
197 LaboratoryVacuum->
AddMaterial( Argon, fractionmass = 0.0128 ) ;
208 G4cout <<
"end material"<< endl;
264 G4cout <<
"\n-----------------------------------------------------------"
265 <<
"\n Geometry and materials"
266 <<
"\n-----------------------------------------------------------"
273 G4cout <<
"\n-----------------------------------------------------------"
274 <<
"\n ---> Purging Magnet:"
283 G4cout <<
"\n-----------------------------------------------------------"
284 <<
"\n ---> Measurement Volume:"
291 G4cout <<
"\n-----------------------------------------------------------\n";
G4double MeasureVolumePosition
CLHEP::Hep3Vector G4ThreeVector
G4Cache< G4MagneticField * > fField
G4double GetDeltaOneStep() const
static constexpr double STP_Temperature
static G4MaterialTable * GetMaterialTable()
G4VPhysicalVolume * physiMeasureVolume
static constexpr double mm
G4VPhysicalVolume * physiGap2
G4double MeasureVolumeSizeXY
G4Material * WorldMaterial
G4VPhysicalVolume * ConstructCalorimeter()
static constexpr double STP_Pressure
G4bool SetDetectorField(G4Field *detectorField, int failMode=0)
G4Box * solidMeasureVolume
void CreateChordFinder(G4MagneticField *detectorMagField)
const G4String & GetName() const
static constexpr double g
G4FieldManager * GetFieldManager() const
static constexpr double mg
void ConstructSDandField()
G4LogicalVolume * logicWorld
void SetVisAttributes(const G4VisAttributes *pVA)
void Put(const value_type &val) const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
static G4TransportationManager * GetTransportationManager()
G4double MeasureVolumeSizeZ
G4LogicalVolume * logicGap1
void SetForceSolid(G4bool=true)
void SetVisibility(G4bool=true)
G4VPhysicalVolume * Construct()
void AddElement(G4Element *element, G4int nAtoms)
~PurgMagDetectorConstruction()
G4LogicalVolume * logicGap2
G4LogicalVolume * logicMeasureVolume
static constexpr double cm
G4GLOB_DLL std::ostream G4cout
PurgMagDetectorConstruction()
static constexpr double mole
void AddMaterial(G4Material *material, G4double fraction)
G4VPhysicalVolume * physiWorld
static constexpr double bar
static constexpr double cm3
G4VPhysicalVolume * physiGap1