CbmRoot
|
Metadata of the histogram. More...
#include <Histogram.h>
Public Types | |
using | Flags_t = std::underlying_type_t<EHistFlag> |
Public Member Functions | |
HistogramMetadata ()=default | |
Default constructor. | |
HistogramMetadata (const std::string &msg) | |
Constructor from the metadata string representation. | |
~HistogramMetadata ()=default | |
Destructor. | |
bool | CheckFlags () const |
Checks if the histogram flags configuration is valid. | |
bool | GetFlag (EHistFlag key) const |
Get flag. | |
void | SetFlag (EHistFlag key, bool flag=true) |
Get flag. | |
std::string | ToString () const |
Converts the metadata to a string. | |
Static Public Member Functions | |
static std::pair< std::string, std::string > | SeparateNameAndMetadata (const std::string &msg) |
Separates a name and metadata of histogram. | |
Static Public Attributes | |
static constexpr std::string_view | ksTsIdSuffix = "_ts_id" |
Suffix of additional histograms vs. TS index. | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Serialization rule. | |
Private Attributes | |
Flags_t | fFlags {} |
Flags collection for the histogram. | |
Friends | |
class | boost::serialization::access |
Metadata of the histogram.
Definition at line 64 of file Histogram.h.
using cbm::algo::qa::HistogramMetadata::Flags_t = std::underlying_type_t<EHistFlag> |
Definition at line 66 of file Histogram.h.
|
default |
Default constructor.
|
inlineexplicit |
Constructor from the metadata string representation.
msg | Metadata string representation |
Definition at line 75 of file Histogram.h.
References fFlags.
|
default |
Destructor.
|
inline |
Checks if the histogram flags configuration is valid.
Definition at line 87 of file Histogram.h.
References GetFlag(), cbm::algo::qa::OmitIntegrated, and cbm::algo::qa::StoreVsTsId.
|
inline |
Get flag.
key | Flag key from the EHistFlag enumeration |
Definition at line 95 of file Histogram.h.
References fFlags.
Referenced by CheckFlags(), and cbm::algo::qa::Histogram< Axes, Storage, TotalSums >::GetFlag().
|
inlinestatic |
Separates a name and metadata of histogram.
Definition at line 113 of file Histogram.h.
References pos.
|
inlineprivate |
|
inline |
Get flag.
key | Flag key from the EHistFlag enumeration |
flag | Flag value |
Definition at line 100 of file Histogram.h.
References fFlags.
Referenced by cbm::algo::qa::Histogram< Axes, Storage, TotalSums >::SetFlag().
|
inline |
Converts the metadata to a string.
Current implementation of the metadata string: <flags> Future implementation with additional fields: <flags>;<...>;<...>;...;<...>
Definition at line 109 of file Histogram.h.
References fFlags.
Referenced by cbm::algo::qa::Histogram< Axes, Storage, TotalSums >::GetMetadataString().
|
friend |
Definition at line 125 of file Histogram.h.
|
private |
Flags collection for the histogram.
Definition at line 133 of file Histogram.h.
Referenced by GetFlag(), HistogramMetadata(), serialize(), SetFlag(), and ToString().
|
staticconstexpr |
Suffix of additional histograms vs. TS index.
Definition at line 68 of file Histogram.h.
Referenced by cbm::algo::qa::PadConfig::RegisterHistogram().