Skip to content

Commit 04287ea

Browse files
authored
[OMON-669] Disregard calibration run when checking orbit ID (#327)
1 parent 6045075 commit 04287ea

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif()
3131

3232
# Define project
3333
project(Monitoring
34-
VERSION 3.17.1
34+
VERSION 3.17.2
3535
DESCRIPTION "O2 Monitoring library"
3636
LANGUAGES CXX
3737
)

examples/14-OrbitId.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ int main(int argc, char* argv[])
5858
auto run = activeRuns.activeruns(i).runnumber();
5959
for (int j = 0; j < activeRuns.activeruns(i).detectors_size(); j++) {
6060
auto detector = activeRuns.activeruns(i).detectors(j);
61+
auto runType = activeRuns.activeruns(i).runtype();
62+
if (runType.find("calib") != std::string::npos || runType.find("CALIB") != std::string::npos) {
63+
MonLogger::Get() << "Skipping calibration run " << run << MonLogger::End();
64+
continue;
65+
}
6166
for (auto& c : detector) c = std::tolower(c);
6267
detectorRunMap.insert({detector, run});
6368
}

0 commit comments

Comments
 (0)