Skip to content
Snippets Groups Projects
Commit b0a7f876 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'master-dq-offline-lbrange' into 'master'

Fix LB range assignment error (ATLASRECTS-5753)

See merge request atlas/athena!38215
parents dafb8de5 827b54e2
No related branches found
No related tags found
No related merge requests found
......@@ -75,8 +75,8 @@ namespace Monitored {
if ( period == HistogramDef::RunPeriod::Run ) {
lbString = "";
} else if ( period == HistogramDef::RunPeriod::LowStat ) {
const unsigned lbBase = lumiBlock-(lumiBlock%20);
lbString = "/lowStat_LB"+std::to_string(lbBase+1)+"-"+std::to_string(lbBase+20);
const unsigned lbBase = lumiBlock-(((int64_t)lumiBlock-1)%20);
lbString = "/lowStat_LB"+std::to_string(lbBase)+"-"+std::to_string(lbBase+19);
} else {
lbString = "/lb_"+std::to_string(lumiBlock);
}
......
......@@ -121,7 +121,7 @@ class LumiblockHistogramProviderTestSuite {
void test_shouldCreateNewHistogramWithUpdatedLumiBlock() {
auto expectedFlow = {
make_tuple(100, 100000, "/run_100000/lowStat_LB101-120/"),
make_tuple(100, 100000, "/run_100000/lowStat_LB81-100/"),
make_tuple(125, 200000, "/run_200000/lowStat_LB121-140/"),
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment