@@ -760,15 +760,8 @@ void MultiplicityPt::processMC(TrackTableMC const& tracks,
760760 }
761761 }
762762
763- // ========================================================================
764- // EXCLUSIVE PID - FIXED PRIMARY FRACTION LOGIC
765- // ========================================================================
766-
767763 int bestSpecies = getBestPIDHypothesis (track);
768764
769- // ========================================================================
770- // PION CHANNEL
771- // ========================================================================
772765 if (bestSpecies == kPion ) {
773766 ue.fill (HIST (" Pion/hPtMeasured" ), track.pt ());
774767 ue.fill (HIST (" Pion/hPtAllReco" ), track.pt ());
@@ -780,10 +773,6 @@ void MultiplicityPt::processMC(TrackTableMC const& tracks,
780773
781774 if (track.has_mcParticle ()) {
782775 const auto & particle = track.mcParticle ();
783-
784- // KEY FIX: Primary fraction = fraction of identified pions that are primary
785- // This includes correctly identified pions AND misidentified kaons/protons
786- // that happen to be primary particles
787776 if (particle.isPhysicalPrimary ()) {
788777 ue.fill (HIST (" Pion/hPtPrimReco" ), track.pt ());
789778 particleTracksPrimary[kPion ]++;
@@ -792,11 +781,7 @@ void MultiplicityPt::processMC(TrackTableMC const& tracks,
792781 particleTracksSecondary[kPion ]++;
793782 }
794783 }
795- }
796- // ========================================================================
797- // KAON CHANNEL
798- // ========================================================================
799- else if (bestSpecies == kKaon ) {
784+ } else if (bestSpecies == kKaon ) {
800785 ue.fill (HIST (" Kaon/hPtMeasured" ), track.pt ());
801786 ue.fill (HIST (" Kaon/hPtAllReco" ), track.pt ());
802787 particleTracksIdentified[kKaon ]++;
@@ -818,11 +803,7 @@ void MultiplicityPt::processMC(TrackTableMC const& tracks,
818803 particleTracksSecondary[kKaon ]++;
819804 }
820805 }
821- }
822- // ========================================================================
823- // PROTON CHANNEL
824- // ========================================================================
825- else if (bestSpecies == kProton ) {
806+ } else if (bestSpecies == kProton ) {
826807 ue.fill (HIST (" Proton/hPtMeasured" ), track.pt ());
827808 ue.fill (HIST (" Proton/hPtAllReco" ), track.pt ());
828809 particleTracksIdentified[kProton ]++;
0 commit comments