19#ifndef BDSFIELDMAGDIPOLEHARDEDGE_H
20#define BDSFIELDMAGDIPOLEHARDEDGE_H
22#include "BDSFieldMag.hh"
25#include "G4ThreeVector.hh"
43 G4double apertureRadius,
50 virtual G4ThreeVector
GetField(
const G4ThreeVector& position,
51 const G4double t = 0)
const;
54 inline G4double
GetB0()
const {
return B0;}
This class represents a hard-edge dipole field. The field is calculated in cartesian coordinates.
G4double D
Private default constructor to ensure use of supplied constructor.
G4double GetB0() const
Accessor.
virtual G4ThreeVector GetField(const G4ThreeVector &position, const G4double t=0) const
Calculate the field value.
Interface for static magnetic fields that may or may not be local.
Efficient storage of magnet strengths.