Belle II Software development
|
Class to define BG types and to convert between BG types and tags or v.v. More...
#include <BeamBGTypes.h>
Public Member Functions | |
BeamBGTypes () | |
Constructor. | |
BackgroundMetaData::BG_TAG | getTag (const std::string &bgType) |
Return BG tag for a given BG type. | |
std::string | getType (BackgroundMetaData::BG_TAG bgTag) const |
Return BG type for a given BG tag. | |
std::string | getType (unsigned int bgTag) const |
Return BG type for a given number. | |
std::string | getBGTypes () const |
Return all defined BG types as a string. | |
Private Attributes | |
std::map< std::string, BackgroundMetaData::BG_TAG > | m_tags |
a map of BG tags | |
Class to define BG types and to convert between BG types and tags or v.v.
Designed primarely for BeamBkgTagSetter and BeamBkgMixer modules Suitable also to convert backgroundTag in SimHit classes to name (BG type)
Definition at line 27 of file BeamBGTypes.h.
|
inline |
Constructor.
Definition at line 33 of file BeamBGTypes.h.
|
inline |
Return all defined BG types as a string.
Definition at line 111 of file BeamBGTypes.h.
|
inline |
Return BG tag for a given BG type.
bgType | BG type name |
Definition at line 74 of file BeamBGTypes.h.
|
inline |
Return BG type for a given BG tag.
bgTag | BG tag value |
Definition at line 84 of file BeamBGTypes.h.
|
inline |
Return BG type for a given number.
bgTag | BG tag value |
Definition at line 98 of file BeamBGTypes.h.
|
private |
a map of BG tags
Definition at line 123 of file BeamBGTypes.h.