19#ifndef BDSFIELDMAGDIPOLEOUTER_H
20#define BDSFIELDMAGDIPOLEOUTER_H
22#include "BDSFieldMag.hh"
25#include "G4RotationMatrix.hh"
26#include "G4ThreeVector.hh"
27#include "G4TwoVector.hh"
49 G4double arbitraryScaling = 1.0);
54 virtual G4ThreeVector
GetField(
const G4ThreeVector& position,
55 const double t = 0)
const;
65 static G4double transitionLengthScale;
A perfect magetic dipole in 3D, normal field inside 1/2 poleTipRadius.
virtual G4ThreeVector GetField(const G4ThreeVector &position, const double t=0) const
Access the field value.
G4ThreeVector m
Dipole moment as unit vector of field direction.
G4double normalisation
Storage of the overal normalisation factor.
G4bool initialisationPhase
Need a way to control cludge normalisation behaviour during initial normalisation calculation.
G4double poleTipRadius
Used as radial limit for returning normal field.
G4double maxField
Any field beyond this will curtailed to this value.
G4double spatialLimit
Limit for getting too close to a current source.
G4ThreeVector localField
Nominal dipole field.
Interface for static magnetic fields that may or may not be local.
Efficient storage of magnet strengths.