19#ifndef BDSFIELDMAGMULTIPOLEOUTER_H
20#define BDSFIELDMAGMULTIPOLEOUTER_H
22#include "BDSFieldMag.hh"
25#include "G4RotationMatrix.hh"
26#include "G4ThreeVector.hh"
27#include "G4TwoVector.hh"
63 G4double arbitraryScaling = 1.0);
68 virtual G4ThreeVector
GetField(
const G4ThreeVector& position,
69 const double t = 0)
const;
A simple parameterisation of N-Pole outer yoke magnetic field.
virtual G4ThreeVector GetField(const G4ThreeVector &position, const double t=0) const
Access the field value.
const G4int order
N-poles / 2.
G4double spatialLimit
Radius from any current source within which the field is artificially saturated.
std::vector< G4TwoVector > currents
Locations of infinite wire current sources.
G4double phiOffset
Tilt in XY calculated from B vector of inner field. if B0=(0,1,0), phiOffset=0.
G4int poleNOffset
Offset for pole to start at - in effect this flips the sign of the field.
G4double maxField
Any field beyond this will curtailed to this value.
G4bool initialisationPhase
Need a way to control cludge normalisation behaviour during initial normalisation calculation.
G4double poleTipRadius
Radius of transition between inner and outer fields.
G4double normalisation
Storage of the overall normalisation factor.
G4bool positiveField
Sign of magnetic field.
Interface for static magnetic fields that may or may not be local.
Efficient storage of magnet strengths.