BOSS 7.0.7
BESIII Offline Software System
|
#include <SourceIdentifier.h>
Public Member Functions | |
SourceIdentifier (eformat::SubDetector subdet, uint16_t id) | |
SourceIdentifier (uint32_t sid) | |
eformat::SubDetector | subdetector_id (void) const |
uint16_t | module_id (void) const |
uint32_t | code (void) const |
std::string | human (void) const |
std::string | human_detector (void) const |
Defines converters between source identifiers and its components.
Definition at line 94 of file SourceIdentifier.h.
eformat::helper::SourceIdentifier::SourceIdentifier | ( | eformat::SubDetector | subdet, |
uint16_t | id | ||
) |
Constructor. Takes the components to form a source identifier.
subdet | The subdetector for this source |
id | The module identifier |
Definition at line 18 of file SourceIdentifier.cxx.
eformat::helper::SourceIdentifier::SourceIdentifier | ( | uint32_t | sid | ) |
Constructor. Takes the source identifier to understand the components from.
sid | The source identifier, fully built. |
Definition at line 25 of file SourceIdentifier.cxx.
uint32_t eformat::helper::SourceIdentifier::code | ( | void | ) | const |
Gets the full 32-bit number made by assembling the 3 numbers above.
Definition at line 31 of file SourceIdentifier.cxx.
Referenced by main().
std::string eformat::helper::SourceIdentifier::human | ( | void | ) | const |
Returns a string that represents the source identifier in a human readable format
Definition at line 39 of file SourceIdentifier.cxx.
std::string eformat::helper::SourceIdentifier::human_detector | ( | void | ) | const |
Returns a string that represents the subdetector identifier in a human readable format
Definition at line 46 of file SourceIdentifier.cxx.
|
inline |
Extracts the Module identifier from the source identifier.
Definition at line 123 of file SourceIdentifier.h.
Referenced by main().
|
inline |
Extracts the SubDetector component of the identifier.
Definition at line 118 of file SourceIdentifier.h.
Referenced by main().