Skip to content

Commit 52b0366

Browse files
committed
Fixes to B0 to D* workflow
1 parent 93be4fb commit 52b0366

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

PWGHF/D2H/TableProducer/dataCreatorCharmHadPiReduced.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ struct HfDataCreatorCharmHadPiReduced {
12411241
trackParCov1.propagateTo(secondaryVertexCharm[0], bz);
12421242
df2.getTrack(0).getPxPyPzGlo(pVec0);
12431243
df2.getTrack(1).getPxPyPzGlo(pVec1);
1244-
pVecCharm = RecoDecay::pVec(pVec0, pVec1);
1244+
pVecCharm = RecoDecay::pVec(pVec0, pVec1, pVec2);
12451245
trackParCovCharmHad = df2.createParentTrackParCov();
12461246
trackParCovCharmHad.setAbsCharge(0); // to be sure
12471247
}
@@ -1279,14 +1279,18 @@ struct HfDataCreatorCharmHadPiReduced {
12791279
}
12801280

12811281
// reject pi D with same sign as D
1282-
if constexpr (decChannel == DecayChannel::B0ToDminusPi || decChannel == DecayChannel::BsToDsminusPi || decChannel == DecayChannel::LbToLcplusPi || decChannel == DecayChannel::B0ToDstarPi) { // D∓ → π∓ K± π∓ and Ds∓ → K∓ K± π∓ and Lc∓ → p∓ K± π∓ and D*+ → D0 π+
1282+
if constexpr (decChannel == DecayChannel::B0ToDminusPi || decChannel == DecayChannel::BsToDsminusPi || decChannel == DecayChannel::LbToLcplusPi) { // D∓ → π∓ K± π∓ and Ds∓ → K∓ K± π∓ and Lc∓ → p∓ K± π∓
12831283
if (trackPion.sign() * charmHadDauTracks[0].sign() > 0) {
12841284
continue;
12851285
}
12861286
} else if constexpr (decChannel == DecayChannel::BplusToD0barPi) { // D0(bar) → K± π∓
12871287
if (!((candC.isSelD0() >= hfflagConfigurations.selectionFlagD0 && trackPion.sign() < 0) || (candC.isSelD0bar() >= hfflagConfigurations.selectionFlagD0bar && trackPion.sign() > 0))) {
12881288
continue;
12891289
}
1290+
} else if constexpr (decChannel == DecayChannel::B0ToDstarPi) { // D*+ → D0 π+
1291+
if (trackPion.sign() * charmHadDauTracks.back().sign() > 0) {
1292+
continue;
1293+
}
12901294
}
12911295

12921296
// apply selections on pion tracks

PWGHF/D2H/Tasks/taskB0Reduced.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ struct HfTaskB0Reduced {
616616
candidate.decayLengthXY(),
617617
candidate.decayLengthNormalised(),
618618
candidate.decayLengthXYNormalised(),
619-
candidate.impactParameterProngSqSum(),
619+
candidate.impactParameterProduct(),
620620
candidate.maxNormalisedDeltaIP(),
621621
candidateMlScoreSig,
622622
candidate.isSelB0ToDPi(),
@@ -644,12 +644,12 @@ struct HfTaskB0Reduced {
644644
prong0MlScorePrompt,
645645
prong0MlScoreNonprompt,
646646
// pion features
647-
candidate.ptProng1(),
647+
candidate.ptProng2(),
648648
std::abs(RecoDecay::eta(prongBachPi.pVector())),
649649
prongBachPi.itsNCls(),
650650
prongBachPi.tpcNClsCrossedRows(),
651651
prongBachPi.tpcChi2NCl(),
652-
candidate.impactParameter1(),
652+
candidate.impactParameter2(),
653653
prongBachPi.tpcNSigmaPi(),
654654
prongBachPi.tofNSigmaPi(),
655655
prongBachPi.tpcTofNSigmaPi(),

PWGHF/D2H/Tasks/taskBsReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ DECLARE_SOA_COLUMN(E, e, float); //! Energy of candidate (GeV)
104104
} // namespace hf_cand_bs_lite
105105

106106
DECLARE_SOA_TABLE(HfRedCandBsLites, "AOD", "HFREDCANDBSLITE", //! Table with some Bs properties
107-
// B meson features
107+
// B meson features
108108
hf_cand_bs_lite::M,
109109
hf_cand_bs_lite::Pt,
110110
hf_cand_bs_lite::Eta,

PWGHF/DataModel/CandidateReconstructionTables.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2257,7 +2257,8 @@ DECLARE_SOA_TABLE(HfCandB0Base, "AOD", "HFCANDB0BASE",
22572257
DECLARE_SOA_TABLE(HfCandB0DStar, "AOD", "HFCANDB0DSTAR",
22582258
// general columns
22592259
HFCAND_COLUMNS,
2260-
/* prong 2 */ hf_cand::ImpactParameterNormalised2<hf_cand::ImpactParameter2, hf_cand::ErrorImpactParameter2>,
2260+
/* prong 2 */
2261+
hf_cand::ImpactParameterNormalised2<hf_cand::ImpactParameter2, hf_cand::ErrorImpactParameter2>,
22612262
hf_cand::PtProng2<hf_cand::PxProng2, hf_cand::PyProng2>,
22622263
hf_cand::Pt2Prong2<hf_cand::PxProng2, hf_cand::PyProng2>,
22632264
hf_cand::PVectorProng2<hf_cand::PxProng2, hf_cand::PyProng2, hf_cand::PzProng2>,
@@ -2270,6 +2271,7 @@ DECLARE_SOA_TABLE(HfCandB0DStar, "AOD", "HFCANDB0DSTAR",
22702271
/* dynamic columns */
22712272
hf_cand_3prong::M<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1, hf_cand::PxProng2, hf_cand::PyProng2, hf_cand::PzProng2>,
22722273
hf_cand_3prong::M2<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1, hf_cand::PxProng2, hf_cand::PyProng2, hf_cand::PzProng2>,
2274+
hf_cand_2prong::ImpactParameterProduct<hf_cand::ImpactParameter0, hf_cand::ImpactParameter2>,
22732275
hf_cand_3prong::ImpactParameterProngSqSum<hf_cand::ImpactParameter0, hf_cand::ImpactParameter1, hf_cand::ImpactParameter2>,
22742276
/* dynamic columns that use candidate momentum components */
22752277
hf_cand::Pt<hf_cand_3prong::Px, hf_cand_3prong::Py>,

0 commit comments

Comments
 (0)