#include <Rand4Hits.h>
Definition at line 13 of file Rand4Hits.h.
◆ Rand4Hits()
◆ ~Rand4Hits()
Rand4Hits::~Rand4Hits |
( |
| ) |
|
◆ add_a_hits()
void Rand4Hits::add_a_hits |
( |
int |
nhits | ) |
|
|
inline |
◆ allocate_simulation()
void Rand4Hits::allocate_simulation |
( |
long long |
maxhits, |
|
|
unsigned short |
maxbins, |
|
|
unsigned short |
maxhitct, |
|
|
unsigned long |
n_cells |
|
) |
| |
◆ create_gen()
void Rand4Hits::create_gen |
( |
unsigned long long |
seed, |
|
|
size_t |
numhits, |
|
|
bool |
useCPU = false |
|
) |
| |
◆ createCPUGen()
void Rand4Hits::createCPUGen |
( |
unsigned long long |
seed | ) |
|
|
private |
◆ destroyCPUGen()
void Rand4Hits::destroyCPUGen |
( |
| ) |
|
|
private |
◆ genCPU()
float * Rand4Hits::genCPU |
( |
size_t |
num | ) |
|
|
private |
Definition at line 16 of file Rand4Hits_cpu.cxx.
21 auto RNG = [eng](
float low,
float high ) {
22 auto randomFunc = [distribution_ = std::uniform_real_distribution<float>( low, high ),
23 random_engine_ = *eng]()
mutable {
return distribution_( random_engine_ ); };
◆ get_c_hits()
unsigned int Rand4Hits::get_c_hits |
( |
| ) |
|
|
inline |
◆ get_cell_e()
Cell_E* Rand4Hits::get_cell_e |
( |
| ) |
|
|
inline |
◆ get_cell_e_h()
Cell_E* Rand4Hits::get_cell_e_h |
( |
| ) |
|
|
inline |
◆ get_cells_energy()
float* Rand4Hits::get_cells_energy |
( |
| ) |
|
|
inline |
◆ get_ct()
int* Rand4Hits::get_ct |
( |
| ) |
|
|
inline |
◆ get_hitcells()
unsigned long* Rand4Hits::get_hitcells |
( |
| ) |
|
|
inline |
◆ get_hitcells_ct()
int* Rand4Hits::get_hitcells_ct |
( |
| ) |
|
|
inline |
◆ get_t_a_hits()
unsigned int Rand4Hits::get_t_a_hits |
( |
| ) |
|
|
inline |
◆ over_alloc()
bool Rand4Hits::over_alloc |
( |
int |
nhits | ) |
|
|
inline |
◆ rand_ptr()
float* Rand4Hits::rand_ptr |
( |
int |
nhits | ) |
|
|
inline |
◆ rand_ptr_base()
float* Rand4Hits::rand_ptr_base |
( |
| ) |
|
|
inline |
◆ rd_regen()
void Rand4Hits::rd_regen |
( |
| ) |
|
◆ set_c_hits()
void Rand4Hits::set_c_hits |
( |
int |
nhits | ) |
|
|
inline |
◆ set_rand_ptr()
void Rand4Hits::set_rand_ptr |
( |
float * |
ptr | ) |
|
|
inline |
◆ set_t_a_hits()
void Rand4Hits::set_t_a_hits |
( |
int |
nhits | ) |
|
|
inline |
◆ m_cell_e
Cell_E* Rand4Hits::m_cell_e {0} |
|
private |
◆ m_cell_e_h
Cell_E* Rand4Hits::m_cell_e_h {nullptr} |
|
private |
◆ m_cells_energy
float* Rand4Hits::m_cells_energy {0} |
|
private |
◆ m_ct
◆ m_current_hits
unsigned int Rand4Hits::m_current_hits {0} |
|
private |
◆ m_gen
void* Rand4Hits::m_gen {nullptr} |
|
private |
◆ m_hitcells
unsigned long* Rand4Hits::m_hitcells {nullptr} |
|
private |
◆ m_hitcells_ct
int* Rand4Hits::m_hitcells_ct {nullptr} |
|
private |
◆ m_rand_ptr
float* Rand4Hits::m_rand_ptr {nullptr} |
|
private |
◆ m_rnd_cpu
std::vector<float> Rand4Hits::m_rnd_cpu |
|
private |
◆ m_total_a_hits
unsigned int Rand4Hits::m_total_a_hits {0} |
|
private |
◆ m_useCPU
bool Rand4Hits::m_useCPU {false} |
|
private |
The documentation for this class was generated from the following files: