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), solidMeasureVolume(NULL),
123 G4int ncomponents, natoms;
149 density = 1.000*
g/
cm3;
156 density = 1.290*
mg/
cm3;
162 density = 1.e-5*
g/
cm3;
163 pressure = 2.e-2*
bar;
164 temperature = STP_Temperature;
171 density = 1.7836*
mg/
cm3 ;
175 density = 1.25053*
mg/
cm3 ;
179 density = 1.4289*
mg/
cm3 ;
184 density = 1.2928*
mg/
cm3 ;
187 temperature = STP_Temperature;
188 pressure = 1.0e-8*STP_Pressure;
191 density,ncomponents=3,
193 LaboratoryVacuum->
AddMaterial( Nitrogen, fractionmass = 0.7557 ) ;
194 LaboratoryVacuum->
AddMaterial( Oxygen, fractionmass = 0.2315 ) ;
195 LaboratoryVacuum->
AddMaterial( Argon, fractionmass = 0.0128 ) ;
206 G4cout <<
"end material"<< endl;
262 static G4bool fieldIsInitialized =
false;
263 if(!fieldIsInitialized)
280 fieldIsInitialized =
true;
288 G4cout <<
"\n-----------------------------------------------------------"
289 <<
"\n Geometry and materials"
290 <<
"\n-----------------------------------------------------------"
297 G4cout <<
"\n-----------------------------------------------------------"
298 <<
"\n ---> Purging Magnet:"
307 G4cout <<
"\n-----------------------------------------------------------"
308 <<
"\n ---> Measurement Volume:"
315 G4cout <<
"\n-----------------------------------------------------------\n";
G4double MeasureVolumePosition
PurgMagDetectorConstruction()
CLHEP::Hep3Vector G4ThreeVector
G4bool SetDetectorField(G4Field *detectorField)
void AddMaterial(G4Material *material, G4double fraction)
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)
void SetChordFinder(G4ChordFinder *aChordFinder)
G4LogicalVolume * logicGap2
G4LogicalVolume * logicGap1
G4GLOB_DLL std::ostream G4cout
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)
G4LogicalVolume * logicMeasureVolume
G4LogicalVolume * logicWorld
G4VPhysicalVolume * physiGap2
G4double MeasureVolumeSizeZ
void SetVisAttributes(const G4VisAttributes *pVA)
G4Material * WorldMaterial