16template class std::unordered_map<std::string, u_int32_t>;
24 if (labels.empty() ==
false) {
25 if (labels.size() !=
size) {
28 for (
auto i = 0u;
i <
size; ++
i) {
29 map.emplace(labels[
i], (uint32_t)
i);
35void LabelMap::replaceLabelsRows(uint32_t
size, std::vector<std::string>
const& labels)
38 throw runtime_error_f(
"Row labels array has different size (%d) than number of rows (%d)", labels.size(),
size);
42 rowmap = populate(labels.size(), labels);
45void LabelMap::replaceLabelsCols(uint32_t
size, std::vector<std::string>
const& labels)
48 throw runtime_error_f(
"Column labels array has different size (%d) than number of columns (%d)", labels.size(),
size);
52 colmap = populate(labels.size(), labels);
63 : rowmap{populate(
rows, labels_rows_)},
64 colmap{populate(
cols, labels_cols_)},
72 colmap{populate(
size, labels)},
#define O2_BUILTIN_UNLIKELY(x)
std::vector< std::string > labels_rows
std::vector< std::string > labels_cols
Defining PrimaryVertex explicitly as messageable.
RuntimeErrorRef runtime_error(const char *)
std::unordered_map< std::string, uint32_t > labelmap_t
RuntimeErrorRef runtime_error_f(const char *,...)
LabelMap & operator=(LabelMap const &other)
VectorOfTObjectPtrs other
std::vector< ReadoutWindowData > rows