43 G4bool fieldChangesEnergy )
44 : fDetectorField(detectorField),
45 fChordFinder(pChordFinder),
46 fDelta_One_Step_Value( fDefault_Delta_One_Step_Value ),
47 fDelta_Intersection_Val( fDefault_Delta_Intersection_Val ),
48 fEpsilonMin( fEpsilonMinDefault ),
49 fEpsilonMax( fEpsilonMaxDefault)
51 if ( detectorField !=
nullptr )
66 : fDetectorField(detectorField), fAllocatedChordFinder(
true),
67 fDelta_One_Step_Value( fDefault_Delta_One_Step_Value ),
68 fDelta_Intersection_Val( fDefault_Delta_Intersection_Val ),
69 fEpsilonMin( fEpsilonMinDefault ),
70 fEpsilonMax( fEpsilonMaxDefault )
157 if( detectorMagField !=
nullptr )
199 if( driver !=
nullptr )
206 if( equation !=
nullptr )
214 if( !ableToSet && (failMode > 0) )
219 msg <<
"Unable to set the field in the dependent objects of G4FieldManager"
221 msg <<
"All the dependent classes must be fully initialised,"
222 <<
"before it is possible to call this method." <<
G4endl;
223 msg <<
"The problem encountered was the following: " <<
G4endl;
224 if(
fChordFinder ==
nullptr ) { msg <<
" No ChordFinder. " ; }
225 else if( driver ==
nullptr ) { msg <<
" No Integration Driver set. ";}
226 else if( equation ==
nullptr ) { msg <<
" No Equation found. " ; }
228 else { msg <<
" Can NOT find reason for failure. ";}
232 G4Exception(
"G4FieldManager::SetDetectorField",
"Geometry001",