28#ifndef OPAL_MULTI_BUNCH_HANDLER_H
29#define OPAL_MULTI_BUNCH_HANDLER_H
108 const std::string& mode,
109 const std::string& binning);
123 bool& flagTransition);
128 void setMode(
const std::string& mbmode);
void saveBunch(PartBunchBase< double, 3 > *beam)
bool calcBunchBeamParameters(PartBunchBase< double, 3 > *beam, short bunchNr)
MultiBunchHandler(PartBunchBase< double, 3 > *beam, const int &numBunch, const double &eta, const double ¶, const std::string &mode, const std::string &binning)
MultiBunchBinning binning_m
beaminfo_t & getBunchInfo(short bunchNr)
void setMode(const std::string &mbmode)
set the working sub-mode for multi-bunch mode: "FORCE" or "AUTO"
void updateTime(const double &dt)
void setRadiusTurns(const double &radius)
short numBunch_m
The number of bunches specified in TURNS of RUN command.
injection_t & getInjectionValues()
void setNumBunch(short n)
bool readBunch(PartBunchBase< double, 3 > *beam, const PartData &ref)
short getNumBunch() const
void setBinning(std::string binning)
void updatePathLength(const std::vector< double > &lpaths)
short injectBunch(PartBunchBase< double, 3 > *beam, const PartData &ref, bool &flagTransition)
std::vector< beaminfo_t > binfo_m
void updateParticleBins(PartBunchBase< double, 3 > *beam)
beaminfo_t(const injection_t &injection=injection_t())
long unsigned int nParticles