86 G4cout <<
" F01FieldSetup: magnetic field set to Uniform( "
87 << fieldVector <<
" ) " <<
G4endl;
103 G4cout <<
" F01FieldSetup: magnetic field set to Uniform( 0.0, 0, 0 ) "
141 G4cout<<
" F01FieldSetup::CreateStepperAndChordFinder() called "
142 <<
" to reset Stepper." <<
G4endl;
225 G4cout<<
"G4BogackiShampine23 Stepper is chosen"<<
G4endl;
230 G4cout<<
"G4BogackiShampine45 Stepper is chosen"<<
G4endl;
239 G4cout<<
"G4ClassicalRK4 Stepper (default) is chosen"<<
G4endl;
253 G4cout <<
"Setting Field strength to "
254 << fieldStrength /
gauss <<
" Gauss.";
262 position[0] = position[1] = position[2] = position[3] = 0.0;
263 if ( fieldStrength != 0.0 ) {
265 G4ThreeVector fieldVec(fieldValue[0], fieldValue[1], fieldValue[2]);
267 G4cout <<
" Magnetic field vector is "
273 G4Exception(
"F01FieldSetup::SetFieldValue(double)",
274 "IncorrectForZeroField",
276 "fMagneticField ptr should be set to 0 for no field.");
static constexpr double mm
G4FieldManager * GetGlobalFieldManager()
CLHEP::Hep3Vector G4ThreeVector
G4bool SetDetectorField(G4Field *detectorField)
Definition of the F01FieldMessenger class.
G4Mag_UsualEqRhs * fEquation
G4FieldManager * fFieldManager
G4ChordFinder * fChordFinder
virtual void GetFieldValue(const G4double Point[4], G4double *Bfield) const =0
void SetChordFinder(G4ChordFinder *aChordFinder)
G4GLOB_DLL std::ostream G4cout
Definition of the F01FieldSetup class.
G4MagIntegratorStepper * fStepper
static constexpr double gauss
F01FieldMessenger * fFieldMessenger
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const
void CreateStepperAndChordFinder()
void SetFieldObj(G4Field *pField)
void SetFieldValue(G4ThreeVector fieldVector)
G4MagneticField * fMagneticField