Skip to content

Commit 1e0b934

Browse files
Jinhyun ParkJinhyun Park
authored andcommitted
[xic0omegac0] Updated candidate creator & candidate selector
1 parent 185ff35 commit 1e0b934

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

PWGHF/TableProducer/candidateCreatorXic0Omegac0Qa.cxx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -512,12 +512,6 @@ struct HfCandidateCreatorXic0Omegac0Qa {
512512

513513
} // end of initialization
514514

515-
////////////////////////////////////////////////////////////
516-
// //
517-
// Candidate reconstruction with DCAFitter //
518-
// //
519-
////////////////////////////////////////////////////////////
520-
521515
// template function for running charm baryon reconstruction with DCAFitter
522516
/// \brief centEstimator is for different centrality estimators
523517
/// \brief decayChannel is for different decay channels. 0 for XiczeroOmegaczeroToXiPi, 1 for OmegaczeroToOmegaPi, 2 for OmegaczeroToOmeagaK
@@ -962,10 +956,10 @@ struct HfCandidateCreatorXic0Omegac0Qa {
962956

963957
bool isAnti = (bachTrack.signed1Pt() > 0 ? true : false);
964958

965-
KFParticle kfPos(kfTrack0, (isAnti ? pdgIdOfAntiV0DauPos : pdgIdOfV0DauPos));
966-
KFParticle kfNeg(kfTrack1, (isAnti ? pdgIdOfAntiV0DauNeg : pdgIdOfV0DauNeg));
967-
KFParticle kfBach(kfTrackBach, (isAnti ? pdgIdOfAntiBach : pdgIdOfBach));
968-
KFParticle kfBachRej(kfTrackBach, (isAnti ? pdgIdOfAntiBach : pdgIdOfBach)); // Rej -> Used for Omegac0->OmegaPi only
959+
KFParticle kfPos(kfTrack0, (isAnti ? -pdgIdOfV0DauNeg : pdgIdOfV0DauPos));
960+
KFParticle kfNeg(kfTrack1, (isAnti ? -pdgIdOfV0DauPos : pdgIdOfV0DauNeg));
961+
KFParticle kfBach(kfTrackBach, (isAnti ? -pdgIdOfBach : pdgIdOfBach));
962+
KFParticle kfBachRej(kfTrackBach, (isAnti ? -pdgIdOfBach : pdgIdOfBach)); // Rej -> Used for Omegac0->OmegaPi only
969963

970964
// ~~~~~~~Construct V0 with KF~~~~~~~
971965
const KFParticle* v0Daughters[2] = {&kfPos, &kfNeg};
@@ -1049,7 +1043,7 @@ struct HfCandidateCreatorXic0Omegac0Qa {
10491043
//~~~~~~~Construct Charm Baryon with KF~~~~~~~
10501044
auto trackCharmBachelor = tracks.rawIteratorAt(cand.prong0Id());
10511045
const KFPTrack kfTrackCharmBach = createKFPTrackFromTrack(trackCharmBachelor);
1052-
const KFParticle kfCharmBach(kfTrackCharmBach, (isAnti ? pdgIdOfAntiCharmBach : pdgIdOfCharmBach));
1046+
const KFParticle kfCharmBach(kfTrackCharmBach, (isAnti ? -pdgIdOfCharmBach : pdgIdOfCharmBach));
10531047
const KFParticle* charmBaryonDaughters[2] = {&kfCharmBach, &kfCasc};
10541048

10551049
KFParticle kfCharmBaryon;

PWGHF/TableProducer/candidateSelectorToXiPiQa.cxx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,6 @@ struct HfCandidateSelectorToXiPiQa {
710710
inputFeaturesXic0 = hfMlResponseKf.getInputFeatures(candidate, trackPiFromLam, trackPiFromCasc, trackPiFromCharm);
711711
isSelectedMlXic0 = hfMlResponseKf.isSelectedMl(inputFeaturesXic0, ptCandXic0, outputMlXic0ToXiPi);
712712
}
713-
if (!isSelectedMlXic0) {
714-
continue;
715-
}
716713
hfMlToXiPi(outputMlXic0ToXiPi);
717714
}
718715

0 commit comments

Comments
 (0)