|
bool | has_mode () const |
|
void | set_mode (const slice_mode_type) |
|
slice_mode_type | get_mode () const |
|
bool | has_generator () const |
|
void | set_generator (i_genbb &) |
|
i_genbb & | grab_generator () |
|
const i_genbb & | get_generator () const |
|
bool | has_time_threshold () const |
|
double | get_time_threshold () const |
|
void | set_time_threshold (const double t_) |
|
bool | has_time_cut () const |
|
double | get_time_cut () const |
|
void | set_time_cut (const double t_) |
|
void | set_record_original_event_id (bool flag_) |
|
bool | is_record_original_event_id () const |
|
virtual bool | can_external_random () const |
| Check if the generator accepts an external PRNG. More...
|
|
| time_slicer_generator () |
| Constructor. More...
|
|
virtual | ~time_slicer_generator () |
| Destructor. More...
|
|
virtual bool | is_initialized () const |
| Check initialization status. More...
|
|
virtual void | initialize (const datatools::properties &setup_, datatools::service_manager &service_manager_, detail::pg_dict_type &dictionary_) |
| Main initialization interface method. More...
|
|
virtual void | reset () |
| Reset. More...
|
|
virtual bool | has_next () |
| Check if a next primary event is available. More...
|
|
bool | has_name () const |
| Check for a non-empty name. More...
|
|
const std::string & | get_name () const |
| Return the name of the event generator. More...
|
|
void | set_name (const std::string &) |
| Set the name of the event generator. More...
|
|
void | reset_name () |
| Reset the name of the event generator. More...
|
|
| i_genbb () |
| Constructor. More...
|
|
virtual | ~i_genbb () |
| Destructor. More...
|
|
virtual void | load_next (primary_event &event_, bool compute_classification_=true) |
| Load a new 'primary_event' object. More...
|
|
virtual bool | has_external_random () const |
| Check if the generator uses an external PRNG. More...
|
|
virtual void | set_external_random (mygsl::rng &) |
| Set an external PRNG. More...
|
|
virtual void | reset_external_random () |
| Reset an external PRNG. More...
|
|
mygsl::rng & | grab_external_random () |
| Return a mutable reference to the external PRNG. More...
|
|
const mygsl::rng & | get_external_random () const |
| Return a non-mutable reference to the external PRNG. More...
|
|
virtual void | initialize_simple () |
| Simple initialization (no external resource) More...
|
|
virtual void | initialize_standalone (const datatools::properties &setup_) |
| Initialization from a container of properties. More...
|
|
virtual void | initialize_with_service_only (const datatools::properties &setup_, datatools::service_manager &service_manager_) |
| Initialization from a container of properties and a service manager. More...
|
|
virtual void | initialize_with_dictionary_only (const datatools::properties &setup_, detail::pg_dict_type &dictionary_) |
| Initialization from a container of properties, a service manager and a dictionnary of vertex generators. More...
|
|
datatools::logger::priority | get_logging_priority () const |
| Return the logging priority threshold. More...
|
|
void | set_logging_priority (datatools::logger::priority p) |
| Set the logging priority threshold. More...
|
|
bool | is_debug () const |
| Check the debug logging. More...
|
|
void | set_assign_generation_ids (bool) |
| Set the flag to assign unique generation Ids to primary particles. More...
|
|
bool | is_assign_generation_ids () const |
| Check the flag to assign unique generation Ids to primary particles. More...
|
|
virtual void | tree_dump (std::ostream &out=std::clog, const std::string &title="", const std::string &indent="", bool inherit=false) const |
| Smart print. More...
|
|
| i_tree_dumpable () |
| Constructor. More...
|
|
virtual | ~i_tree_dumpable () |
| Destructor. More...
|
|
virtual void | print_tree (std::ostream &out_=std::clog, const boost::property_tree::ptree &options_=empty_options()) const |
| Main new interface method for printing. More...
|
|
void | print_tree_json (std::ostream &out_=std::clog, const std::string &json_options_="") const |
| Printing with jsonized options. More...
|
|
void | print_tree_json (std::ostream &out_=std::clog, const char *json_options_=nullptr) const |
| Printing with jsonized options. More...
|
|
void | tree_dump_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="", const bool inherit_=false) const |
|
void | tree_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="") const |
|
void | smart_print_id (const int out_type_=OSTREAM_CLOG, const std::string &title_="", const std::string &indent_="") const |
|
Time slicer generator.
This generator uses the output primary event from another particle generator and classifies its primary particles in two sets of particles falling in subsequent time slices.
primary event with many particles along time
----[o--o-oo---o--o---------o-o----o-----------o-o--o--------o]----------------------> time
The result consists in several primary event instances:
- the "prompt" event contains particles with time in [0,time_threshold[,
- the "delayed" event contains particles with time in [time_threshold,time_cut[,
- particles with time in [time_cut,+infinity[ are dropped.
prompt particles delayed particles ignored particles
----[o--o-oo---o--o---][----o-o----o------][---o-o--o--------o]----------------------> time
time_threshold time_cut