Skip to content

Commit 37613ca

Browse files
PWGHF: Adding channel info in D+ tree
1 parent c67a2d6 commit 37613ca

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ DECLARE_SOA_TABLE(HfCandDpLites, "AOD", "HFCANDDPLITE",
124124
full::Phi,
125125
full::Y,
126126
hf_cand_3prong::FlagMcMatchRec,
127-
hf_cand_3prong::OriginMcRec)
127+
hf_cand_3prong::OriginMcRec,
128+
hf_cand_3prong::FlagMcDecayChanRec)
128129

129130
DECLARE_SOA_TABLE(HfCandDpFulls, "AOD", "HFCANDDPFULL",
130131
collision::BCId,
@@ -204,7 +205,8 @@ DECLARE_SOA_TABLE(HfCandDpFulls, "AOD", "HFCANDDPFULL",
204205
full::Y,
205206
full::E,
206207
hf_cand_3prong::FlagMcMatchRec,
207-
hf_cand_3prong::OriginMcRec);
208+
hf_cand_3prong::OriginMcRec,
209+
hf_cand_3prong::FlagMcDecayChanRec);
208210

209211
DECLARE_SOA_TABLE(HfCandDpFullEvs, "AOD", "HFCANDDPFULLEV",
210212
collision::BCId,
@@ -274,9 +276,11 @@ struct HfTreeCreatorDplusToPiKPi {
274276
{
275277
int8_t flagMc = 0;
276278
int8_t originMc = 0;
279+
int8_t channelMc = 0;
277280
if constexpr (doMc) {
278281
flagMc = candidate.flagMcMatchRec();
279282
originMc = candidate.originMcRec();
283+
channelMc = candidate.flagMcDecayChanRec();
280284
}
281285

282286
auto prong0 = candidate.template prong0_as<TracksWPid>();
@@ -327,7 +331,8 @@ struct HfTreeCreatorDplusToPiKPi {
327331
candidate.phi(),
328332
hfHelper.yDplus(candidate),
329333
flagMc,
330-
originMc);
334+
originMc,
335+
channelMc);
331336
} else {
332337
rowCandidateFull(
333338
candidate.collision().bcId(),
@@ -407,7 +412,8 @@ struct HfTreeCreatorDplusToPiKPi {
407412
hfHelper.yDplus(candidate),
408413
hfHelper.eDplus(candidate),
409414
flagMc,
410-
originMc);
415+
originMc,
416+
channelMc);
411417
}
412418
}
413419

0 commit comments

Comments
 (0)