Skip to content

Commit 2b20d33

Browse files
Fix build errors
1 parent 00ebe0d commit 2b20d33

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

‎PWGJE/Tasks/jetShape.cxx‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -668,11 +668,12 @@ struct JetShapeTask {
668668
return out;
669669
}
670670

671-
enum Pid2DRegion { RegIncAll = 0,
672-
RegIncJet,
673-
RegSignal,
674-
RegPerp,
675-
RegRand };
671+
// Regions of the pid2D maps (int constants, not an enum: they are combined with float bin centres).
672+
static constexpr int RegIncAll = 0; // inclusive, all events
673+
static constexpr int RegIncJet = 1; // inclusive, events with an accepted jet
674+
static constexpr int RegSignal = 2;
675+
static constexpr int RegPerp = 3;
676+
static constexpr int RegRand = 4;
676677

677678
void fillMismatchTemplate(float p, float tpcPr, std::array<float, 2> const& mis, int region)
678679
{
@@ -692,7 +693,7 @@ struct JetShapeTask {
692693
constexpr float RBinWidth2D = 0.1f;
693694
constexpr float RMax2D = NRBins2D * RBinWidth2D;
694695
constexpr int Outside = -1;
695-
static constexpr float JetPtEdges2D[NJetPtBins2D + 1] = {20.f, 40.f, 60.f, 80.f, 140.f};
696+
static constexpr std::array<float, NJetPtBins2D + 1> JetPtEdges2D = {20.f, 40.f, 60.f, 80.f, 140.f};
696697
if (r < 0.f || r >= RMax2D) {
697698
return Outside;
698699
}

0 commit comments

Comments
 (0)