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;
166 temperature = STP_Temperature;
173 density = 1.7836*
mg/
cm3 ;
177 density = 1.25053*
mg/
cm3 ;
181 density = 1.4289*
mg/
cm3 ;
186 density = 1.2928*
mg/
cm3 ;
189 temperature = STP_Temperature;
190 pressure = 1.0e-8*STP_Pressure;
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
PurgMagDetectorConstruction()
CLHEP::Hep3Vector G4ThreeVector
G4bool SetDetectorField(G4Field *detectorField)
void AddMaterial(G4Material *material, G4double fraction)
G4Cache< G4MagneticField * > fField
G4VPhysicalVolume * ConstructCalorimeter()
const G4String & GetName() const
void SetVisibility(G4bool)
static G4MaterialTable * GetMaterialTable()
G4double GetDeltaOneStep() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
void SetForceSolid(G4bool)
G4LogicalVolume * logicGap2
G4LogicalVolume * logicGap1
G4GLOB_DLL std::ostream G4cout
void ConstructSDandField()
G4double MeasureVolumeSizeXY
G4VPhysicalVolume * physiGap1
G4Box * solidMeasureVolume
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const
G4VPhysicalVolume * physiWorld
G4VPhysicalVolume * physiMeasureVolume
~PurgMagDetectorConstruction()
G4VPhysicalVolume * Construct()
void AddElement(G4Element *element, G4int nAtoms)
void CreateChordFinder(G4MagneticField *detectorMagField)
G4LogicalVolume * logicMeasureVolume
G4LogicalVolume * logicWorld
void Put(const value_type &val) const
G4VPhysicalVolume * physiGap2
G4double MeasureVolumeSizeZ
void SetVisAttributes(const G4VisAttributes *pVA)
G4Material * WorldMaterial