Skip to content

Commit be67298

Browse files
wuctlbyCopilot
andcommitted
D0 candidate type
Co-authored-by: Copilot <copilot@github.com>
1 parent fcb08ab commit be67298

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

PWGHF/D2H/Tasks/taskPtFlucCharmHadrons.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ enum DecayChannel { DplusToPiKPi = 0,
6060
D0ToPiK,
6161
D0ToKPi };
6262

63+
enum CandD0Type { PureD0 = 0,
64+
PureD0bar,
65+
ReflectedD0,
66+
ReflectedD0bar
67+
};
68+
6369
struct HfTaskPtFlucCharmHadrons {
6470
Configurable<int> centEstimator{"centEstimator", 2, "Centrality estimation (FT0A: 1, FT0C: 2, FT0M: 3, FV0A: 4)"};
6571
Configurable<int> selectionFlag{"selectionFlag", 1, "Selection Flag for hadron (e.g. 1 for skimming, 3 for topo. and kine., 7 for PID)"};
@@ -224,10 +230,10 @@ struct HfTaskPtFlucCharmHadrons {
224230
}
225231
if constexpr (std::is_same_v<CandT, CandD0DataWMl>) {
226232
if (channel == DecayChannel::D0ToPiK) {
227-
return {HfHelper::invMassD0ToPiK(cand), cand.isSelD0bar() ? 3 : 1}; // 3: reflected D0bar, 1: pure D0 excluding reflected D0bar
233+
return {HfHelper::invMassD0ToPiK(cand), cand.isSelD0bar() ? CandD0Type::ReflectedD0bar : CandD0Type::PureD0};
228234
}
229235
if (channel == DecayChannel::D0ToKPi) {
230-
return {HfHelper::invMassD0barToKPi(cand), cand.isSelD0() ? 3 : 2}; // 3: reflected D0, 2: pure D0bar excluding reflected D0
236+
return {HfHelper::invMassD0barToKPi(cand), cand.isSelD0() ? CandD0Type::ReflectedD0 : CandD0Type::PureD0bar};
231237
}
232238
}
233239
return {0., 0.}; // default return value for unsupported types

0 commit comments

Comments
 (0)