20#include "BDSFieldMagDipole.hh"
21#include "BDSMagnetStrength.hh"
22#include "BDSUtilities.hh"
25#include "G4ThreeVector.hh"
32 G4cout << __METHOD_NAME__ <<
"B (local) = " <<
localField << G4endl;
38 G4double field = (*strength)[
"field"];
39 G4double bx = (*strength)[
"bx"];
40 G4double by = (*strength)[
"by"];
41 G4double bz = (*strength)[
"bz"];
46 {
localField = G4ThreeVector(bx,by,bz).unit() * field;}
50 G4cout << __METHOD_NAME__ <<
"B (local) (T) = " <<
localField / CLHEP::tesla << G4endl;
55 const G4double )
const
BDSFieldMagDipole()
Private default constructor to ensure use of supplied constructor.
virtual G4ThreeVector GetField(const G4ThreeVector &position, const G4double t=0) const
Access the field value.
G4bool finiteStrength
Flag to cache whether finite nor not.
Efficient storage of magnet strengths.
G4bool IsFinite(G4double value, G4double tolerance=std::numeric_limits< double >::epsilon())