20#include "BDSFieldMagDecapole.hh"
21#include "BDSMagnetStrength.hh"
24#include "G4ThreeVector.hh"
26#include "CLHEP/Units/SystemOfUnits.h"
42 const G4double )
const
49 G4double x = position.x();
50 G4double y = position.y();
52 G4ThreeVector localField;
53 localField[0] = 4 * x * y * (std::pow(x,2)-std::pow(y,2)) *
bQPNormed;
54 localField[1] = (std::pow(x,4) - 6 * std::pow(x,2) * std::pow(y,2) + std::pow(y,4)) *
bQPNormed;
G4double bQuadruplePrime
B'''' - the fourth derivative of the magnetic field.
virtual G4ThreeVector GetField(const G4ThreeVector &position, const G4double t=0) const
Access the field value.
BDSFieldMagDecapole()
Private default constructor to force use of supplied constructor.
G4double bQPNormed
B'''' / 4!
Efficient storage of magnet strengths.