33 #ifndef GENBB_HELP_TIME_SLICER_GENERATOR_H 34 #define GENBB_HELP_TIME_SLICER_GENERATOR_H 1 130 virtual void reset();
139 bool compute_classification_ =
true);
150 bool _initialized_ =
false;
154 double _time_threshold_;
157 bool _record_original_event_id_ =
true;
161 std::size_t _original_event_counter_ = 0;
175 #endif // GENBB_HELP_TIME_SLICER_GENERATOR_H virtual bool can_external_random() const
Check if the generator accepts an external PRNG.
slice_mode_type get_mode() const
i_genbb & grab_generator()
void set_generator(i_genbb &)
const i_genbb & get_generator() const
Time slicer generator.
Definition: time_slicer_generator.h:69
GENBB particle generator abstract base class.
Definition: i_genbb.h:59
bool has_time_threshold() const
virtual void _load_next(primary_event &event_, bool compute_classification_=true)
Main generation function.
Undefined event time slice mode.
Definition: time_slicer_generator.h:76
time_slicer_generator()
Constructor.
Select only the prompt event (particles in the prompt time interval)
Definition: time_slicer_generator.h:77
bool has_generator() const
void set_time_threshold(const double t_)
double get_time_cut() const
void set_time_cut(const double t_)
void set_mode(const slice_mode_type)
DOCD_CLASS_DECLARATION(my::algo)
Declaration of the OCD support for the my::algo class.
void set_record_original_event_id(bool flag_)
#define GENBB_PG_REGISTRATION_INTERFACE(GENBB_CLASS_NAME)
Definition: genbb_macros.h:22
Select both prompt and delayed events (particles in both time intervals)
Definition: time_slicer_generator.h:79
Top-level namespace of the Bayeux/genbb_help module library.
Definition: alpha_decay.h:51
virtual bool has_next()
Check if a next primary event is available.
Select only the delayed event (particles in the delayed time interval)
Definition: time_slicer_generator.h:78
A primary event from a Monte-Carlo generator.
Definition: primary_event.h:60
virtual void reset()
Reset.
slice_mode_type
Event slice mode.
Definition: time_slicer_generator.h:75
virtual bool is_initialized() const
Check initialization status.
double get_time_threshold() const
std::map< std::string, pg_entry_type > pg_dict_type
Definition: pg_tools.h:134
virtual ~time_slicer_generator()
Destructor.
virtual void initialize(const datatools::properties &setup_, datatools::service_manager &service_manager_, detail::pg_dict_type &dictionary_)
Main initialization interface method.
bool is_record_original_event_id() const
bool has_time_cut() const