18#ifndef CLASSIC_SOURCE_HH
19#define CLASSIC_SOURCE_HH
27template <
class T,
unsigned Dim>
50 virtual bool bends()
const override;
52 virtual void goOnline(
const double& kineticEnergy)
override;
58 virtual void getDimensions(
double& zBegin,
double& zEnd)
const override;
Interface for a single beam element.
virtual void getDimensions(double &zBegin, double &zEnd) const override
virtual void goOffline() override
virtual void accept(BeamlineVisitor &) const override
Apply visitor to Source.
void operator=(const Source &)
virtual int getRequiredNumberOfTimeSteps() const override
virtual ElementType getType() const override
Get element type std::string.
virtual void goOnline(const double &kineticEnergy) override
virtual void initialise(PartBunchBase< double, 3 > *bunch, double &startField, double &endField) override
virtual bool bends() const override
virtual void finalise() override
std::unique_ptr< LossDataSink > lossDs_m
virtual bool apply(const size_t &i, const double &t, Vector_t &E, Vector_t &B) override