![]() |
Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
#include <bayeux/mctools/base_step_hit_processor.h>
Public Types | |
| typedef std::vector< base_step_hit * > | step_hit_ptr_collection_type |
| typedef datatools::handle_pool< base_step_hit > | pool_type |
Public Types inherited from datatools::i_tree_dumpable | |
| enum | ostream_type { OSTREAM_COUT = 1, OSTREAM_CERR = 2, OSTREAM_CLOG = 3 } |
| Enumeration for standard output streams. More... | |
Public Member Functions | |
| bool | is_debug () const |
| Check the debug flag. More... | |
| void | set_debug (bool) |
| Set the debug flag. More... | |
| void | set_pool (pool_type &) |
| Set the pool of hits. More... | |
| bool | has_pool () const |
| Check for a pool of hits. More... | |
| pool_type & | get_pool () const |
| Return a reference to a mutable pool of hits. More... | |
| bool | using_private_pool () const |
| void | setup_private_pool (size_t capacity_=DEFAULT_POOL_CAPACITY) |
| void | add_new_hit (simulated_data::hit_handle_collection_type &hits_) |
| const std::string & | get_name () const |
| void | set_name (const std::string &) |
| base_step_hit_processor () | |
| Default constructor. More... | |
| virtual | ~base_step_hit_processor () |
| Destructor. More... | |
| const std::string & | get_hit_category () const |
| void | set_hit_category (const std::string &hc_) |
| const std::string & | get_sensitive_category () const |
| void | set_sensitive_category (const std::string &sc_) |
| bool | has_geom_manager () const |
| void | set_geom_manager (const geomtools::manager &gmgr_) |
| const geomtools::manager & | get_geom_manager () const |
| const datatools::properties & | get_auxiliaries () const |
| datatools::properties & | grab_auxiliaries () |
| virtual bool | accept_external_rng () const |
| virtual void | set_external_rng (mygsl::rng &rng_) |
| void | initialize (const datatools::properties &config_) |
| Initialization from a set of configuration properties. More... | |
| virtual void | initialize (const datatools::properties &config_, datatools::service_manager &service_mgr_) |
| Main setup routine: More... | |
| void | process (const step_hit_ptr_collection_type &base_step_hits_, simulated_data &sim_data_) |
| virtual void | process (const step_hit_ptr_collection_type &base_step_hits_, simulated_data::hit_handle_collection_type &hits_)=0 |
| virtual void | process (const step_hit_ptr_collection_type &base_step_hit_s, simulated_data::hit_collection_type &plain_hits_) |
| virtual void | tree_dump (std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const |
| Smart print. More... | |
| datatools::logger::priority | get_logging_priority () const |
| Return the logging priority threshold. More... | |
| void | set_logging_priority (datatools::logger::priority) |
| Set the logging priority threshold. More... | |
Public Member Functions inherited from datatools::i_tree_dumpable | |
| 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 |
Static Public Member Functions | |
| static void | init_ocd (datatools::object_configuration_description &) |
| OCD support. More... | |
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_) |
Static Public Attributes | |
| static const size_t | DEFAULT_POOL_CAPACITY = 100 |
Protected Member Functions | |
| void | _initialize (const datatools::properties &config_, datatools::service_manager &service_mgr_) |
Protected Attributes | |
| datatools::logger::priority | _logging_priority |
| Logging priority threshold. More... | |
| std::string | _name |
| Name of the step hit processor. More... | |
| std::string | _hit_category |
| std::string | _sensitive_category |
| const geomtools::manager * | _geom_manager = nullptr |
| The geometry manager. More... | |
| datatools::properties | _auxiliaries |
| Some auxiliary properties. More... | |
| pool_type * | _private_pool = nullptr |
| A private embedded pool of hits. More... | |
| bool | _pool_owner |
| Pool of hits ownership flag. More... | |
| pool_type * | _pool = nullptr |
| Reference to an external pool of hits. More... | |
Base step hit processor. The 'process' pure abstract method must be implemented.
| typedef std::vector<base_step_hit *> mctools::base_step_hit_processor::step_hit_ptr_collection_type |
| mctools::base_step_hit_processor::base_step_hit_processor | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
protected |
|
virtual |
| void mctools::base_step_hit_processor::add_new_hit | ( | simulated_data::hit_handle_collection_type & | hits_ | ) |
| const datatools::properties& mctools::base_step_hit_processor::get_auxiliaries | ( | ) | const |
| const geomtools::manager& mctools::base_step_hit_processor::get_geom_manager | ( | ) | const |
| const std::string& mctools::base_step_hit_processor::get_hit_category | ( | ) | const |
| datatools::logger::priority mctools::base_step_hit_processor::get_logging_priority | ( | ) | const |
Return the logging priority threshold.
| const std::string& mctools::base_step_hit_processor::get_name | ( | ) | const |
| pool_type& mctools::base_step_hit_processor::get_pool | ( | ) | const |
Return a reference to a mutable pool of hits.
| const std::string& mctools::base_step_hit_processor::get_sensitive_category | ( | ) | const |
| datatools::properties& mctools::base_step_hit_processor::grab_auxiliaries | ( | ) |
| bool mctools::base_step_hit_processor::has_geom_manager | ( | ) | const |
| bool mctools::base_step_hit_processor::has_pool | ( | ) | const |
Check for a pool of hits.
|
static |
OCD support.
| void mctools::base_step_hit_processor::initialize | ( | const datatools::properties & | config_ | ) |
Initialization from a set of configuration properties.
|
virtual |
Main setup routine:
| bool mctools::base_step_hit_processor::is_debug | ( | ) | const |
Check the debug flag.
| void mctools::base_step_hit_processor::process | ( | const step_hit_ptr_collection_type & | base_step_hits_, |
| simulated_data & | sim_data_ | ||
| ) |
High level routine: Given the input 'the_base_step_hits' collection of pointers to MC step hits, this method adds the proper list of 'hits' in the 'a_sim_data' instance. This method uses one of both 'process' virtual methods below depending on the type of output collection.
|
pure virtual |
Main processing routine: Given the input 'the_base_step_hits' collection of pointers to simulated step hits, this method builds the output 'the_hits' collection, typically by clusterization of original step hits.
|
virtual |
| void mctools::base_step_hit_processor::set_debug | ( | bool | ) |
Set the debug flag.
|
virtual |
| void mctools::base_step_hit_processor::set_geom_manager | ( | const geomtools::manager & | gmgr_ | ) |
| void mctools::base_step_hit_processor::set_hit_category | ( | const std::string & | hc_ | ) |
| void mctools::base_step_hit_processor::set_logging_priority | ( | datatools::logger::priority | ) |
Set the logging priority threshold.
| void mctools::base_step_hit_processor::set_name | ( | const std::string & | ) |
| void mctools::base_step_hit_processor::set_pool | ( | pool_type & | ) |
Set the pool of hits.
| void mctools::base_step_hit_processor::set_sensitive_category | ( | const std::string & | sc_ | ) |
| void mctools::base_step_hit_processor::setup_private_pool | ( | size_t | capacity_ = DEFAULT_POOL_CAPACITY | ) |
|
virtual |
Smart print.
Reimplemented from datatools::i_tree_dumpable.
Reimplemented in mctools::calorimeter_step_hit_processor, and mctools::fluence_step_hit_processor.
| bool mctools::base_step_hit_processor::using_private_pool | ( | ) | const |
|
protected |
Some auxiliary properties.
|
protected |
The geometry manager.
|
protected |
The name of the category of hits the hit processor accumulates
|
protected |
Logging priority threshold.
|
protected |
Name of the step hit processor.
|
protected |
Reference to an external pool of hits.
|
protected |
Pool of hits ownership flag.
|
protected |
A private embedded pool of hits.
|
protected |
The name of the category of sensitive detector the hit processor is attached with
|
static |
1.8.15