9 std::regex const lbRegex_run2(
"^/?run_\\d+/lb_(\\d+)(/.+)$");
10 std::regex const lbRegex_run3(
"^(.+)_LB((\\d+)|\\d+_(\\d+))$");
19 if (std::regex_match(histo_name,
what, ::lbRegex_run2)) {
21 int tag = std::stoi(
what.str(1));
22 return std::make_pair(
what[2],
tag);
27 if (std::regex_match(histo_name,
what, ::lbRegex_run3)) {
28 std::string
const tagStr =
what[3].length() > 0 ?
what.str(3) :
what.str(4);
30 int tag = std::stoi(tagStr);
31 return std::make_pair(
what[1],
tag);
36 return std::make_pair(histo_name, -1);