19#include "BDSFieldMagMultipoleOuterDual.hh"
20#include "BDSFieldMagMultipoleOuter.hh"
22#include "G4ThreeVector.hh"
24BDSFieldMagMultipoleOuterDual::BDSFieldMagMultipoleOuterDual(G4int orderIn,
25 G4double poleTipRadiusIn,
30 G4bool secondFieldOnLeft,
31 G4double arbitraryScaling):
35 kPositive, brho, arbitraryScaling);
36 G4double offsetX = secondFieldOnLeft ? -separation : separation;
37 offset = G4ThreeVector(offsetX,0,0);
40BDSFieldMagMultipoleOuterDual::~BDSFieldMagMultipoleOuterDual()
46 const G4double t)
const
48 G4ThreeVector aSide = fieldBase->
GetField(position, t);
49 G4ThreeVector shiftedPos = position + offset;
50 G4ThreeVector bSide = fieldBase->
GetField(shiftedPos,t);
52 G4ThreeVector result = aSide + bSide;
virtual G4ThreeVector GetField(const G4ThreeVector &position, const double t=0) const
Access the field value.
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.
Interface for static magnetic fields that may or may not be local.