1#ifndef CLASSIC_Solenoid_HH
2#define CLASSIC_Solenoid_HH
26template <
class T,
unsigned Dim>
51 virtual double getBz()
const = 0;
53 void setKS(
double ks);
66 virtual bool bends()
const override;
68 virtual void goOnline(
const double &kineticEnergy)
override;
81 virtual void getDimensions(
double &zBegin,
double &zEnd)
const override;
Interface for a single beam element.
virtual double getElementLength() const
Get design length.
virtual double getBz() const =0
Get solenoid field Bz in Teslas.
virtual void getDimensions(double &zBegin, double &zEnd) const override
virtual CoordinateSystemTrafo getEdgeToBegin() const override
virtual void getElementDimensions(double &zBegin, double &zEnd) const override
virtual bool apply(const size_t &i, const double &t, Vector_t &E, Vector_t &B) override
virtual void goOffline() override
virtual void goOnline(const double &kineticEnergy) override
virtual void finalise() override
virtual bool applyToReferenceParticle(const Vector_t &R, const Vector_t &P, const double &t, Vector_t &E, Vector_t &B) override
virtual CoordinateSystemTrafo getEdgeToEnd() const override
virtual bool bends() const override
virtual ElementType getType() const override
Get element type std::string.
virtual bool isInside(const Vector_t &r) const override
void setFieldMapFN(std::string fn)
void operator=(const Solenoid &)
virtual void accept(BeamlineVisitor &) const override
Apply visitor to Solenoid.
virtual void initialise(PartBunchBase< double, 3 > *bunch, double &startField, double &endField) override
Vektor< double, 3 > Vector_t