@@ -258,16 +258,15 @@ struct HfCandidateCreatorXic0Omegac0Qa {
258258 HfEventSelection hfEvSel;
259259
260260 // PDG Id of daughter tracks & V0s & cascades & charm baryons - Used in KFParticle
261- int pdgIdOfV0DauPos, pdgIdOfV0DauNeg, pdgIdOfBach, pdgIdOfCharmBach;
262- int pdgIdOfAntiV0DauPos, pdgIdOfAntiV0DauNeg, pdgIdOfAntiBach, pdgIdOfAntiCharmBach;
263- int pdgIdOfV0, pdgIdOfCascade, pdgIdOfCharmBaryon;
261+ int pdgIdOfV0DauPos{}, pdgIdOfV0DauNeg{}, pdgIdOfBach{}, pdgIdOfCharmBach{};
262+ int pdgIdOfV0{}, pdgIdOfCascade{}, pdgIdOfCharmBaryon{};
264263
265264 // Track PID - Used in DCAFitter
266- int trackPidOfCascade;
265+ int trackPidOfCascade{} ;
267266
268267 // Mass of daughter tracks & V0s & cascades & charm baryons;
269- float massOfV0DauPos, massOfV0DauNeg, massOfBach, massOfCharmBach;
270- float massOfV0, massOfCascade, massOfCharmBaryon ;
268+ float massOfV0DauPos{} , massOfV0DauNeg{}, massOfCharmBach{} ;
269+ float massOfV0{} , massOfCascade{} ;
271270
272271 // Pointer of histograms for QA
273272 std::shared_ptr<TH1> hInvMassCharmBaryonToXiPi, hInvMassCharmBaryonToOmegaPi, hInvMassCharmBaryonToOmegaKa;
@@ -317,11 +316,6 @@ struct HfCandidateCreatorXic0Omegac0Qa {
317316 pdgIdOfBach = kPiMinus ;
318317 pdgIdOfCharmBach = kPiPlus ;
319318
320- pdgIdOfAntiV0DauPos = kPiPlus ;
321- pdgIdOfAntiV0DauNeg = kProton ;
322- pdgIdOfAntiBach = kPiPlus ;
323- pdgIdOfAntiCharmBach = kPiMinus ;
324-
325319 pdgIdOfV0 = kLambda0 ;
326320 pdgIdOfCascade = kXiMinus ;
327321 pdgIdOfCharmBaryon = kXiC0 ;
@@ -339,11 +333,6 @@ struct HfCandidateCreatorXic0Omegac0Qa {
339333 pdgIdOfBach = kKMinus ;
340334 pdgIdOfCharmBach = kPiPlus ;
341335
342- pdgIdOfAntiV0DauPos = kPiPlus ;
343- pdgIdOfAntiV0DauNeg = kProton ;
344- pdgIdOfAntiBach = kKPlus ;
345- pdgIdOfAntiCharmBach = kPiMinus ;
346-
347336 pdgIdOfV0 = kLambda0 ;
348337 pdgIdOfCascade = kOmegaMinus ;
349338 pdgIdOfCharmBaryon = kOmegaC0 ;
@@ -361,11 +350,6 @@ struct HfCandidateCreatorXic0Omegac0Qa {
361350 pdgIdOfBach = kKMinus ;
362351 pdgIdOfCharmBach = kKPlus ;
363352
364- pdgIdOfAntiV0DauPos = kPiPlus ;
365- pdgIdOfAntiV0DauNeg = kProton ;
366- pdgIdOfAntiBach = kKPlus ;
367- pdgIdOfAntiCharmBach = kKMinus ;
368-
369353 pdgIdOfV0 = kLambda0 ;
370354 pdgIdOfCascade = kOmegaMinus ;
371355 pdgIdOfCharmBaryon = kOmegaC0 ;
@@ -384,11 +368,6 @@ struct HfCandidateCreatorXic0Omegac0Qa {
384368 LOGF (info, " PDG ID of Bachelor: %d" , pdgIdOfBach);
385369 LOGF (info, " PDG ID of Charm Bachelor: %d" , pdgIdOfCharmBach);
386370 LOGF (info, " -------------------------------------------" );
387- LOGF (info, " PDG ID of anti V0 positive daughter: %d" , pdgIdOfAntiV0DauPos);
388- LOGF (info, " PDG ID of anti V0 negative daughter: %d" , pdgIdOfAntiV0DauNeg);
389- LOGF (info, " PDG ID of anti Bachelor: %d" , pdgIdOfAntiBach);
390- LOGF (info, " PDG ID of anti Charm Bachelor: %d" , pdgIdOfAntiCharmBach);
391- LOGF (info, " -------------------------------------------" );
392371 LOGF (info, " PDG ID of V0: %d" , pdgIdOfV0);
393372 LOGF (info, " PDG ID of Cascade: %d" , pdgIdOfCascade);
394373 LOGF (info, " PDG ID of Charm Baryon: %d" , pdgIdOfCharmBaryon);
@@ -512,12 +491,6 @@ struct HfCandidateCreatorXic0Omegac0Qa {
512491
513492 } // end of initialization
514493
515- // //////////////////////////////////////////////////////////
516- // //
517- // Candidate reconstruction with DCAFitter //
518- // //
519- // //////////////////////////////////////////////////////////
520-
521494 // template function for running charm baryon reconstruction with DCAFitter
522495 // / \brief centEstimator is for different centrality estimators
523496 // / \brief decayChannel is for different decay channels. 0 for XiczeroOmegaczeroToXiPi, 1 for OmegaczeroToOmegaPi, 2 for OmegaczeroToOmeagaK
@@ -962,10 +935,10 @@ struct HfCandidateCreatorXic0Omegac0Qa {
962935
963936 bool isAnti = (bachTrack.signed1Pt () > 0 ? true : false );
964937
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
938+ KFParticle kfPos (kfTrack0, (isAnti ? -pdgIdOfV0DauNeg : pdgIdOfV0DauPos));
939+ KFParticle kfNeg (kfTrack1, (isAnti ? -pdgIdOfV0DauPos : pdgIdOfV0DauNeg));
940+ KFParticle kfBach (kfTrackBach, (isAnti ? -pdgIdOfBach : pdgIdOfBach));
941+ KFParticle kfBachRej (kfTrackBach, (isAnti ? -pdgIdOfBach : pdgIdOfBach)); // Rej -> Used for Omegac0->OmegaPi only
969942
970943 // ~~~~~~~Construct V0 with KF~~~~~~~
971944 const KFParticle* v0Daughters[2 ] = {&kfPos, &kfNeg};
@@ -1049,7 +1022,7 @@ struct HfCandidateCreatorXic0Omegac0Qa {
10491022 // ~~~~~~~Construct Charm Baryon with KF~~~~~~~
10501023 auto trackCharmBachelor = tracks.rawIteratorAt (cand.prong0Id ());
10511024 const KFPTrack kfTrackCharmBach = createKFPTrackFromTrack (trackCharmBachelor);
1052- const KFParticle kfCharmBach (kfTrackCharmBach, (isAnti ? pdgIdOfAntiCharmBach : pdgIdOfCharmBach));
1025+ const KFParticle kfCharmBach (kfTrackCharmBach, (isAnti ? -pdgIdOfCharmBach : pdgIdOfCharmBach));
10531026 const KFParticle* charmBaryonDaughters[2 ] = {&kfCharmBach, &kfCasc};
10541027
10551028 KFParticle kfCharmBaryon;
0 commit comments