Skip to content

Commit 269f48c

Browse files
committed
Remove C-Style cast
1 parent e5385a6 commit 269f48c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ALICE3/TableProducer/alice3Centrality.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
#include <cmath>
3636
#include <cstdlib>
37+
#include <string>
3738

3839
using namespace o2;
3940
using namespace o2::framework;
@@ -62,7 +63,7 @@ struct Alice3Centrality {
6263

6364
void init(InitContext&)
6465
{
65-
const AxisSpec axisMult{maxMult.value > DefaultMult ? (int)DefaultMult : (int)maxMult, 0, maxMult, "Reconstructed tracks"};
66+
const AxisSpec axisMult{maxMult.value > DefaultMult ? static_cast<int>(DefaultMult) : static_cast<int>(maxMult), 0, maxMult, "Reconstructed tracks"};
6667
const AxisSpec axisCent{150, 0, 150, "Percentile"};
6768
TString tit = Form("%.3f < #it{#eta} < %.3f", minEta.value, maxEta.value);
6869
histos.add("centrality/numberOfTracks", tit, kTH1D, {axisMult});

0 commit comments

Comments
 (0)