33#ifndef ABSBEAMLINE_SBEND3D_H
34#define ABSBEAMLINE_SBEND3D_H
101 inline bool bends()
const override;
Interface for a single beam element.
Sector bending magnet from a 3D field map.
int getSmoothingOrder() const
Get the smoothing factor.
void setPolynomialOrder(int polyOrder)
Set the polynomial order.
double getFieldUnits() const
Get the scale factor.
std::string getFieldMapFileName() const
Get the file name of the field map.
void initialise(PartBunchBase< double, 3 > *bunch, double &startField, double &endField) override
Initialise the SBend3D.
void setFieldUnits(double fieldUnits)
Set the scale factor.
ElementBase * clone() const override
Inheritable copy constructor.
SectorMagneticFieldMap * getSectorMagneticFieldMap() const
Get the sector magnetic field map.
void accept(BeamlineVisitor &visitor) const override
Accept a beamline visitor.
void getDimensions(double &, double &) const override
Not implemented.
EMField & getField() override
Return a dummy (0.) field value (what is this for?)
double getLengthUnits() const
Get the scale factor.
bool apply(const size_t &i, const double &t, Vector_t &E, Vector_t &B) override
Calculate the field at the position of the ith particle.
void setFieldMapFileName(const std::string &name)
Set the field map file.
SBend3D(const std::string &name)
Construct a new SBend3D.
PlanarArcGeometry planarArcGeometry_m
int getPolynomialOrder() const
Get the polynomial order.
void setLengthUnits(double lengthUnits)
Set the scale factor.
void finalise() override
Finalise the SBend3D - sets bunch to nullptr.
void setSmoothingOrder(int polyOrder)
Set the smoothing factor.
SectorMagneticFieldMap * map_m
BGeometryBase & getGeometry() override
Return the cell geometry.
~SBend3D()
Destructor - deletes map.
bool bends() const override
Return true - SBend3D always bends the reference particle.
Abstract base class for accelerator geometry classes.
A simple arc in the XZ plane.
The magnetic field of a multipole.
Abstract base class for electromagnetic fields.
handles field map grids with sector geometry
std::string getFieldMapFileName() const
Get the field map file name.