OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
#include <PartBinsCyc.h>
Public Member Functions | |
PartBinsCyc (int bunches, int bins, size_t partInBin[]) | |
PartBinsCyc (int specifiedNumBins, int bins) | |
virtual int | getNBins () |
virtual bool | weHaveBins () |
Public Member Functions inherited from PartBins | |
PartBins (int bins, int sbins) | |
virtual | ~PartBins () |
void | fill (std::vector< double > &p) |
Add a particle to the temporary container. More... | |
size_t | getNp () |
get the number of particles in the temporary particle structure used for binning More... | |
void | setPartNum (int bin, long long num) |
bool | doEmission () |
Is true if we still have particles to emit. More... | |
bool | isEmitted (int n, int) |
bool | getPart (size_t n, int bin, std::vector< double > &p) |
void | sortArray () |
void | resetPartInBin_cyc (size_t newPartNum[], int binID) |
void | updatePartInBin_cyc (size_t countLost[]) |
void | setGamma (double gamma) |
double | getGamma () |
Inform & | print (Inform &os) |
int | getSBins () |
virtual int | getNBins () |
int | getLastemittedBin () |
void | resetBins () |
If the bunch object rebins we need to call resetBins() More... | |
virtual bool | weHaveBins () |
size_t | getTotalNum () |
How many particles are in all the bins. More... | |
size_t | getTotalNumPerBin (int b) |
How many particles are in the bin b. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from PartBins | |
int | getBin (double x) |
Protected Attributes inherited from PartBins | |
double | gamma_m |
int | bins_m |
int | sBins_m |
double | xmin_m |
double | xmax_m |
std::unique_ptr< double[]> | xbinmin_m |
std::unique_ptr< double[]> | xbinmax_m |
double | hBin_m |
std::vector< std::vector< double > > | tmppart_m |
std::vector< bool > | isEmitted_m |
std::unique_ptr< bool[]> | binsEmitted_m |
int | nemittedBins_m |
std::unique_ptr< size_t[]> | nBin_m |
std::unique_ptr< size_t[]> | nDelBin_m |
std::unique_ptr< gsl_histogram > | h_m |
Definition at line 32 of file PartBinsCyc.h.
PartBinsCyc::PartBinsCyc | ( | int | bunches, |
int | bins, | ||
size_t | partInBin[] | ||
) |
constructor function for cyclotron
Definition at line 35 of file PartBinsCyc.cpp.
References PartBins::bins_m, PartBins::binsEmitted_m, endl(), PartBins::getTotalNumPerBin(), gmsg, PartBins::nBin_m, and PartBins::nemittedBins_m.
PartBinsCyc::PartBinsCyc | ( | int | specifiedNumBins, |
int | bins | ||
) |
Definition at line 50 of file PartBinsCyc.cpp.
References PartBins::bins_m, PartBins::binsEmitted_m, and PartBins::nemittedBins_m.
|
inlinevirtual |
get the number of used bin
Reimplemented from PartBins.
Definition at line 42 of file PartBinsCyc.h.
References PartBins::bins_m.
|
inlinevirtual |
Reimplemented from PartBins.
Definition at line 44 of file PartBinsCyc.h.
References PartBins::nemittedBins_m.