|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include <PartBinsCyc.h>


Public Member Functions | |
| PartBinsCyc (int bunches, int bins, size_t partInBin[]) | |
| PartBinsCyc (int specifiedNumBins, int bins) | |
| int | getNBins () |
| size_t | getGlobalBinCount (int bin) |
| How many particles are on one bin. More... | |
| size_t | getLocalBinCount (int bin) |
| How many particles are on one energy bin. More... | |
| bool | weHaveBins () |
Public Member Functions inherited from PartBins | |
| PartBins (int bins, int sbins) | |
| virtual | ~PartBins () |
| int | getDelBinCont (int bin) |
| How many deleted particles are on one bin. More... | |
| 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) |
| void | setBinEmitted (int bin) |
| bool | getBinEmitted (int bin) |
| bool | doEmission () |
| Is true if we still have particles to emit. More... | |
| bool | isEmitted (int n, int) |
| void | setEmitted (int n, int) |
| void | updatePartPos (int n, int, double z) |
| void | updateExtramePos (int bin, double dz) |
| bool | getPart (size_t n, int bin, std::vector< double > &p) |
| void | sortArray () |
| void | calcHBins () |
| size_t | getSum () |
| void | calcGlobalExtrema () |
| void | calcExtrema () |
| void | getExtrema (double &min, double &max) |
| void | updateStatus (int bunchCount, size_t nPartInBin) |
| void | resetPartInBin (size_t newPartNum[]) |
| void | resetPartInBin_cyc (size_t newPartNum[], int binID) |
| void | updatePartInBin (size_t countLost[]) |
| void | updatePartInBin_cyc (size_t countLost[]) |
| void | updateDeletedPartsInBin (size_t countLost[]) |
| void | setGamma (double gamma) |
| double | getGamma () |
| Inform & | print (Inform &os) |
| int | getSBins () |
| virtual int | getNSBins () |
| int | getBinToEmit () |
| int | getSBinToEmit () |
| int | getLastemittedBin () |
| void | setActualemittedBin (int bin) |
| void | resetBins () |
| If the bunch object rebins we need to call resetBins() More... | |
| void | sortArrayT () |
| void | setHistogram (gsl_histogram *h) |
| size_t | getLocalSBinCount (int bin) |
| How many particles are in one sampling bin. More... | |
| 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 |
| int | nemittedSBins_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 33 of file PartBinsCyc.h.
| PartBinsCyc::PartBinsCyc | ( | int | bunches, |
| int | bins, | ||
| size_t | partInBin[] | ||
| ) |
constructer function for cyclotron
Definition at line 8 of file PartBinsCyc.cpp.
References PartBins::bins_m, PartBins::binsEmitted_m, endl(), PartBins::getTotalNumPerBin(), PartBins::nBin_m, and PartBins::nemittedBins_m.

| PartBinsCyc::PartBinsCyc | ( | int | specifiedNumBins, |
| int | bins | ||
| ) |
Definition at line 23 of file PartBinsCyc.cpp.
References PartBins::bins_m, PartBins::binsEmitted_m, and PartBins::nemittedBins_m.
|
inlinevirtual |
How many particles are on one bin.
Reimplemented from PartBins.
Definition at line 46 of file PartBinsCyc.h.
References PartBins::nBin_m, and reduce().

|
inlinevirtual |
How many particles are on one energy bin.
Reimplemented from PartBins.
Definition at line 53 of file PartBinsCyc.h.
References PartBins::bins_m, and PartBins::nBin_m.
|
inlinevirtual |
get the number of used bin
Reimplemented from PartBins.
Definition at line 43 of file PartBinsCyc.h.
References PartBins::bins_m.
|
inlinevirtual |
Reimplemented from PartBins.
Definition at line 58 of file PartBinsCyc.h.
References PartBins::nemittedBins_m.
1.8.5