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

#include <F06DetectorConstruction.hh>

Inheritance diagram for F06DetectorConstruction:
Collaboration diagram for F06DetectorConstruction:

Public Member Functions

 F06DetectorConstruction ()
 
virtual ~F06DetectorConstruction ()
 
virtual G4VPhysicalVolumeConstruct ()
 
virtual void ConstructSDandField ()
 
- 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 52 of file F06DetectorConstruction.hh.

Constructor & Destructor Documentation

F06DetectorConstruction::F06DetectorConstruction ( )

Definition at line 70 of file F06DetectorConstruction.cc.

71  : fVacuum(0), fSolidWorld(0), fLogicWorld(0), fPhysiWorld(0)
72 {
73  // materials
74  DefineMaterials();
75 }
F06DetectorConstruction::~F06DetectorConstruction ( )
virtual

Definition at line 79 of file F06DetectorConstruction.cc.

80 {
81  if (fField) delete fField;
82 }

Member Function Documentation

G4VPhysicalVolume * F06DetectorConstruction::Construct ( void  )
virtual

Implements G4VUserDetectorConstruction.

Definition at line 97 of file F06DetectorConstruction.cc.

98 {
99  //
100  // World
101  //
102 
103  G4double expHall_x = 1.0*m;
104  G4double expHall_y = 1.0*m;
105  G4double expHall_z = 1.0*m;
106 
107  fSolidWorld = new G4Box("World", //its name
108  expHall_x,expHall_y,expHall_z); //its size
109 
110  fLogicWorld = new G4LogicalVolume(fSolidWorld, //its solid
111  fVacuum, //its material
112  "World"); //its name
113 
114  fPhysiWorld = new G4PVPlacement(0, //no rotation
115  G4ThreeVector(), //at (0,0,0)
116  fLogicWorld, //its logical volume
117  "World", //its name
118  0, //its mother volume
119  false, //no boolean operation
120  0); //copy number
121 
122  G4double maxStep = 1.0*mm;
123  G4double maxTime = 41.*s;
124 
125  G4UserLimits* stepLimit = new G4UserLimits(maxStep,DBL_MAX,maxTime);
126 
127  fLogicWorld->SetUserLimits(stepLimit);
128 
129  //
130  // Visualization attributes
131  //
132  // fLogicWorld->SetVisAttributes (G4VisAttributes::GetInvisible());
133 
134  //
135  //always return the physical World
136  //
137  return fPhysiWorld;
138 }
static constexpr double mm
Definition: G4SIunits.hh:115
CLHEP::Hep3Vector G4ThreeVector
Definition: G4Box.hh:64
void SetUserLimits(G4UserLimits *pULimits)
G4double expHall_x
const XML_Char * s
Definition: expat.h:262
G4double expHall_y
static constexpr double m
Definition: G4SIunits.hh:129
double G4double
Definition: G4Types.hh:76
#define DBL_MAX
Definition: templates.hh:83
G4double expHall_z

Here is the call graph for this function:

void F06DetectorConstruction::ConstructSDandField ( )
virtual

Reimplemented from G4VUserDetectorConstruction.

Definition at line 144 of file F06DetectorConstruction.cc.

145 {
146  if (!fField) {
147 
148  fField = new G4UniformGravityField();
149 
150  G4RepleteEofM* equation = new G4RepleteEofM(fField);
151 // G4EqGravityField* equation = new G4EqGravityField(fField);
152 
153  G4FieldManager* fieldManager
155  fieldManager->SetDetectorField(fField);
156 
157 // G4MagIntegratorStepper* stepper = new G4ClassicalRK4(equation,12);
158  G4MagIntegratorStepper* stepper = new G4ClassicalRK4(equation,8);
159 
160  G4double minStep = 0.01*mm;
161 
162  G4ChordFinder* chordFinder =
163  new G4ChordFinder((G4MagneticField*)fField,minStep,stepper);
164 
165  // Set accuracy parameters
166  G4double deltaChord = 3.0*mm;
167  chordFinder->SetDeltaChord( deltaChord );
168 
169  G4double deltaOneStep = 0.01*mm;
170  fieldManager->SetAccuraciesWithDeltaOneStep(deltaOneStep);
171 
172  G4double deltaIntersection = 0.1*mm;
173  fieldManager->SetDeltaIntersection(deltaIntersection);
174 
175  G4TransportationManager* transportManager =
177 
178  G4PropagatorInField* fieldPropagator =
179  transportManager->GetPropagatorInField();
180 
181  G4double epsMin = 2.5e-7*mm;
182  G4double epsMax = 0.05*mm;
183 
184  fieldPropagator->SetMinimumEpsilonStep(epsMin);
185  fieldPropagator->SetMaximumEpsilonStep(epsMax);
186 
187  fieldManager->SetChordFinder(chordFinder);
188  }
189 }
static constexpr double mm
Definition: G4SIunits.hh:115
G4bool SetDetectorField(G4Field *detectorField)
void SetChordFinder(G4ChordFinder *aChordFinder)
void SetAccuraciesWithDeltaOneStep(G4double valDeltaOneStep)
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const
void SetDeltaIntersection(G4double valueDintersection)
void SetMinimumEpsilonStep(G4double newEpsMin)
double G4double
Definition: G4Types.hh:76
void SetMaximumEpsilonStep(G4double newEpsMax)
G4PropagatorInField * GetPropagatorInField() const
void SetDeltaChord(G4double newval)

Here is the call graph for this function:


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