@@ -447,32 +447,29 @@ struct HfCorrelatorD0Hadrons {
447447
448448 // ========== soft pion removal ===================================================
449449 double invMassDstar1 = 0 ., invMassDstar2 = 0 .;
450- bool isSoftPiD0 = false , isSoftPiD0bar = false ;
451450 auto pSum2 = RecoDecay::p2 (candidate.pVector (), track.pVector ());
452451 auto ePion = track.energy (massPi);
453452 invMassDstar1 = std::sqrt ((ePiK + ePion) * (ePiK + ePion) - pSum2);
454453 invMassDstar2 = std::sqrt ((eKPi + ePion) * (eKPi + ePion) - pSum2);
455454
456455 if (candidate.isSelD0 () >= selectionFlagD0) {
457456 if ((std::abs (invMassDstar1 - hfHelper.invMassD0ToPiK (candidate)) - softPiMass) < ptSoftPionMax) {
458- isSoftPiD0 = true ;
459457 continue ;
460458 }
461459 }
462460
463461 if (candidate.isSelD0bar () >= selectionFlagD0bar) {
464462 if ((std::abs (invMassDstar2 - hfHelper.invMassD0barToKPi (candidate)) - softPiMass) < ptSoftPionMax) {
465- isSoftPiD0bar = true ;
466463 continue ;
467464 }
468465 }
469466 registry.fill (HIST (" hTrackCounter" ), 2 ); // fill no. of tracks after soft pion removal
470467
471468 int signalStatus = 0 ;
472- if (( candidate.isSelD0 () >= selectionFlagD0) && !isSoftPiD0 ) {
469+ if (candidate.isSelD0 () >= selectionFlagD0) {
473470 signalStatus += aod::hf_correlation_d0_hadron::ParticleTypeData::D0Only;
474471 }
475- if (( candidate.isSelD0bar () >= selectionFlagD0bar) && !isSoftPiD0bar ) {
472+ if (candidate.isSelD0bar () >= selectionFlagD0bar) {
476473 signalStatus += aod::hf_correlation_d0_hadron::ParticleTypeData::D0barOnly;
477474 }
478475
@@ -646,14 +643,12 @@ struct HfCorrelatorD0Hadrons {
646643
647644 if (candidate.isSelD0 () >= selectionFlagD0) {
648645 if ((std::abs (invMassDstar1 - hfHelper.invMassD0ToPiK (candidate)) - softPiMass) < ptSoftPionMax) {
649- isSoftPiD0 = true ;
650646 continue ;
651647 }
652648 }
653649
654650 if (candidate.isSelD0bar () >= selectionFlagD0bar) {
655651 if ((std::abs (invMassDstar2 - hfHelper.invMassD0barToKPi (candidate)) - softPiMass) < ptSoftPionMax) {
656- isSoftPiD0bar = true ;
657652 continue ;
658653 }
659654 }
0 commit comments