45 if (right.
map_m !=
nullptr)
74 return map_m->getFieldstrength(R, E, B);
109 double r_curv = (
map_m->getPolarBoundingBoxMax()[0]+
110 map_m->getPolarBoundingBoxMin()[0])/2.;
111 double delta_phi =
map_m->getDeltaPhi();
virtual void visitSBend3D(const SBend3D &)=0
Apply the algorithm to a sector bend with 3D field map.
Component(const std::string &name)
Constructor with given name.
PartBunchBase< double, 3 > * RefPartBunch_m
ElementBase(const std::string &name)
Constructor with given name.
void initialise(PartBunchBase< double, 3 > *bunch, double &startField, double &endField) override
ElementBase * clone() const override
void accept(BeamlineVisitor &visitor) const override
EMField & getField() override
bool apply(const size_t &i, const double &t, Vector_t &E, Vector_t &B) override
void setFieldMapFileName(const std::string &name)
SBend3D(const std::string &name)
PlanarArcGeometry planarArcGeometry_m
SectorMagneticFieldMap * map_m
BGeometryBase & getGeometry() override
bool bends() const override
Abstract base class for accelerator geometry classes.
Abstract base class for electromagnetic fields.
handles field map grids with sector geometry
Vektor< double, 3 > Vector_t