Skip to content

Commit d52ef9f

Browse files
committed
Linter fix
1 parent 5f224b8 commit d52ef9f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Common/TableProducer/eventSelection.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,9 +1251,9 @@ struct LumiTask {
12511251
csZNC = -1;
12521252
// Temporary workaround to get visible cross section. TODO: store run-by-run visible cross sections in CCDB
12531253
if (beamZ1 == 1 && beamZ2 == 1) {
1254-
if (std::fabs(sqrts - 900.) < 20.) { // o2-linter: disable=magic-number (TODO store and extract cross sections from ccdb)
1254+
if (std::fabs(sqrts - 900.) < 100.) { // o2-linter: disable=magic-number (TODO store and extract cross sections from ccdb)
12551255
csTVX = 0.0357e6; // ub
1256-
} else if (std::fabs(sqrts - 5360.) < 20.) { // pp-ref // o2-linter: disable=magic-number (TODO store and extract cross sections from ccdb)
1256+
} else if (std::fabs(sqrts - 5360.) < 100.) { // pp-ref // o2-linter: disable=magic-number (TODO store and extract cross sections from ccdb)
12571257
csTVX = 0.0503e6; // ub
12581258
} else if (std::fabs(sqrts - 13600.) < 300.) { // o2-linter: disable=magic-number (TODO store and extract cross sections from ccdb)
12591259
csTVX = 0.0594e6; // ub
@@ -1326,7 +1326,8 @@ struct LumiTask {
13261326
mCounterZNC.push_back(classIdZNC >= 0 ? record.scalers[classIdZNC].l1Before : 0);
13271327
}
13281328
// ZEM class not defined, using inputs instead
1329-
mCounterZEM.push_back(record.scalersInps.size() >= 25 ? record.scalersInps[24] : 0); // see ZEM=1ZED input index in https://indico.cern.ch/event/1153630/contributions/4844362/
1329+
int indexZEM = 24; // see ZEM=1ZED input index in https://indico.cern.ch/event/1153630/contributions/4844362/
1330+
mCounterZEM.push_back(record.scalersInps.size() >= indexZEM + 1 ? record.scalersInps[indexZEM] : 0);
13301331
}
13311332

13321333
// calculate pileup corrections

0 commit comments

Comments
 (0)