OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | List of all members
PartBinsCyc Class Reference

#include <PartBinsCyc.h>

Inheritance diagram for PartBinsCyc:
Inheritance graph
[legend]
Collaboration diagram for PartBinsCyc:
Collaboration graph
[legend]

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 ()
 
Informprint (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
 

Detailed Description

Definition at line 33 of file PartBinsCyc.h.

Constructor & Destructor Documentation

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.

Here is the call graph for this function:

PartBinsCyc::PartBinsCyc ( int  specifiedNumBins,
int  bins 
)

Member Function Documentation

size_t PartBinsCyc::getGlobalBinCount ( int  bin)
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().

Here is the call graph for this function:

size_t PartBinsCyc::getLocalBinCount ( int  bin)
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.

int PartBinsCyc::getNBins ( )
inlinevirtual

get the number of used bin

Reimplemented from PartBins.

Definition at line 43 of file PartBinsCyc.h.

References PartBins::bins_m.

bool PartBinsCyc::weHaveBins ( )
inlinevirtual

Reimplemented from PartBins.

Definition at line 58 of file PartBinsCyc.h.

References PartBins::nemittedBins_m.


The documentation for this class was generated from the following files: