1#ifndef OPALX_BeamlineFieldElement_H
2#define OPALX_BeamlineFieldElement_H
21 std::shared_ptr<const Component>
getElement()
const;
24 const double&
getEnd()
const;
26 void setEnd(
const double& z);
27 const bool&
isOn()
const;
28 void setOn(
const double& kinematicEnergy);
71 return element_m->getBoundingBoxInLabCoords();
std::list< BeamlineFieldElement > FieldList
Defines the abstract interface for a single beamline component in the accelerator model.
Beamline component together with its active longitudinal field interval.
void setOn(const double &kinematicEnergy)
std::shared_ptr< Component > element_m
std::shared_ptr< Component > getElement()
BoundingBox getBoundingBoxInLabCoords() const
const bool & isOn() const
void setEnd(const double &z)
static bool SortAsc(const BeamlineFieldElement &fle1, const BeamlineFieldElement &fle2)
void setStart(const double &z)
const double & getStart() const
static bool ZeroLength(const BeamlineFieldElement &fle)
const double & getEnd() const