Skip to content

Commit 9b066a4

Browse files
apalascianoAntonio Palasciano
andauthored
PWGHF: Fix in B+ MC dataCreator (AliceO2Group#7931)
* PWGHF: Fix in B+ MC dataCreator * fix * fix2 --------- Co-authored-by: Antonio Palasciano <[email protected]>
1 parent 4b31a5e commit 9b066a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ struct HfDataCreatorCharmHadPiReduced {
476476
// B+ → D0(bar) π+ → (K+ π-) π+
477477
auto indexRec = RecoDecay::getMatchedMCRec(particlesMc, std::array{vecDaughtersB[0], vecDaughtersB[1], vecDaughtersB[2]}, Pdg::kBPlus, std::array{+kPiPlus, +kKPlus, -kPiPlus}, true, &sign, 2);
478478
if (indexRec > -1) {
479-
// Printf("Checking D0bar → K+ π-");
479+
// D0(bar) → K+ π-;
480480
indexRec = RecoDecay::getMatchedMCRec(particlesMc, std::array{vecDaughtersB[0], vecDaughtersB[1]}, Pdg::kD0, std::array{+kPiPlus, -kKPlus}, true, &sign, 1);
481481
if (indexRec > -1) {
482482
flag = sign * BIT(hf_cand_bplus::DecayType::BplusToD0Pi);
@@ -492,8 +492,6 @@ struct HfDataCreatorCharmHadPiReduced {
492492
checkWrongCollision(particleMother, collision, indexCollisionMaxNumContrib, flagWrongCollision);
493493
}
494494
}
495-
rowHfD0PiMcRecReduced(indexHfCandCharm, selectedTracksPion[vecDaughtersB.back().globalIndex()], flag, flagWrongCollision, debug, motherPt);
496-
497495
// additional checks for correlated backgrounds
498496
if (checkDecayTypeMc) {
499497
// Partly reconstructed decays, i.e. the 3 prongs have a common b-hadron ancestor
@@ -526,6 +524,7 @@ struct HfDataCreatorCharmHadPiReduced {
526524
}
527525
rowHfD0PiMcCheckReduced(pdgCodeBeautyMother, pdgCodeProng0, pdgCodeProng1, pdgCodeProng2);
528526
}
527+
rowHfD0PiMcRecReduced(indexHfCandCharm, selectedTracksPion[vecDaughtersB.back().globalIndex()], flag, flagWrongCollision, debug, motherPt);
529528
}
530529
}
531530

0 commit comments

Comments
 (0)