77 G4cout <<
" F01FieldSetup: magnetic field set to Uniform( "
78 << fieldVector <<
" ) " <<
G4endl;
94 G4cout <<
" F01FieldSetup: magnetic field set to Uniform( 0.0, 0, 0 ) "
205 G4cout <<
"Setting Field strength to "
206 << fieldStrength /
gauss <<
" Gauss.";
214 position[0] = position[1] = position[2] = position[3] = 0.0;
215 if ( fieldStrength != 0.0 ) {
217 G4ThreeVector fieldVec(fieldValue[0], fieldValue[1], fieldValue[2]);
219 G4cout <<
" Magnetic field vector is "
225 G4Exception(
"F01FieldSetup::SetFieldValue(double)",
226 "IncorrectForZeroField",
228 "fMagneticField ptr should be set to 0 for no field.");
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
F01FieldMessenger * fFieldMessenger
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4TransportationManager * GetTransportationManager()
G4FieldManager * GetFieldManager() const
static const double gauss
void CreateStepperAndChordFinder()
void SetFieldObj(G4Field *pField)
void SetFieldValue(G4ThreeVector fieldVector)
G4MagneticField * fMagneticField