@@ -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 (), kplus1pt);
759+ histos.fill (HIST (" hnsigmaTPCKaonPlusBefore" ), t.phid1TPC (), kplus1pt);
760+ histos.fill (HIST (" hnsigmaTPCKaonMinusBefore" ), t.phid2TPC (), kminus1pt);
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" ), t1.phid1TPC (), t1.phid1TOF (), kplus1pt);
771+ histos.fill (HIST (" hnsigmaTPCKaonPlus" ), t1.phid1TPC (), kplus1pt);
772+ histos.fill (HIST (" hnsigmaTPCKaonMinus" ), t1.phid2TPC (), kminus1pt);
773+ histos.fill (HIST (" hPhiMass" ), phi1.M (), phi1.Pt ());
765774 ++phimult;
766775 }
767776 if (phimult < 2 )
@@ -815,10 +824,7 @@ 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);
827+
822828
823829 if (kplus1pt > maxKaonPt || kminus1pt > maxKaonPt)
824830 continue ;
@@ -837,11 +843,6 @@ struct doublephimeson {
837843 continue ;
838844 if (phi1.Pt () < minPhiPt || phi1.Pt () > maxPhiPt)
839845 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 ());
845846
846847 const auto id1 = t1.index ();
847848
0 commit comments