@@ -654,15 +654,17 @@ struct strangenesstofpid {
654654 nSigmaPositiveK0ShortPi, nSigmaNegativeK0ShortPi);
655655 }
656656
657+ float positiveP = std::hypot (v0.pxpos (), v0.pypos (), v0.pzpos ());
658+ float negativeP = std::hypot (v0.pxneg (), v0.pyneg (), v0.pzneg ());
659+
657660 if (doQA) {
658661 if (pTra.hasTOF ()) {
659662 if (v0.v0cosPA () > v0Group.qaCosPA && v0.dcaV0daughters () < v0Group.qaDCADau ) {
660663 if (std::abs (v0.mLambda () - 1.115683 ) < v0Group.qaMassWindow && fabs (pTra.tpcNSigmaPr ()) < v0Group.qaTPCNSigma && fabs (nTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma ) {
661664 histos.fill (HIST (" h2dDeltaTimePositiveLambdaPr" ), v0.p (), v0.eta (), deltaTimePositiveLambdaPr);
662665 histos.fill (HIST (" h2dProtonMeasuredVsExpected" ),
663666 (timeLambda + timePositivePr)/(pTra.tofSignal () - pTra.tofEvTime ()),
664- v0.p ());
665-
667+ positiveP);
666668 if (doQANSigma)
667669 histos.fill (HIST (" h2dNSigmaPositiveLambdaPr" ), v0.p (), nSigmaPositiveLambdaPr);
668670 }
@@ -685,7 +687,7 @@ struct strangenesstofpid {
685687 histos.fill (HIST (" h2dDeltaTimeNegativeLambdaPi" ), v0.p (), v0.eta (), deltaTimeNegativeLambdaPi);
686688 histos.fill (HIST (" h2dPionMeasuredVsExpected" ),
687689 (timeLambda + timeNegativePi)/(nTra.tofSignal () - nTra.tofEvTime ()),
688- v0. p () );
690+ negativeP );
689691 if (doQANSigma)
690692 histos.fill (HIST (" h2dNSigmaNegativeLambdaPi" ), v0.p (), nSigmaNegativeLambdaPi);
691693 }
0 commit comments