Falaise
4.0.1
SuperNEMO Software Toolkit
|
Generator of mock events (collections of Geiger hits) More...
#include <falaise/TrackerPreClustering/event_generator.h>
Public Member Functions | |
void | set_seed (long) |
Set seed. More... | |
void | set_cell_size (double cell_size_) |
Set the cell size. More... | |
void | set_nb_layers (unsigned int nb_layers_) |
Set the number of layers. More... | |
void | set_nb_rows (unsigned int nb_rows_) |
Set the number of rows. More... | |
event_generator () | |
Default constructor. More... | |
event_generator (long seed_) | |
Constructor. More... | |
bool | is_initialized () |
Check initialization status. More... | |
void | initialize () |
Initialization. More... | |
void | reset () |
Reset. More... | |
void | generate_prompt_gg_hits (std::vector< const gg_hit * > &hits_) |
Generate the mock prompt Geiger hits. More... | |
void | generate_delayed_gg_hits (std::vector< const gg_hit * > &hits_) |
Generate the mock delayed Geiger hits. More... | |
void | shoot_event (std::vector< const gg_hit * > &hits_) |
Generate an event with many Geiger hits. More... | |
int | build_gid (int side_, int layer_, int row_) const |
Build a unique geometry Id (GID) from cell Ids. More... | |
void | register_gid (int gid_, bool delayed_=false) |
Register a given geometry Id (GID) as prompt or delayed. More... | |
bool | has_gid (int gid_) const |
Check if some geometry Id (GID) is registered. More... | |
Generator of mock events (collections of Geiger hits)
TrackerPreClustering::event_generator::event_generator | ( | ) |
Default constructor.
TrackerPreClustering::event_generator::event_generator | ( | long | seed_ | ) |
Constructor.
int TrackerPreClustering::event_generator::build_gid | ( | int | side_, |
int | layer_, | ||
int | row_ | ||
) | const |
Build a unique geometry Id (GID) from cell Ids.
void TrackerPreClustering::event_generator::generate_delayed_gg_hits | ( | std::vector< const gg_hit * > & | hits_ | ) |
Generate the mock delayed Geiger hits.
void TrackerPreClustering::event_generator::generate_prompt_gg_hits | ( | std::vector< const gg_hit * > & | hits_ | ) |
Generate the mock prompt Geiger hits.
bool TrackerPreClustering::event_generator::has_gid | ( | int | gid_ | ) | const |
Check if some geometry Id (GID) is registered.
void TrackerPreClustering::event_generator::initialize | ( | ) |
Initialization.
bool TrackerPreClustering::event_generator::is_initialized | ( | ) |
Check initialization status.
void TrackerPreClustering::event_generator::register_gid | ( | int | gid_, |
bool | delayed_ = false |
||
) |
Register a given geometry Id (GID) as prompt or delayed.
void TrackerPreClustering::event_generator::reset | ( | ) |
Reset.
void TrackerPreClustering::event_generator::set_cell_size | ( | double | cell_size_ | ) |
Set the cell size.
void TrackerPreClustering::event_generator::set_nb_layers | ( | unsigned int | nb_layers_ | ) |
Set the number of layers.
void TrackerPreClustering::event_generator::set_nb_rows | ( | unsigned int | nb_rows_ | ) |
Set the number of rows.
void TrackerPreClustering::event_generator::set_seed | ( | long | ) |
Set seed.
Generate an event with many Geiger hits.