|
Falaise
4.0.1
SuperNEMO Software Toolkit
|
A cut performed on the event record's 'event header' bank. More...
#include <falaise/snemo/cuts/event_header_cut.h>
Public Types | |
| enum | mode_type { MODE_UNDEFINED = 0, MODE_FLAG = 0x1, MODE_RUN_NUMBER = 0x2, MODE_EVENT_NUMBER = 0x4, MODE_LIST_OF_EVENT_IDS = 0x8 } |
| Mode of the cut. More... | |
Public Types inherited from cuts::i_cut | |
| enum | export_config_flags |
Public Types inherited from datatools::i_tree_dumpable | |
| enum | ostream_type |
Public Member Functions | |
| void | set_EH_label (const std::string &EH_label_) |
| Set the 'Event header' bank label/name. More... | |
| const std::string & | get_EH_label () const |
| Return the 'Event header' bank label/name. More... | |
| uint32_t | get_mode () const |
| Return the cut mode. More... | |
| bool | is_mode_flag () const |
| Check mode FLAG: More... | |
| bool | is_mode_run_number () const |
| Check mode RUN_NUMBER: More... | |
| bool | is_mode_event_number () const |
| Check mode EVENT_NUMBER: More... | |
| bool | is_mode_list_of_event_ids () const |
| Check mode LIST_OF_EVENT_IDS: More... | |
| void | set_flag_name (const std::string &flag_name_) |
| const std::string & | get_flag_name () const |
| void | set_run_number_min (int run_number_min_) |
| void | set_run_number_max (int run_number_max_) |
| void | set_event_number_min (int event_number_min_) |
| void | set_event_number_max (int event_number_max_) |
| void | list_of_event_ids_dump (std::ostream &out_=std::clog) const |
| void | list_of_event_ids_load (const std::string &filename_) |
| event_header_cut (datatools::logger::priority logging_priority_=datatools::logger::PRIO_FATAL) | |
| Constructor. More... | |
| virtual | ~event_header_cut () |
| Destructor. More... | |
| virtual void | initialize (const datatools::properties &configuration_, datatools::service_manager &service_manager_, cuts::cut_handle_dict_type &cut_dict_) |
| Initilization. More... | |
| virtual void | reset () |
| Reset. More... | |
Public Member Functions inherited from cuts::i_cut | |
| bool | is_debug () const |
| bool | has_name () const |
| void | set_name (const std::string &a_name) |
| const std::string & | get_name () const |
| bool | has_description () const |
| const std::string & | get_description () const |
| void | set_description (const std::string &a_description) |
| bool | has_version () const |
| const std::string & | get_version () const |
| void | set_version (const std::string &a_version) |
| bool | is_initialized () const |
| bool | has_user_data () const |
| void | set_user_data (const T &obj_) |
| bool | is_user_data () const |
| const T & | get_user_data () const |
| void | register_supported_user_data_type () |
| void | unregister_supported_user_data_type () |
| bool | is_user_data_type_supported () const |
| bool | is_user_data_type_supported (const std::type_info &tinfo_) const |
| void | reset_user_data () |
| virtual void | initialize_simple () |
| virtual void | initialize_standalone (const datatools::properties &a_config) |
| virtual void | initialize_with_service_only (const datatools::properties &a_config, datatools::service_manager &a_service_manager) |
| virtual void | initialize_without_service (const datatools::properties &a_config, cut_handle_dict_type &a_cut_dictionary) |
| virtual void | export_to_config (datatools::properties &config_, uint32_t flags_=EXPORT_CONFIG_DEFAULT, const std::string &prefix_="") const |
| virtual int | process () |
| int | operator() () |
| i_cut (datatools::logger::priority p=datatools::logger::PRIO_FATAL) | |
| virtual | ~i_cut () |
| virtual void | tree_dump (std::ostream &a_out=std::clog, const std::string &a_title="", const std::string &a_indent="", bool a_inherit=false) const |
| void | print (std::ostream &a_out=std::clog) const |
| void | set_logging_priority (datatools::logger::priority p) |
| datatools::logger::priority | get_logging_priority () const |
| size_t | get_number_of_accepted_entries () const |
| size_t | get_number_of_rejected_entries () const |
| size_t | get_number_of_processed_entries () const |
| void | reset_counters () |
| bool | is_activated_counters () const |
| void | set_activated_counters (bool) |
| virtual std::string | get_type_id () const=0 |
Public Member Functions inherited from datatools::i_tree_dumpable | |
| i_tree_dumpable () | |
| virtual | ~i_tree_dumpable () |
| virtual void | print_tree (std::ostream &out_=std::clog, const boost::property_tree::ptree &options_=empty_options()) const |
| void | print_tree_json (std::ostream &out_=std::clog, const std::string &json_options_="") const |
| void | print_tree_json (std::ostream &out_=std::clog, const char *json_options_=nullptr) const |
| 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 |
Protected Member Functions | |
| void | _set_defaults () |
| Default values. More... | |
| virtual int | _accept () |
| Selection. More... | |
Protected Member Functions inherited from cuts::i_cut | |
| void | _set_user_data (const boost::shared_ptr< i_referenced_data > &hd_) |
| void | _common_initialize (const datatools::properties &a_config) |
| void | _import_user_data_from (const i_cut &) |
| void | _export_user_data_to (i_cut &) const |
| void | _set_name (const std::string &a_name) |
| void | _set_initialized (bool a_initialized) |
| virtual void | _prepare_cut () |
| virtual int | _finish_cut (int a_selection_status) |
| virtual void | _increment_counters (int a_selection_status) |
| virtual void | _at_set_user_data () |
| virtual void | _at_reset_user_data () |
| void | _reset () |
| void | _set_defaults () |
Additional Inherited Members | |
Static Public Member Functions inherited from cuts::i_cut | |
| static void | common_ocd (datatools::object_configuration_description &ocd_) |
Static Public Member Functions inherited from datatools::i_tree_dumpable | |
| static const boost::property_tree::ptree & | empty_options () |
| static boost::property_tree::ptree | make_base_print_options (const std::string &title_, const std::string &indent_="", const bool inherit_=false) |
| static std::ostream & | last_skip_tag (std::ostream &out_) |
| static std::ostream & | skip_tag (std::ostream &out_) |
| static std::ostream & | last_tag (std::ostream &out_) |
| static std::ostream & | tag (std::ostream &out_) |
Public Attributes inherited from cuts::i_cut | |
| EXPORT_CONFIG_CLEAR | |
| EXPORT_CONFIG_NAME | |
| EXPORT_CONFIG_DESCRIPTION | |
| EXPORT_CONFIG_VERSION | |
| EXPORT_CONFIG_LOGGING_PRIORITY | |
| EXPORT_CONFIG_DEFAULT | |
| EXPORT_CONFIG_LAST | |
Public Attributes inherited from datatools::i_tree_dumpable | |
| OSTREAM_COUT | |
| OSTREAM_CERR | |
| OSTREAM_CLOG | |
Protected Attributes inherited from cuts::i_cut | |
| datatools::logger::priority | _logging |
| std::string | _name |
| std::string | _description |
| std::string | _version |
| std::set< const std::type_info * > | _supported_types_ |
A cut performed on the event record's 'event header' bank.
| snemo::cut::event_header_cut::event_header_cut | ( | datatools::logger::priority | logging_priority_ = datatools::logger::PRIO_FATAL | ) |
Constructor.
|
virtual |
Destructor.
|
protectedvirtual |
Selection.
Implements cuts::i_cut.
|
protected |
Default values.
| const std::string& snemo::cut::event_header_cut::get_EH_label | ( | ) | const |
Return the 'Event header' bank label/name.
| const std::string& snemo::cut::event_header_cut::get_flag_name | ( | ) | const |
| uint32_t snemo::cut::event_header_cut::get_mode | ( | ) | const |
Return the cut mode.
|
virtual |
Initilization.
Implements cuts::i_cut.
| bool snemo::cut::event_header_cut::is_mode_event_number | ( | ) | const |
Check mode EVENT_NUMBER:
| bool snemo::cut::event_header_cut::is_mode_flag | ( | ) | const |
Check mode FLAG:
| bool snemo::cut::event_header_cut::is_mode_list_of_event_ids | ( | ) | const |
Check mode LIST_OF_EVENT_IDS:
| bool snemo::cut::event_header_cut::is_mode_run_number | ( | ) | const |
Check mode RUN_NUMBER:
| void snemo::cut::event_header_cut::list_of_event_ids_dump | ( | std::ostream & | out_ = std::clog | ) | const |
| void snemo::cut::event_header_cut::list_of_event_ids_load | ( | const std::string & | filename_ | ) |
|
virtual |
Reset.
Implements cuts::i_cut.
| void snemo::cut::event_header_cut::set_EH_label | ( | const std::string & | EH_label_ | ) |
Set the 'Event header' bank label/name.
| void snemo::cut::event_header_cut::set_event_number_max | ( | int | event_number_max_ | ) |
| void snemo::cut::event_header_cut::set_event_number_min | ( | int | event_number_min_ | ) |
| void snemo::cut::event_header_cut::set_flag_name | ( | const std::string & | flag_name_ | ) |
| void snemo::cut::event_header_cut::set_run_number_max | ( | int | run_number_max_ | ) |
| void snemo::cut::event_header_cut::set_run_number_min | ( | int | run_number_min_ | ) |
1.8.15