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