OPAL (Object Oriented Parallel Accelerator Library) 2022.1
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)
 
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 ()
 
Informprint (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
 

Detailed Description

Definition at line 32 of file PartBinsCyc.h.

Constructor & Destructor Documentation

◆ PartBinsCyc() [1/2]

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.

Here is the call graph for this function:

◆ PartBinsCyc() [2/2]

PartBinsCyc::PartBinsCyc ( int  specifiedNumBins,
int  bins 
)

Member Function Documentation

◆ getNBins()

virtual int PartBinsCyc::getNBins ( )
inlinevirtual

get the number of used bin

Reimplemented from PartBins.

Definition at line 42 of file PartBinsCyc.h.

References PartBins::bins_m.

◆ weHaveBins()

virtual bool PartBinsCyc::weHaveBins ( )
inlinevirtual

Reimplemented from PartBins.

Definition at line 44 of file PartBinsCyc.h.

References PartBins::nemittedBins_m.


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