![]() |
Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
A registry for particle entries. More...
#include <bayeux/genbb_help/pdg_particle_tools.h>
Public Types | |
| typedef std::map< int32_t, particle > | particle_dict_type |
| Type of dictionary of particle records. More... | |
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 | |
| particle_registry (uint32_t flags_=0) | |
| Default constructor. More... | |
| ~particle_registry () | |
| Destructor. More... | |
| void | clear () |
| Clear the registry. More... | |
| particle & | registration (const particle &part_) |
| Registration of a particle record. More... | |
| void | unregistration (const std::string &name_) |
| Unregistration of a particle record given its name. More... | |
| void | unregistration (int32_t pdg_code_) |
| Unregistration of a particle record given its PDG code. More... | |
| bool | has_particle (int32_t pdg_code_) const |
| Check particle. More... | |
| const particle & | get_particle (int32_t pdg_code_) const |
| Return a registered unit. More... | |
| bool | has_particle_by_name (const std::string &name_) const |
| Check particle given its name. More... | |
| const particle & | get_particle_by_name (const std::string &name_) const |
| Return a registered particle given its name. 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... | |
| void | register_standard_particles () |
| Register standard particles. 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 particle_registry & | system_registry () |
| Access to the mutable system singleton registry. More... | |
| static const particle_registry & | const_system_registry () |
| Access to the non mutable system singleton registry. 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_) |
A registry for particle entries.
| typedef std::map<int32_t, particle> genbb::pdg::particle_registry::particle_dict_type |
Type of dictionary of particle records.
| genbb::pdg::particle_registry::particle_registry | ( | uint32_t | flags_ = 0 | ) |
Default constructor.
| genbb::pdg::particle_registry::~particle_registry | ( | ) |
Destructor.
| void genbb::pdg::particle_registry::clear | ( | ) |
Clear the registry.
|
static |
Access to the non mutable system singleton registry.
| const particle& genbb::pdg::particle_registry::get_particle | ( | int32_t | pdg_code_ | ) | const |
Return a registered unit.
| const particle& genbb::pdg::particle_registry::get_particle_by_name | ( | const std::string & | name_ | ) | const |
Return a registered particle given its name.
| bool genbb::pdg::particle_registry::has_particle | ( | int32_t | pdg_code_ | ) | const |
Check particle.
| bool genbb::pdg::particle_registry::has_particle_by_name | ( | const std::string & | name_ | ) | const |
Check particle given its name.
| void genbb::pdg::particle_registry::register_standard_particles | ( | ) |
Register standard particles.
Registration of a particle record.
|
static |
Access to the mutable system singleton registry.
|
virtual |
Smart print.
Reimplemented from datatools::i_tree_dumpable.
| void genbb::pdg::particle_registry::unregistration | ( | const std::string & | name_ | ) |
Unregistration of a particle record given its name.
| void genbb::pdg::particle_registry::unregistration | ( | int32_t | pdg_code_ | ) |
Unregistration of a particle record given its PDG code.
1.8.15