GGEMS class handling the source(s)
More...
#include "GGEMSSourceManager.hh"
GGEMS class handling the source(s)
Definition at line 48 of file GGEMSSourceManager.hh.
◆ GGEMSSourceManager() [1/3]
GGEMSSourceManager::GGEMSSourceManager |
( |
void |
| ) |
|
|
private |
◆ ~GGEMSSourceManager()
GGEMSSourceManager::~GGEMSSourceManager |
( |
void |
| ) |
|
|
private |
◆ GGEMSSourceManager() [2/3]
Avoid copy of the class by reference.
- Parameters
-
source_manager | - reference on the source manager |
◆ GGEMSSourceManager() [3/3]
Avoid copy of the class by rvalue reference.
- Parameters
-
source_manager | - rvalue reference on the source manager |
◆ Clean()
void GGEMSSourceManager::Clean |
( |
void |
| ) |
|
◆ GetInstance()
◆ GetNameOfSource()
std::string GGEMSSourceManager::GetNameOfSource |
( |
GGsize const & |
source_index | ) |
const |
|
inline |
get the name of the source
- Parameters
-
source_index | - index of the source |
- Returns
- name of the source
Definition at line 136 of file GGEMSSourceManager.hh.
◆ GetNumberOfBatchs()
GGsize GGEMSSourceManager::GetNumberOfBatchs |
( |
GGsize const & |
source_index, |
|
|
GGsize const & |
device_index |
|
) |
| const |
|
inline |
method returning the number of particles by batch
- Parameters
-
source_index | - index of the source |
device_index | - index of activated device |
- Returns
- the number of batch of particle
Definition at line 145 of file GGEMSSourceManager.hh.
◆ GetNumberOfParticlesInBatch()
GGsize GGEMSSourceManager::GetNumberOfParticlesInBatch |
( |
GGsize const & |
source_index, |
|
|
GGsize const & |
device_index, |
|
|
GGsize const & |
batch_index |
|
) |
| |
|
inline |
method returning the number of particles in a specific batch
- Parameters
-
source_index | - index of the source |
device_index | - index of activated device |
batch_index | - index of the source |
- Returns
- the number of particle for a specific batch
Definition at line 155 of file GGEMSSourceManager.hh.
◆ GetNumberOfSources()
GGsize GGEMSSourceManager::GetNumberOfSources |
( |
void |
| ) |
const |
|
inline |
◆ GetParticles()
method returning the OpenCL stack on particles
- Returns
- pointer on particle stack
Definition at line 162 of file GGEMSSourceManager.hh.
◆ GetPrimaries()
void GGEMSSourceManager::GetPrimaries |
( |
GGsize const & |
source_index, |
|
|
GGsize const & |
thread_index, |
|
|
GGsize const & |
number_of_particles |
|
) |
| const |
|
inline |
Generate primary particles for a specific source.
- Parameters
-
source_index | - index of the source |
thread_index | - index of activated device (thread index) |
number_of_particles | - number of particles to simulate |
Definition at line 178 of file GGEMSSourceManager.hh.
◆ GetPseudoRandomGenerator()
method returning the OpenCL stack on pseudo random numbers
- Returns
- pointer on pseudo random stack
Definition at line 169 of file GGEMSSourceManager.hh.
◆ Initialize()
void GGEMSSourceManager::Initialize |
( |
GGuint const & |
seed, |
|
|
bool const & |
is_tracking = false , |
|
|
GGint const & |
particle_tracking_id = 0 |
|
) |
| const |
Initialize a GGEMS source.
- Parameters
-
seed | - seed of the random |
is_tracking | - boolean value for tracking |
particle_tracking_id | - id of particle to track |
Definition at line 130 of file GGEMSSourceManager.cc.
◆ IsAlive()
bool GGEMSSourceManager::IsAlive |
( |
GGsize const & |
thread_index | ) |
const |
check if some particles are alive in OpenCL particle buffer
- Parameters
-
thread_index | - index of activated device (thread index) |
- Returns
- true if source is still alive, otherwize false
Definition at line 171 of file GGEMSSourceManager.cc.
◆ operator=() [1/2]
Avoid copy of the class by rvalue reference.
- Parameters
-
source_manager | - rvalue reference on the source manager |
◆ operator=() [2/2]
Avoid assignement of the class by reference.
- Parameters
-
source_manager | - reference on the source manager |
◆ PrintInfos()
void GGEMSSourceManager::PrintInfos |
( |
void |
| ) |
const |
◆ Store()
storing the source pointer to source manager
- Parameters
-
source | - pointer to GGEMS source |
Definition at line 90 of file GGEMSSourceManager.cc.
◆ number_of_sources_
GGsize GGEMSSourceManager::number_of_sources_ |
|
private |
◆ particles_
◆ pseudo_random_generator_
◆ sources_
The documentation for this class was generated from the following files: