@@ -292,9 +292,9 @@ struct f1protoncorrelation {
292292 if (f1track.f1d1TOFHit () != 1 ) {
293293 return (std::abs (nsTPC) < cutNoTOF);
294294 }
295-
296- const float comb = std::sqrt (nsTPC * nsTPC + nsTOF * nsTOF);
297- return (comb < cutWithTOF);
295+ return ( std::abs (nsTPC) < cutNoTOF && std::abs (nsTOF) < cutWithTOF);
296+ // const float comb = std::sqrt(nsTPC * nsTPC + nsTOF * nsTOF);
297+ // return (comb < cutWithTOF);
298298 }
299299 inline bool passKaonPID (int pidMode,
300300 const aod::F1Tracks::iterator& f1track,
@@ -340,10 +340,10 @@ struct f1protoncorrelation {
340340 }
341341 return true ;
342342 }
343-
343+ return ( std::abs (nsTPC) < cutNoTOFBase && std::abs (nsTOF) < cutWithTOF);
344344 // --- TOF available: circular cut in (TPC,TOF) nσ plane
345- const float comb = std::sqrt (nsTPC * nsTPC + nsTOF * nsTOF);
346- return (comb < cutWithTOF);
345+ // const float comb = std::sqrt(nsTPC * nsTPC + nsTOF * nsTOF);
346+ // return (comb < cutWithTOF);
347347 }
348348 inline bool passProtonPID (int pidMode,
349349 const aod::ProtonTracks::iterator& ptrack,
@@ -379,8 +379,9 @@ struct f1protoncorrelation {
379379 // circular cut in (TPC,TOF)
380380 const float nsTPC = ptrack.protonNsigmaTPC ();
381381 const float nsTOF = ptrack.protonNsigmaTOF ();
382- const float comb = std::sqrt (nsTPC * nsTPC + nsTOF * nsTOF);
383- return (comb < cutCircle);
382+ return (std::abs (nsTPC) < cutTPC && std::abs (nsTOF) < cutCircle);
383+ // const float comb = std::sqrt(nsTPC * nsTPC + nsTOF * nsTOF);
384+ // return (comb < cutCircle);
384385 }
385386
386387 // Initialize the ananlysis task
@@ -610,7 +611,7 @@ struct f1protoncorrelation {
610611 histos.fill (HIST (" hNsigmaProtonTPC" ), protontrack.protonNsigmaTPC (), protontrack.protonNsigmaTOF (), Proton.Pt ());
611612 }
612613 histos.fill (HIST (" h2SameEventPtCorrelation" ), relative_momentum, F1.Pt (), Proton.Pt ());
613-
614+ auto mT = getmT (F1, Proton);
614615 if (f1track.f1SignalStat () > 0 ) {
615616 // check charge
616617 float pairCharge = f1track.f1SignalStat () * protontrack.protonCharge ();
@@ -625,7 +626,9 @@ struct f1protoncorrelation {
625626 histos.fill (HIST (" hPhaseSpaceProtonKaonSame" ), Proton.Eta () - Kaon.Eta (), PhiAtSpecificRadiiTPC (Proton, Kaon, protontrack.protonCharge (), kaonCharge, bz, bz), relative_momentum); // Phase Space Proton kaon
626627 if (pionCharge == protontrack.protonCharge ())
627628 histos.fill (HIST (" hPhaseSpaceProtonPionSame" ), Proton.Eta () - Pion.Eta (), PhiAtSpecificRadiiTPC (Proton, Pion, protontrack.protonCharge (), pionCharge, bz, bz), relative_momentum); // Phase Space Proton Pionsyst
628- histos.fill (HIST (" h2SameEventInvariantMassUnlike_mass" ), relative_momentum, F1.Pt (), F1.M (), pairCharge, collision.numContrib ()); // F1 sign = 1 unlike, F1 sign = -1 like
629+
630+ histos.fill (HIST (" h2SameEventInvariantMassUnlike_mass" ), relative_momentum, F1.Pt (), F1.M (), pairCharge, collision.numContrib ()); // F1 sign = 1 unlike, F1 sign = -1 like
631+ histos.fill (HIST (" h2SameEventInvariantMassUnlike_mass_SYS" ), 0 , relative_momentum, mT , F1.M (), collision.numContrib ());
629632 if (fillSparse) {
630633 histos.fill (HIST (" SEMassUnlike" ), F1.M (), F1.Pt (), Proton.Pt (), relative_momentum, combinedTPC, pairCharge);
631634 }
@@ -651,6 +654,7 @@ struct f1protoncorrelation {
651654 }
652655 }
653656 if (f1track.f1SignalStat () == -1 ) {
657+ histos.fill (HIST (" h2SameEventInvariantMassLike_mass_SYS" ), 0 , relative_momentum, mT , F1.M (), collision.numContrib ());
654658 histos.fill (HIST (" h2SameEventInvariantMassLike_mass" ), relative_momentum, F1.Pt (), F1.M (), protontrack.protonCharge (), collision.numContrib ());
655659 if (fillSparse) {
656660 histos.fill (HIST (" SEMassLike" ), F1.M (), F1.Pt (), Proton.Pt (), relative_momentum, combinedTPC, protontrack.protonCharge ());
@@ -896,6 +900,7 @@ struct f1protoncorrelation {
896900 continue ;
897901 }
898902 auto relative_momentum = getkstar (F1, Proton);
903+ auto mT = getmT (F1, Proton);
899904 if (t1.f1SignalStat () > 0 ) {
900905 float pairCharge = t1.f1SignalStat () * t2.protonCharge ();
901906 int f1Charge = t1.f1SignalStat ();
@@ -905,6 +910,7 @@ struct f1protoncorrelation {
905910 pionCharge = 1 ;
906911 kaonCharge = -1 ;
907912 }
913+ histos.fill (HIST (" h2MixEventInvariantMassUnlike_mass_SYS" ), 0 , relative_momentum, mT , F1.M (), collision1.numContrib ());
908914 histos.fill (HIST (" h2MixEventInvariantMassUnlike_mass" ), relative_momentum, F1.Pt (), F1.M (), pairCharge, collision1.numContrib ()); // F1 sign = 1 unlike, F1 sign = -1 like
909915 histos.fill (HIST (" hPhaseSpaceProtonKaonMix" ), Proton.Eta () - Kaon.Eta (), PhiAtSpecificRadiiTPC (Proton, Kaon, t2.protonCharge (), kaonCharge, bz, bz2), relative_momentum); // Phase Space Proton kaon
910916 histos.fill (HIST (" hPhaseSpaceProtonPionMix" ), Proton.Eta () - Pion.Eta (), PhiAtSpecificRadiiTPC (Proton, Pion, t2.protonCharge (), pionCharge, bz, bz2), relative_momentum); // Phase Space Proton Pion
@@ -936,6 +942,7 @@ struct f1protoncorrelation {
936942 }
937943 }
938944 if (t1.f1SignalStat () == -1 ) {
945+ histos.fill (HIST (" h2MixEventInvariantMassLike_mass_SYS" ), 0 , relative_momentum, mT , F1.M (), collision1.numContrib ());
939946 histos.fill (HIST (" h2MixEventInvariantMassLike_mass" ), relative_momentum, F1.Pt (), F1.M (), t2.protonCharge (), collision1.numContrib ());
940947 if (fillSparse) {
941948 histos.fill (HIST (" MEMassLike" ), F1.M (), F1.Pt (), Proton.Pt (), relative_momentum, combinedTPC, t2.protonCharge ());
0 commit comments