18 #ifndef CLASSIC_CCollimator_HH
19 #define CLASSIC_CCollimator_HH
39 virtual void goOnline(
const double &kineticEnergy)
override;
41 virtual void getDimensions(
double &zBegin,
double &zEnd)
const override;
52 double ystart,
double yend,
53 double zstart,
double zend,
virtual void doSetGeom() override
Calculate extend in r.
virtual void accept(BeamlineVisitor &) const override
Apply visitor to CCollimator.
virtual void goOnline(const double &kineticEnergy) override
Override implementation of PluginElement.
void operator=(const CCollimator &)=delete
virtual void getDimensions(double &zBegin, double &zEnd) const override
double getZStart()
Member variable access.
virtual ElementBase::ElementType getType() const override
Get element type std::string.
virtual bool doPreCheck(PartBunchBase< double, 3 > *) override
Virtual hook for preCheck.
bool informed_m
Flag if error information already printed.
virtual void doInitialise(PartBunchBase< double, 3 > *bunch) override
Initialise particle matter interaction.
double zstart_m
input geometry positions
void print()
unused check method
virtual bool doFinaliseCheck(PartBunchBase< double, 3 > *bunch, bool flagNeedUpdate) override
Virtual hook for finaliseCheck.
virtual bool doCheck(PartBunchBase< double, 3 > *bunch, const int turnnumber, const double t, const double tstep) override
Record hits when bunch particles pass.
double rmax_m
maximum extend in r
ParticleMatterInteractionHandler * parmatint_m
void setDimensions(double xstart, double xend, double ystart, double yend)
unhide PluginElement::setDimensions(double xstart, double xend, double ystart, double yend)
virtual void doFinalise() override
Virtual hook for finalise.
void setDimensions(double xstart, double xend, double ystart, double yend)
Set dimensions and consistency checks.