41 : fDetectorField(detectorField),
42 fChordFinder(pChordFinder),
43 fAllocatedChordFinder(false),
44 fEpsilonMinDefault(5.0
e-5),
45 fEpsilonMaxDefault(0.001),
46 fDefault_Delta_One_Step_Value(0.01),
47 fDefault_Delta_Intersection_Val(0.001),
48 fEpsilonMin( fEpsilonMinDefault ),
49 fEpsilonMax( fEpsilonMaxDefault)
63 : fDetectorField(detectorField), fAllocatedChordFinder(true),
64 fEpsilonMinDefault(5.0
e-5),
65 fEpsilonMaxDefault(0.001),
66 fFieldChangesEnergy(false),
67 fDefault_Delta_One_Step_Value(0.01),
68 fDefault_Delta_Intersection_Val(0.001),
69 fEpsilonMin( fEpsilonMinDefault ),
70 fEpsilonMax( fEpsilonMaxDefault)
147 if( detectorMagField ) {
190 if( !ableToSet && (failMode > 0) )
194 msg <<
"Unable to set the field in the dependent objects of G4FieldManager" <<
G4endl;
195 msg <<
"All the dependent classes must be fully initialised, before it is possible to call this method." <<
G4endl;
196 msg <<
"The problem encountered was the following: " <<
G4endl;
198 else if( !driver) { msg <<
" No Integration Driver set. ";}
199 else if( !equation) { msg <<
" No Equation found. " ; }
201 else { msg <<
" Can NOT find reason for failure. ";}
204 G4Exception(
"G4FieldManager::SetDetectorField",
"Geometry001",
G4VIntegrationDriver * GetIntegrationDriver()
T max(const T t1, const T t2)
brief Return the largest of the two arguments
virtual void ConfigureForTrack(const G4Track *)
std::ostringstream G4ExceptionDescription
G4double fDefault_Delta_One_Step_Value
virtual G4EquationOfMotion * GetEquationOfMotion()=0
virtual ~G4FieldManager()
G4FieldManager(G4Field *detectorField=0, G4ChordFinder *pChordFinder=0, G4bool b=true)
virtual G4bool DoesFieldChangeEnergy() const =0
void SetFieldObj(G4Field *pField)
G4bool SetDetectorField(G4Field *detectorField, int failMode=0)
void CreateChordFinder(G4MagneticField *detectorMagField)
static void Register(G4FieldManager *pVolume)
G4double fDelta_One_Step_Value
virtual G4FieldManager * Clone() const
void InitialiseFieldChangesEnergy()
G4double fDefault_Delta_Intersection_Val
G4ChordFinder * fChordFinder
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4double fDelta_Intersection_Val
virtual G4Field * Clone() const
G4bool fAllocatedChordFinder
G4bool fFieldChangesEnergy
static void DeRegister(G4FieldManager *pVolume)