Skip to content

Commit f8c7333

Browse files
author
Nicolas Strangmann
committed
Fix static_cast
1 parent 432c51e commit f8c7333

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGEM/PhotonMeson/TableProducer/bcWiseClusterSkimmer.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,15 @@ struct bcWiseClusterSkimmer {
247247
bool hasFoundFT0 = bc.has_foundFT0();
248248
int foundFT0ID = hasFoundFT0 ? bc.foundFT0().bcId() : -1;
249249
int FT0ID = hasFT0 ? bc.ft0().bcId() : -1;
250-
mHistManager.fill(HIST("BCHasFT0FoundFT0"), static_cast<float> FT0ID, static_cast<float> foundFT0ID);
251-
mHistManager.fill(HIST("BCFoundFT0Diff"), static_cast<float> foundFT0ID - static_cast<float> FT0ID);
250+
mHistManager.fill(HIST("BCHasFT0FoundFT0"), static_cast<float>(FT0ID), static_cast<float>(foundFT0ID));
251+
mHistManager.fill(HIST("BCFoundFT0Diff"), static_cast<float>(foundFT0ID - FT0ID));
252252

253253
auto bcIDInOrbit = bc.globalBC() % 3564;
254254

255255
if (hasMCCollision) {
256-
mHistManager.fill(HIST("BCIDOfMCColl"), static_cast<float> bcIDInOrbit);
256+
mHistManager.fill(HIST("BCIDOfMCColl"), static_cast<float>(bcIDInOrbit));
257257
if (!hasFoundFT0) {
258-
mHistManager.fill(HIST("BCIDOfMCCollButNoFT0"), static_cast<float> bcIDInOrbit);
258+
mHistManager.fill(HIST("BCIDOfMCCollButNoFT0"), static_cast<float>(bcIDInOrbit));
259259
}
260260
}
261261

0 commit comments

Comments
 (0)