@@ -847,6 +847,10 @@ struct strangenesstofpid {
847847 }
848848
849849 if (doQA) {
850+ // length factor due to eta (to offset e-loss)
851+ float positiveCosine = 1 .0f /sqrt (1 .0f + posTrack.getTgl () * posTrack.getTgl ());
852+ float negativeCosine = 1 .0f /sqrt (1 .0f + posTrack.getTgl () * posTrack.getTgl ());
853+
850854 if (pTra.hasTOF ()) {
851855 if (v0.v0cosPA () > v0Group.qaCosPA && v0.dcaV0daughters () < v0Group.qaDCADau ) {
852856 if (std::abs (v0.mLambda () - 1.115683 ) < v0Group.qaMassWindow && fabs (pTra.tpcNSigmaPr ()) < v0Group.qaTPCNSigma && fabs (nTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma ) {
@@ -855,23 +859,23 @@ struct strangenesstofpid {
855859 (timeLambda + timePositivePr) / (pTra.tofSignal () - pTra.tofEvTime ()),
856860 positiveP, v0.positiveeta ());
857861 if (calculationMethod.value ==2 && std::abs (timePositivePr_Method0-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon && std::abs (timePositivePr_Method1-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon ){
858- histos.fill (HIST (" hDeltaTimeMethodsVsP_posLaPr" ), positiveP, v0.positiveeta (), timePositivePr_Method0 - timePositivePr_Method1);
862+ histos.fill (HIST (" hDeltaTimeMethodsVsP_posLaPr" ), positiveP, v0.positiveeta (), ( timePositivePr_Method0 - timePositivePr_Method1)*positiveCosine );
859863 }
860864 if (doQANSigma)
861865 histos.fill (HIST (" h2dNSigmaPositiveLambdaPr" ), v0.p (), nSigmaPositiveLambdaPr);
862866 }
863867 if (std::abs (v0.mAntiLambda () - 1.115683 ) < v0Group.qaMassWindow && fabs (pTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma && fabs (nTra.tpcNSigmaPr ()) < v0Group.qaTPCNSigma ) {
864868 histos.fill (HIST (" h2dDeltaTimePositiveLambdaPi" ), v0.p (), v0.eta (), deltaTimePositiveLambdaPi);
865869 if (calculationMethod.value ==2 && std::abs (timePositivePi_Method0-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon && std::abs (timePositivePi_Method1-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon ){
866- histos.fill (HIST (" hDeltaTimeMethodsVsP_posLaPi" ), positiveP, v0.positiveeta (), timePositivePi_Method0 - timePositivePi_Method1);
870+ histos.fill (HIST (" hDeltaTimeMethodsVsP_posLaPi" ), positiveP, v0.positiveeta (), ( timePositivePi_Method0 - timePositivePi_Method1)*positiveCosine );
867871 }
868872 if (doQANSigma)
869873 histos.fill (HIST (" h2dNSigmaPositiveLambdaPi" ), v0.p (), nSigmaPositiveLambdaPi);
870874 }
871875 if (std::abs (v0.mK0Short () - 0.497 ) < v0Group.qaMassWindow && fabs (pTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma && fabs (nTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma ) {
872876 histos.fill (HIST (" h2dDeltaTimePositiveK0ShortPi" ), v0.p (), v0.eta (), deltaTimePositiveK0ShortPi);
873877 if (calculationMethod.value ==2 && std::abs (timePositivePi_Method0-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon && std::abs (timePositivePi_Method1-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon ){
874- histos.fill (HIST (" hDeltaTimeMethodsVsP_posK0Pi" ), positiveP, v0.positiveeta (), timePositivePi_Method0 - timePositivePi_Method1);
878+ histos.fill (HIST (" hDeltaTimeMethodsVsP_posK0Pi" ), positiveP, v0.positiveeta (), ( timePositivePi_Method0 - timePositivePi_Method1)*positiveCosine );
875879 }
876880 if (doQANSigma)
877881 histos.fill (HIST (" h2dNSigmaPositiveK0ShortPi" ), v0.p (), nSigmaPositiveK0ShortPi);
@@ -887,23 +891,23 @@ struct strangenesstofpid {
887891 (timeLambda + timeNegativePi) / (nTra.tofSignal () - nTra.tofEvTime ()),
888892 negativeP, v0.negativeeta ());
889893 if (calculationMethod.value ==2 && std::abs (timePositivePr_Method0-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon && std::abs (timePositivePr_Method1-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon ){
890- histos.fill (HIST (" hDeltaTimeMethodsVsP_negLaPi" ), negativeP, v0.negativeeta (), timeNegativePi_Method0 - timeNegativePi_Method1);
894+ histos.fill (HIST (" hDeltaTimeMethodsVsP_negLaPi" ), negativeP, v0.negativeeta (), ( timeNegativePi_Method0 - timeNegativePi_Method1)*negativeCosine );
891895 }
892896 if (doQANSigma)
893897 histos.fill (HIST (" h2dNSigmaNegativeLambdaPi" ), v0.p (), nSigmaNegativeLambdaPi);
894898 }
895899 if (std::abs (v0.mAntiLambda () - 1.115683 ) < v0Group.qaMassWindow && fabs (pTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma && fabs (nTra.tpcNSigmaPr ()) < v0Group.qaTPCNSigma ) {
896900 histos.fill (HIST (" h2dDeltaTimeNegativeLambdaPr" ), v0.p (), v0.eta (), deltaTimeNegativeLambdaPr);
897901 if (calculationMethod.value ==2 && std::abs (timePositivePi_Method0-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon && std::abs (timePositivePi_Method1-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon ){
898- histos.fill (HIST (" hDeltaTimeMethodsVsP_negLaPr" ), negativeP, v0.negativeeta (), timeNegativePr_Method0 - timeNegativePr_Method1);
902+ histos.fill (HIST (" hDeltaTimeMethodsVsP_negLaPr" ), negativeP, v0.negativeeta (), ( timeNegativePr_Method0 - timeNegativePr_Method1)*negativeCosine );
899903 }
900904 if (doQANSigma)
901905 histos.fill (HIST (" h2dNSigmaNegativeLambdaPr" ), v0.p (), nSigmaNegativeLambdaPr);
902906 }
903907 if (std::abs (v0.mK0Short () - 0.497 ) < v0Group.qaMassWindow && fabs (pTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma && fabs (nTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma ) {
904908 histos.fill (HIST (" h2dDeltaTimeNegativeK0ShortPi" ), v0.p (), v0.eta (), deltaTimeNegativeK0ShortPi);
905909 if (calculationMethod.value ==2 && std::abs (timePositivePi_Method0-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon && std::abs (timePositivePi_Method1-o2::aod::v0data::kNoTOFValue )>o2::aod::v0data::kEpsilon ){
906- histos.fill (HIST (" hDeltaTimeMethodsVsP_negK0Pi" ), negativeP, v0.negativeeta (), timeNegativePi_Method0 - timeNegativePi_Method1);
910+ histos.fill (HIST (" hDeltaTimeMethodsVsP_negK0Pi" ), negativeP, v0.negativeeta (), ( timeNegativePi_Method0 - timeNegativePi_Method1)*negativeCosine );
907911 }
908912 if (doQANSigma)
909913 histos.fill (HIST (" h2dNSigmaNegativeK0ShortPi" ), v0.p (), nSigmaNegativeK0ShortPi);
@@ -1130,6 +1134,11 @@ struct strangenesstofpid {
11301134 }
11311135
11321136 if (doQA) {
1137+ // length factor due to eta (to offset e-loss)
1138+ float positiveCosine = 1 .0f /sqrt (1 .0f + posTrack.getTgl () * posTrack.getTgl ());
1139+ float negativeCosine = 1 .0f /sqrt (1 .0f + posTrack.getTgl () * posTrack.getTgl ());
1140+ float bachelorCosine = 1 .0f /sqrt (1 .0f + bachTrack.getTgl () * bachTrack.getTgl ());
1141+
11331142 if (cascade.dcaV0daughters () < cascadeGroup.qaV0DCADau && cascade.dcacascdaughters () < cascadeGroup.qaCascDCADau && cascade.v0cosPA (collision.getX (), collision.getY (), collision.getZ ()) > cascadeGroup.qaV0CosPA && cascade.casccosPA (collision.getX (), collision.getY (), collision.getZ ()) > cascadeGroup.qaCascCosPA ) {
11341143 if (cascade.sign () < 0 ) {
11351144 if (std::abs (cascade.mXi () - 1.32171 ) < cascadeGroup.qaMassWindow && fabs (pTra.tpcNSigmaPr ()) < cascadeGroup.qaTPCNSigma && fabs (nTra.tpcNSigmaPi ()) < cascadeGroup.qaTPCNSigma && fabs (bTra.tpcNSigmaPi ()) < cascadeGroup.qaTPCNSigma ) {
@@ -1138,13 +1147,13 @@ struct strangenesstofpid {
11381147 histos.fill (HIST (" h2dbachDeltaTimeAsXiPi" ), cascade.p (), cascade.eta (), bachDeltaTimeAsXiPi);
11391148 if (calculationMethod.value ==2 ){
11401149 if (std::abs (posFlightPr_Method0)>o2::aod::cascdata::kEpsilon && std::abs (posFlightPr_Method1)>o2::aod::cascdata::kEpsilon ){
1141- histos.fill (HIST (" hDeltaTimeMethodsVsP_posXiPr" ), positiveP, cascade.positiveeta (), posFlightPr_Method0 - posFlightPr_Method1);
1150+ histos.fill (HIST (" hDeltaTimeMethodsVsP_posXiPr" ), positiveP, cascade.positiveeta (), ( posFlightPr_Method0 - posFlightPr_Method1)*positiveCosine );
11421151 }
11431152 if (std::abs (negFlightPi_Method0)>o2::aod::cascdata::kEpsilon && std::abs (negFlightPi_Method1)>o2::aod::cascdata::kEpsilon ){
1144- histos.fill (HIST (" hDeltaTimeMethodsVsP_negXiPi" ), negativeP, cascade.negativeeta (), negFlightPi_Method0 - negFlightPi_Method1);
1153+ histos.fill (HIST (" hDeltaTimeMethodsVsP_negXiPi" ), negativeP, cascade.negativeeta (), ( negFlightPi_Method0 - negFlightPi_Method1)*negativeCosine );
11451154 }
11461155 if (std::abs (bachFlightPi_Method0)>o2::aod::cascdata::kEpsilon && std::abs (bachFlightPi_Method1)>o2::aod::cascdata::kEpsilon ){
1147- histos.fill (HIST (" hDeltaTimeMethodsVsP_bachXiPi" ), bachelorP, cascade.bacheloreta (), bachFlightPi_Method0 - bachFlightPi_Method1);
1156+ histos.fill (HIST (" hDeltaTimeMethodsVsP_bachXiPi" ), bachelorP, cascade.bacheloreta (), ( bachFlightPi_Method0 - bachFlightPi_Method1)*bachelorCosine );
11481157 }
11491158 }
11501159 if (doQANSigma) {
@@ -1159,13 +1168,13 @@ struct strangenesstofpid {
11591168 histos.fill (HIST (" h2dbachDeltaTimeAsOmKa" ), cascade.p (), cascade.eta (), bachDeltaTimeAsOmKa);
11601169 if (calculationMethod.value ==2 ){
11611170 if (std::abs (posFlightPi_Method0-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon && std::abs (posFlightPi_Method1-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon ){
1162- histos.fill (HIST (" hDeltaTimeMethodsVsP_posXiPi" ), positiveP, cascade.positiveeta (), posFlightPi_Method0 - posFlightPi_Method1);
1171+ histos.fill (HIST (" hDeltaTimeMethodsVsP_posXiPi" ), positiveP, cascade.positiveeta (), ( posFlightPi_Method0 - posFlightPi_Method1)*positiveCosine );
11631172 }
11641173 if (std::abs (negFlightPr_Method0-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon && std::abs (negFlightPr_Method1-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon ){
1165- histos.fill (HIST (" hDeltaTimeMethodsVsP_negXiPr" ), negativeP, cascade.negativeeta (), negFlightPr_Method0 - negFlightPr_Method1);
1174+ histos.fill (HIST (" hDeltaTimeMethodsVsP_negXiPr" ), negativeP, cascade.negativeeta (), ( negFlightPr_Method0 - negFlightPr_Method1)*negativeCosine );
11661175 }
11671176 if (std::abs (bachFlightPi_Method0-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon && std::abs (bachFlightPi_Method1-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon ){
1168- histos.fill (HIST (" hDeltaTimeMethodsVsP_bachXiPi" ), bachelorP, cascade.bacheloreta (), bachFlightPi_Method0 - bachFlightPi_Method1);
1177+ histos.fill (HIST (" hDeltaTimeMethodsVsP_bachXiPi" ), bachelorP, cascade.bacheloreta (), ( bachFlightPi_Method0 - bachFlightPi_Method1)*bachelorCosine );
11691178 }
11701179 }
11711180 if (doQANSigma) {
@@ -1181,13 +1190,13 @@ struct strangenesstofpid {
11811190 histos.fill (HIST (" h2dbachDeltaTimeAsXiPi" ), cascade.p (), cascade.eta (), bachDeltaTimeAsXiPi);
11821191 if (calculationMethod.value ==2 ){
11831192 if (std::abs (posFlightPr_Method0-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon && std::abs (posFlightPr_Method1-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon ){
1184- histos.fill (HIST (" hDeltaTimeMethodsVsP_posOmPr" ), positiveP, cascade.positiveeta (), posFlightPr_Method0 - posFlightPr_Method1);
1193+ histos.fill (HIST (" hDeltaTimeMethodsVsP_posOmPr" ), positiveP, cascade.positiveeta (), ( posFlightPr_Method0 - posFlightPr_Method1)*positiveCosine );
11851194 }
11861195 if (std::abs (negFlightPi_Method0-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon && std::abs (negFlightPi_Method1-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon ){
1187- histos.fill (HIST (" hDeltaTimeMethodsVsP_negOmPi" ), negativeP, cascade.negativeeta (), negFlightPi_Method0 - negFlightPi_Method1);
1196+ histos.fill (HIST (" hDeltaTimeMethodsVsP_negOmPi" ), negativeP, cascade.negativeeta (), ( negFlightPi_Method0 - negFlightPi_Method1)*negativeCosine );
11881197 }
11891198 if (std::abs (bachFlightKa_Method0-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon && std::abs (bachFlightKa_Method1-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon ){
1190- histos.fill (HIST (" hDeltaTimeMethodsVsP_bachOmKa" ), bachelorP, cascade.bacheloreta (), bachFlightKa_Method0 - bachFlightKa_Method1);
1199+ histos.fill (HIST (" hDeltaTimeMethodsVsP_bachOmKa" ), bachelorP, cascade.bacheloreta (), ( bachFlightKa_Method0 - bachFlightKa_Method1)*bachelorCosine );
11911200 }
11921201 }
11931202 if (doQANSigma) {
@@ -1202,13 +1211,13 @@ struct strangenesstofpid {
12021211 histos.fill (HIST (" h2dbachDeltaTimeAsOmKa" ), cascade.p (), cascade.eta (), bachDeltaTimeAsOmKa);
12031212 if (calculationMethod.value ==2 ){
12041213 if (std::abs (posFlightPi_Method0-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon && std::abs (posFlightPi_Method1-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon ){
1205- histos.fill (HIST (" hDeltaTimeMethodsVsP_posOmPi" ), positiveP, cascade.positiveeta (), posFlightPi_Method0 - posFlightPi_Method1);
1214+ histos.fill (HIST (" hDeltaTimeMethodsVsP_posOmPi" ), positiveP, cascade.positiveeta (), ( posFlightPi_Method0 - posFlightPi_Method1)*positiveCosine );
12061215 }
12071216 if (std::abs (negFlightPr_Method0-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon && std::abs (negFlightPr_Method1-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon ){
1208- histos.fill (HIST (" hDeltaTimeMethodsVsP_negOmPr" ), negativeP, cascade.negativeeta (), negFlightPr_Method0 - negFlightPr_Method1);
1217+ histos.fill (HIST (" hDeltaTimeMethodsVsP_negOmPr" ), negativeP, cascade.negativeeta (), ( negFlightPr_Method0 - negFlightPr_Method1)*negativeCosine );
12091218 }
12101219 if (std::abs (bachFlightKa_Method0-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon && std::abs (bachFlightKa_Method1-o2::aod::cascdata::kNoTOFValue )>o2::aod::cascdata::kEpsilon ){
1211- histos.fill (HIST (" hDeltaTimeMethodsVsP_bachOmKa" ), bachelorP, cascade.bacheloreta (), bachFlightKa_Method0 - bachFlightKa_Method1);
1220+ histos.fill (HIST (" hDeltaTimeMethodsVsP_bachOmKa" ), bachelorP, cascade.bacheloreta (), ( bachFlightKa_Method0 - bachFlightKa_Method1)*bachelorCosine );
12121221 }
12131222 }
12141223 if (doQANSigma) {
0 commit comments