Skip to content

Commit 0c520f6

Browse files
authored
Fix static_cast for event selection stage axis
1 parent c5c763b commit 0c520f6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎PWGLF/Tasks/Resonances/f0phiproxy.cxx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
/// \brief Dipion-based half-momentum kaon proxies with kaon/phi and pion/K*0 bachelors, in data and MC.
1414
/// \author Sushanta Tripathy
1515

16+
#include "Common/CCDB/EventSelectionParams.h"
1617
#include "Common/DataModel/Centrality.h"
1718
#include "Common/DataModel/EventSelection.h"
1819
#include "Common/DataModel/Multiplicity.h"
@@ -320,7 +321,7 @@ struct F0phiproxy {
320321
eventSelection = histos.add<TH1>(recoName("hEventSelection").c_str(), "Received; selected including activity validity", HistType::kTH1D, {{2, 0.5, 2.5}});
321322
eventSelection->GetXaxis()->SetBinLabel(1, "Received");
322323
eventSelection->GetXaxis()->SetBinLabel(2, "Selected");
323-
const AxisSpec stages{NEventStages, 0.5, NEventStages + 0.5, "Event selection stage"};
324+
const AxisSpec stages{NEventStages, 0.5, static_cast<double>(NEventStages) + 0.5, "Event selection stage"};
324325
eventStages = histos.add<TH1>(recoName("hEventSelectionSteps").c_str(), "Reconstructed event cut flow", HistType::kTH1D, {stages});
325326
eventStagesByActivity = histos.add<TH2>(recoName("hEventSelectionVsMultiplicity").c_str(), "Valid-activity collisions;activity;selection stage", HistType::kTH2D, {compactMult, stages});
326327
const std::array<const char*, NEventStages> stageNames{"Received", "Vertex", "sel8 or disabled", "INEL>0 or disabled", "Quality flags or disabled", "Valid activity selected"};

0 commit comments

Comments
 (0)