29#ifndef CLASSIC_ABSBEAMLINE_Offset_HH
30#define CLASSIC_ABSBEAMLINE_Offset_HH
105 double displacement);
158 bool bends()
const override;
161 double &endField)
override;
bool operator!=(const Offset &off1, const Offset &off2)
std::ostream & operator<<(std::ostream &out, const Offset &off1)
bool operator==(const Offset &off1, const Offset &off2)
Interface for a single beam element.
static Vector_t rotate(Vector_t vec, double theta)
static double getTheta(Vector_t vec1, Vector_t vec2)
Euclid3DGeometry & getGeometry() override
Get geometry.
Offset & operator=(const Offset &)
static Offset localCylindricalOffset(std::string name, double theta_in, double theta_out, double displacement)
bool isGeometryAllocated() const
void getDimensions(double &, double &) const override
static const double lengthUnits_m
void setEndPosition(Vector_t position)
Vector_t getEndPosition() const
EMField & getField() override
Not implemented - throws GeneralClassicException.
void setEndDirection(Vector_t direction)
static double float_tolerance
static Offset globalCartesianOffset(std::string name, Vector_t end_position, Vector_t end_direction)
static Offset localCartesianOffset(std::string name, Vector_t end_position, Vector_t end_direction)
ElementBase * clone() const override
void accept(BeamlineVisitor &) const override
static Offset globalCylindricalOffset(std::string name, double radius_out, double phi_out, double theta_out)
Euclid3DGeometry * geometry_m
void setIsLocal(bool isLocal)
bool bends() const override
void initialise(PartBunchBase< double, 3 > *bunch, double &startField, double &endField) override
Vector_t getEndDirection() const
Abstract base class for electromagnetic fields.