Skip to content

Commit 5e4f15a

Browse files
[PWGHF] Improvements to corr. bkg. matching and to D+ and D0 trees (#13126)
1 parent 79ae1da commit 5e4f15a

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

PWGHF/Core/DecayChannels.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ enum DecayChannelResonant : HfDecayChannel {
127127
LcToPKstar0 = 24, // p anti-K*0(892)
128128
LcToDeltaplusplusK = 25, // Δ++ K−
129129
LcToL1520Pi = 26, // Λ(1520) π+
130+
LcToPPhi = 29, // p φ
130131
// Ξc+
131132
XicToPKstar0 = 27, // p anti-K*0(892)
132133
XicToPPhi = 28, // p φ

PWGHF/TableProducer/treeCreatorD0ToKPi.cxx

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ DECLARE_SOA_TABLE(HfCandD0Lites, "AOD", "HFCANDD0LITE",
142142
full::OriginMcRec)
143143

144144
DECLARE_SOA_TABLE(HfCandD0Fulls, "AOD", "HFCANDD0FULL",
145-
full::CollisionId,
146145
collision::PosX,
147146
collision::PosY,
148147
collision::PosZ,
@@ -202,11 +201,9 @@ DECLARE_SOA_TABLE(HfCandD0Fulls, "AOD", "HFCANDD0FULL",
202201
full::E,
203202
full::FlagMc,
204203
full::FlagMcDecayChanRec,
205-
full::OriginMcRec,
206-
full::CandidateId);
204+
full::OriginMcRec);
207205

208206
DECLARE_SOA_TABLE(HfCandD0FullEvs, "AOD", "HFCANDD0FULLEV",
209-
full::CollisionId,
210207
collision::NumContrib,
211208
collision::PosX,
212209
collision::PosY,
@@ -215,15 +212,13 @@ DECLARE_SOA_TABLE(HfCandD0FullEvs, "AOD", "HFCANDD0FULLEV",
215212
full::RunNumber);
216213

217214
DECLARE_SOA_TABLE(HfCandD0FullPs, "AOD", "HFCANDD0FULLP",
218-
full::McCollisionId,
219215
full::Pt,
220216
full::Eta,
221217
full::Phi,
222218
full::Y,
223219
full::FlagMc,
224220
full::FlagMcDecayChanGen,
225-
full::OriginMcGen,
226-
full::McParticleId);
221+
full::OriginMcGen);
227222

228223
DECLARE_SOA_TABLE(HfCandD0Mls, "AOD", "HFCANDD0ML",
229224
ml::BdtOutputBkg,
@@ -283,7 +278,6 @@ struct HfTreeCreatorD0ToKPi {
283278
void fillEvent(const T& collision, int isEventReject, int runNumber)
284279
{
285280
rowCandidateFullEvents(
286-
collision.globalIndex(),
287281
collision.numContrib(),
288282
collision.posX(),
289283
collision.posY(),
@@ -337,7 +331,6 @@ struct HfTreeCreatorD0ToKPi {
337331
} else {
338332
double cosThetaStar = candFlag == 0 ? hfHelper.cosThetaStarD0(candidate) : hfHelper.cosThetaStarD0bar(candidate);
339333
rowCandidateFull(
340-
candidate.collisionId(),
341334
candidate.posX(),
342335
candidate.posY(),
343336
candidate.posZ(),
@@ -397,8 +390,7 @@ struct HfTreeCreatorD0ToKPi {
397390
e,
398391
flagMc,
399392
flagMcDecay,
400-
origin,
401-
candidate.globalIndex());
393+
origin);
402394
}
403395
if constexpr (applyMl) {
404396
if (candFlag == 0) {
@@ -536,7 +528,10 @@ struct HfTreeCreatorD0ToKPi {
536528
}
537529
}
538530
if constexpr (onlySig) {
539-
if ((std::abs(candidate.flagMcMatchRec()) != o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) || (fillCorrBkgs && (candidate.flagMcMatchRec() != 0))) {
531+
if (fillCorrBkgs && candidate.flagMcMatchRec() == 0) {
532+
continue;
533+
}
534+
if (!fillCorrBkgs && std::abs(candidate.flagMcMatchRec()) != o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) {
540535
continue;
541536
}
542537
}
@@ -566,15 +561,13 @@ struct HfTreeCreatorD0ToKPi {
566561
for (const auto& particle : mcParticles) {
567562
if ((std::abs(particle.flagMcMatchGen()) == o2::hf_decay::hf_cand_2prong::DecayChannelMain::D0ToPiK) || (fillCorrBkgs && particle.flagMcMatchGen() != 0)) {
568563
rowCandidateFullParticles(
569-
particle.mcCollisionId(),
570564
particle.pt(),
571565
particle.eta(),
572566
particle.phi(),
573567
RecoDecay::y(particle.pVector(), o2::constants::physics::MassD0),
574568
particle.flagMcMatchGen(),
575569
particle.flagMcDecayChanGen(),
576-
particle.originMcGen(),
577-
particle.globalIndex());
570+
particle.originMcGen());
578571
}
579572
}
580573
}

PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ struct HfTreeCreatorDplusToPiKPi {
371371
candidate.eta(),
372372
candidate.phi(),
373373
hfHelper.yDplus(candidate),
374-
coll.numContrib(),
375374
cent,
375+
coll.numContrib(),
376376
flagMc,
377377
originMc,
378378
channelMc);

PWGHF/Utils/utilsMcMatching.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ static const std::unordered_map<DecayChannelResonant, const std::array<int, 2>>
138138
{DecayChannelResonant::LcToPKstar0, {-o2::constants::physics::Pdg::kK0Star892, +PDG_t::kProton}},
139139
{DecayChannelResonant::LcToDeltaplusplusK, {+2224, +PDG_t::kKMinus}},
140140
{DecayChannelResonant::LcToL1520Pi, {+102134, +PDG_t::kPiPlus}},
141+
{DecayChannelResonant::LcToPPhi, {+PDG_t::kProton, +o2::constants::physics::Pdg::kPhi}},
141142
};
142143

143144
// Ξc+

0 commit comments

Comments
 (0)