@@ -752,16 +752,25 @@ struct doublephimeson {
752752 // --- φ multiplicity with PID ---
753753 int phimult = 0 ;
754754 for (auto const & t : phitracks) {
755- if (t.phiMass () < minPhiMass1 || t.phiMass () > maxPhiMass1)
756- continue ;
757755 const double kpluspt = std::hypot (t.phid1Px (), t.phid1Py ());
758756 const double kminuspt = std::hypot (t.phid2Px (), t.phid2Py ());
757+ // PID QA before
758+ histos.fill (HIST (" hnsigmaTPCTOFKaonBefore" ), t.phid1TPC (), t.phid1TOF (), kpluspt);
759+ histos.fill (HIST (" hnsigmaTPCKaonPlusBefore" ), t.phid1TPC (), kpluspt);
760+ histos.fill (HIST (" hnsigmaTPCKaonMinusBefore" ), t.phid2TPC (), kminuspt);
761+ if (t.phiMass () < minPhiMass1 || t.phiMass () > maxPhiMass1)
762+ continue ;
759763 if (kpluspt > maxKaonPt || kminuspt > maxKaonPt)
760764 continue ;
761765 if (!selectionPID (t.phid1TPC (), t.phid1TOF (), t.phid1TOFHit (), strategyPID1, kpluspt))
762766 continue ;
763767 if (!selectionPID (t.phid2TPC (), t.phid2TOF (), t.phid2TOFHit (), strategyPID2, kminuspt))
764768 continue ;
769+ // PID QA after
770+ histos.fill (HIST (" hnsigmaTPCTOFKaon" ), t.phid1TPC (), t.phid1TOF (), kpluspt);
771+ histos.fill (HIST (" hnsigmaTPCKaonPlus" ), t.phid1TPC (), kpluspt);
772+ histos.fill (HIST (" hnsigmaTPCKaonMinus" ), t.phid2TPC (), kminuspt);
773+
765774 ++phimult;
766775 }
767776 if (phimult < 2 )
@@ -815,11 +824,6 @@ struct doublephimeson {
815824 const double kplus1pt = std::hypot (t1.phid1Px (), t1.phid1Py ());
816825 const double kminus1pt = std::hypot (t1.phid2Px (), t1.phid2Py ());
817826
818- // PID QA before
819- histos.fill (HIST (" hnsigmaTPCTOFKaonBefore" ), t1.phid1TPC (), t1.phid1TOF (), kplus1pt);
820- histos.fill (HIST (" hnsigmaTPCKaonPlusBefore" ), t1.phid1TPC (), kplus1pt);
821- histos.fill (HIST (" hnsigmaTPCKaonMinusBefore" ), t1.phid2TPC (), kminus1pt);
822-
823827 if (kplus1pt > maxKaonPt || kminus1pt > maxKaonPt)
824828 continue ;
825829 if (!selectionPID (t1.phid1TPC (), t1.phid1TOF (), t1.phid1TOFHit (), strategyPID1, kplus1pt))
@@ -837,14 +841,9 @@ struct doublephimeson {
837841 continue ;
838842 if (phi1.Pt () < minPhiPt || phi1.Pt () > maxPhiPt)
839843 continue ;
840- // PID QA after
841- histos.fill (HIST (" hnsigmaTPCTOFKaon" ), t1.phid1TPC (), t1.phid1TOF (), kplus1pt);
842- histos.fill (HIST (" hnsigmaTPCKaonPlus" ), t1.phid1TPC (), kplus1pt);
843- histos.fill (HIST (" hnsigmaTPCKaonMinus" ), t1.phid2TPC (), kminus1pt);
844- histos.fill (HIST (" hPhiMass" ), phi1.M (), phi1.Pt ());
845844
846845 const auto id1 = t1.index ();
847-
846+ histos. fill ( HIST ( " hPhiMass " ), phi1. M (), phi1. Pt ());
848847 for (auto const & t2 : phitracks) {
849848 const auto id2 = t2.index ();
850849 if (id2 <= id1)
0 commit comments