diff --git a/Control/AthenaMonitoringKernel/src/HistogramFiller/LumiblockHistogramProvider.h b/Control/AthenaMonitoringKernel/src/HistogramFiller/LumiblockHistogramProvider.h index 97cac1f22d81429417e35a6c2790ce53b266d9ae..293d007e7a866802759e81cae343a0bf84f9f3d4 100644 --- a/Control/AthenaMonitoringKernel/src/HistogramFiller/LumiblockHistogramProvider.h +++ b/Control/AthenaMonitoringKernel/src/HistogramFiller/LumiblockHistogramProvider.h @@ -58,7 +58,10 @@ namespace Monitored { const unsigned minLumi = lumiPage * historyDepth; const unsigned maxLumi = minLumi + historyDepth - 1; - def.alias = def.alias + "(" + std::to_string(minLumi) + "-" + std::to_string(maxLumi) + ")"; + if ( historyDepth > 1 ) + def.alias = def.alias + "_LB" + std::to_string(minLumi) + "_" + std::to_string(maxLumi); + else + def.alias = def.alias + "_LB" + std::to_string(minLumi); return m_factory->create(def); } @@ -69,4 +72,4 @@ namespace Monitored { }; } -#endif /* AthenaMonitoringKernel_HistogramFiller_LumiblockHistogramProvider_h */ \ No newline at end of file +#endif /* AthenaMonitoringKernel_HistogramFiller_LumiblockHistogramProvider_h */ diff --git a/Control/AthenaMonitoringKernel/test/LumiblockHistogramProviderTestSuite.cxx b/Control/AthenaMonitoringKernel/test/LumiblockHistogramProviderTestSuite.cxx index 08a232a99bcfe366c028020addb91c90e934cbfa..4f2f7fc3163e03336666b3a777e8739d0885081d 100644 --- a/Control/AthenaMonitoringKernel/test/LumiblockHistogramProviderTestSuite.cxx +++ b/Control/AthenaMonitoringKernel/test/LumiblockHistogramProviderTestSuite.cxx @@ -75,16 +75,16 @@ class LumiblockHistogramProviderTestSuite { void test_shouldCreateNewHistogramWithUpdatedAlias() { auto expectedFlow = { - make_tuple(0, "test alias(0-2)"), - make_tuple(1, "test alias(0-2)"), - make_tuple(2, "test alias(0-2)"), - make_tuple(3, "test alias(3-5)"), - make_tuple(4, "test alias(3-5)"), - make_tuple(5, "test alias(3-5)"), - make_tuple(6, "test alias(6-8)"), - make_tuple(7, "test alias(6-8)"), - make_tuple(8, "test alias(6-8)"), - make_tuple(9, "test alias(9-11)"), + make_tuple(0, "test alias_LB0_2"), + make_tuple(1, "test alias_LB0_2"), + make_tuple(2, "test alias_LB0_2"), + make_tuple(3, "test alias_LB3_5"), + make_tuple(4, "test alias_LB3_5"), + make_tuple(5, "test alias_LB3_5"), + make_tuple(6, "test alias_LB6_8"), + make_tuple(7, "test alias_LB6_8"), + make_tuple(8, "test alias_LB6_8"), + make_tuple(9, "test alias_LB9_11"), }; TNamed histogram;