Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PurgMagDetectorConstruction Class Reference

#include <PurgMagDetectorConstruction.hh>

Inheritance diagram for PurgMagDetectorConstruction:
Collaboration diagram for PurgMagDetectorConstruction:

Public Member Functions

 PurgMagDetectorConstruction ()
 
 ~PurgMagDetectorConstruction ()
 
G4VPhysicalVolumeConstruct ()
 
void ConstructSDandField ()
 
void PrintDetectorParameters ()
 
G4double GetWorldSizeXY () const
 
G4double GetWorldSizeZ () const
 
G4double GetMeasureVolumeSizeXY () const
 
G4double GetMeasureVolumeSizeZ () const
 
G4double GetGapSizeX1 ()
 
G4double GetGapSizeX2 ()
 
G4double GetGapSizeY1 ()
 
G4double GetGapSizeY2 ()
 
G4double GetGapSizeZ ()
 
G4MaterialGetWorldMaterial ()
 
G4MaterialGetGapMaterial ()
 
const G4VPhysicalVolumeGetWorld () const
 
const G4VPhysicalVolumeGetMeasureVolume () const
 
const G4VPhysicalVolumeGetGap1 () const
 
const G4VPhysicalVolumeGetGap2 () const
 
- Public Member Functions inherited from G4VUserDetectorConstruction
 G4VUserDetectorConstruction ()
 
virtual ~G4VUserDetectorConstruction ()
 
virtual void CloneSD ()
 
virtual void CloneF ()
 
void RegisterParallelWorld (G4VUserParallelWorld *)
 
G4int ConstructParallelGeometries ()
 
void ConstructParallelSD ()
 
G4int GetNumberOfParallelWorld () const
 
G4VUserParallelWorldGetParallelWorld (G4int i) const
 

Additional Inherited Members

- Protected Member Functions inherited from G4VUserDetectorConstruction
void SetSensitiveDetector (const G4String &logVolName, G4VSensitiveDetector *aSD, G4bool multi=false)
 
void SetSensitiveDetector (G4LogicalVolume *logVol, G4VSensitiveDetector *aSD)
 

Detailed Description

Definition at line 61 of file PurgMagDetectorConstruction.hh.

Constructor & Destructor Documentation

PurgMagDetectorConstruction::PurgMagDetectorConstruction ( )

Definition at line 82 of file PurgMagDetectorConstruction.cc.

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),
89  WorldMaterial(NULL),
90  GapMaterial(NULL)
91 
92 {
93  fField.Put(0);
94  WorldSizeXY=WorldSizeZ=0;
95  GapSizeX1=GapSizeX2=GapSizeY1=GapSizeY2=GapSizeZ=0;
96  MeasureVolumeSizeXY=MeasureVolumeSizeZ=0;
97 }
void Put(const value_type &val) const
Definition: G4Cache.hh:286

Here is the call graph for this function:

PurgMagDetectorConstruction::~PurgMagDetectorConstruction ( )

Definition at line 101 of file PurgMagDetectorConstruction.cc.

102 {}

Member Function Documentation

G4VPhysicalVolume * PurgMagDetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 106 of file PurgMagDetectorConstruction.cc.

108 {
109  DefineMaterials();
110  return ConstructCalorimeter();
111 }
void PurgMagDetectorConstruction::ConstructSDandField ( )
virtual

Reimplemented from G4VUserDetectorConstruction.

Definition at line 420 of file PurgMagDetectorConstruction.cc.

421 {
422 // Magnetic Field - Purging magnet
423 //
424 #if MAG
425 
426  if (fField.Get() == 0)
427  {
428  //Field grid in A9.TABLE. File must be in accessible from run urn directory.
429  G4MagneticField* PurgMagField= new PurgMagTabulatedField3D("PurgMag3D.TABLE", zOffset);
430  fField.Put(PurgMagField);
431 
432  //This is thread-local
433  G4FieldManager* pFieldMgr =
435 
436  G4cout<< "DeltaStep "<<pFieldMgr->GetDeltaOneStep()/mm <<"mm" <<endl;
437  //G4ChordFinder *pChordFinder = new G4ChordFinder(PurgMagField);
438 
439  pFieldMgr->SetDetectorField(fField.Get());
440  pFieldMgr->CreateChordFinder(fField.Get());
441 
442  }
443 #endif
444 }
static constexpr double mm
Definition: G4SIunits.hh:115
G4bool SetDetectorField(G4Field *detectorField)
value_type & Get() const
Definition: G4Cache.hh:282
G4double GetDeltaOneStep() const
G4GLOB_DLL std::ostream G4cout
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const
void CreateChordFinder(G4MagneticField *detectorMagField)
void Put(const value_type &val) const
Definition: G4Cache.hh:286

Here is the call graph for this function:

const G4VPhysicalVolume* PurgMagDetectorConstruction::GetGap1 ( ) const
inline

Definition at line 93 of file PurgMagDetectorConstruction.hh.

93 {return physiGap1;};
const G4VPhysicalVolume* PurgMagDetectorConstruction::GetGap2 ( ) const
inline

Definition at line 94 of file PurgMagDetectorConstruction.hh.

94 {return physiGap2;};
G4Material* PurgMagDetectorConstruction::GetGapMaterial ( )
inline

Definition at line 89 of file PurgMagDetectorConstruction.hh.

89 {return GapMaterial;};
G4double PurgMagDetectorConstruction::GetGapSizeX1 ( )
inline

Definition at line 82 of file PurgMagDetectorConstruction.hh.

82 {return GapSizeX1;};
G4double PurgMagDetectorConstruction::GetGapSizeX2 ( )
inline

Definition at line 83 of file PurgMagDetectorConstruction.hh.

83 {return GapSizeX2;};
G4double PurgMagDetectorConstruction::GetGapSizeY1 ( )
inline

Definition at line 84 of file PurgMagDetectorConstruction.hh.

84 {return GapSizeY1;};
G4double PurgMagDetectorConstruction::GetGapSizeY2 ( )
inline

Definition at line 85 of file PurgMagDetectorConstruction.hh.

85 {return GapSizeY2;};
G4double PurgMagDetectorConstruction::GetGapSizeZ ( )
inline

Definition at line 86 of file PurgMagDetectorConstruction.hh.

86 {return GapSizeZ;};
const G4VPhysicalVolume* PurgMagDetectorConstruction::GetMeasureVolume ( ) const
inline

Definition at line 92 of file PurgMagDetectorConstruction.hh.

92 {return physiMeasureVolume;};

Here is the caller graph for this function:

G4double PurgMagDetectorConstruction::GetMeasureVolumeSizeXY ( ) const
inline

Definition at line 79 of file PurgMagDetectorConstruction.hh.

79 {return MeasureVolumeSizeXY;};
G4double PurgMagDetectorConstruction::GetMeasureVolumeSizeZ ( ) const
inline

Definition at line 80 of file PurgMagDetectorConstruction.hh.

80 {return MeasureVolumeSizeZ;};
const G4VPhysicalVolume* PurgMagDetectorConstruction::GetWorld ( ) const
inline

Definition at line 91 of file PurgMagDetectorConstruction.hh.

91 {return physiWorld;};

Here is the caller graph for this function:

G4Material* PurgMagDetectorConstruction::GetWorldMaterial ( )
inline

Definition at line 88 of file PurgMagDetectorConstruction.hh.

88 {return WorldMaterial;};
G4double PurgMagDetectorConstruction::GetWorldSizeXY ( ) const
inline

Definition at line 76 of file PurgMagDetectorConstruction.hh.

76 {return WorldSizeXY;};
G4double PurgMagDetectorConstruction::GetWorldSizeZ ( ) const
inline

Definition at line 77 of file PurgMagDetectorConstruction.hh.

77 {return WorldSizeZ;};
void PurgMagDetectorConstruction::PrintDetectorParameters ( )

The documentation for this class was generated from the following files: