19#ifndef BDSFIELDMAGDIPOLEOUTEROLD_H
20#define BDSFIELDMAGDIPOLEOUTEROLD_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;
63 static G4double transitionLengthScale;
A perfect magetic dipole in 3D, normal field inside 1/2 poleTipRadius.
G4ThreeVector m
Dipole moment as unit vector of field direction.
G4double normalisation
Storage of the overal normalisation factor.
virtual G4ThreeVector GetField(const G4ThreeVector &position, const double t=0) const
Access the field value.
G4double poleTipRadius
Used as radial limit for returning normal field.
G4ThreeVector localField
Nominal dipole field.
Interface for static magnetic fields that may or may not be local.
Efficient storage of magnet strengths.