@@ -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;
0 commit comments