Skip to content

Commit 0aec0ac

Browse files
committed
eventSelection.cxx: Fix type truncation
1 parent de2fe06 commit 0aec0ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Common/TableProducer/eventSelection.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,9 @@ struct BcSelectionTask {
287287
// first bc of the first orbit
288288
bcSOR = runInfo.orbitSOR * nBCsPerOrbit;
289289
// duration of TF in bcs
290-
nBCsPerTF = confNumberOfOrbitsPerTF < 0 ? runInfo.orbitsPerTF * nBCsPerOrbit : confNumberOfOrbitsPerTF * nBCsPerOrbit;
290+
nBCsPerTF = confNumberOfOrbitsPerTF < 0 ? runInfo.orbitsPerTF * nBCsPerOrbit : static_cast<int64_t>(confNumberOfOrbitsPerTF) * nBCsPerOrbit;
291291
if (strLPMProductionTag == "LHC25f3") // temporary workaround for MC production LHC25f3 anchored to Pb-Pb 2023 apass5 (to be removed once the info is in ccdb)
292-
nBCsPerTF = 8 * nBCsPerOrbit;
292+
nBCsPerTF = static_cast<int64_t>(8) * nBCsPerOrbit;
293293
}
294294

295295
// timestamp of the middle of the run used to access run-wise CCDB entries

0 commit comments

Comments
 (0)