@@ -854,23 +854,23 @@ struct strangenesstofpid {
854854 histos.fill (HIST (" h2dProtonMeasuredVsExpected" ),
855855 (timeLambda + timePositivePr) / (pTra.tofSignal () - pTra.tofEvTime ()),
856856 positiveP, v0.positiveeta ());
857- if (calculationMethod.value ==2 ){
857+ 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 ){
858858 histos.fill (HIST (" hDeltaTimeMethodsVsP_posLaPr" ), positiveP, v0.positiveeta (), timePositivePr_Method0 - timePositivePr_Method1);
859859 }
860860 if (doQANSigma)
861861 histos.fill (HIST (" h2dNSigmaPositiveLambdaPr" ), v0.p (), nSigmaPositiveLambdaPr);
862862 }
863863 if (std::abs (v0.mAntiLambda () - 1.115683 ) < v0Group.qaMassWindow && fabs (pTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma && fabs (nTra.tpcNSigmaPr ()) < v0Group.qaTPCNSigma ) {
864864 histos.fill (HIST (" h2dDeltaTimePositiveLambdaPi" ), v0.p (), v0.eta (), deltaTimePositiveLambdaPi);
865- if (calculationMethod.value ==2 ){
865+ 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 ){
866866 histos.fill (HIST (" hDeltaTimeMethodsVsP_posLaPi" ), positiveP, v0.positiveeta (), timePositivePi_Method0 - timePositivePi_Method1);
867867 }
868868 if (doQANSigma)
869869 histos.fill (HIST (" h2dNSigmaPositiveLambdaPi" ), v0.p (), nSigmaPositiveLambdaPi);
870870 }
871871 if (std::abs (v0.mK0Short () - 0.497 ) < v0Group.qaMassWindow && fabs (pTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma && fabs (nTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma ) {
872872 histos.fill (HIST (" h2dDeltaTimePositiveK0ShortPi" ), v0.p (), v0.eta (), deltaTimePositiveK0ShortPi);
873- if (calculationMethod.value ==2 ){
873+ 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 ){
874874 histos.fill (HIST (" hDeltaTimeMethodsVsP_posK0Pi" ), positiveP, v0.positiveeta (), timePositivePi_Method0 - timePositivePi_Method1);
875875 }
876876 if (doQANSigma)
@@ -886,23 +886,23 @@ struct strangenesstofpid {
886886 histos.fill (HIST (" h2dPionMeasuredVsExpected" ),
887887 (timeLambda + timeNegativePi) / (nTra.tofSignal () - nTra.tofEvTime ()),
888888 negativeP, v0.negativeeta ());
889- if (calculationMethod.value ==2 ){
889+ 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 ){
890890 histos.fill (HIST (" hDeltaTimeMethodsVsP_negLaPi" ), negativeP, v0.negativeeta (), timeNegativePi_Method0 - timeNegativePi_Method1);
891891 }
892892 if (doQANSigma)
893893 histos.fill (HIST (" h2dNSigmaNegativeLambdaPi" ), v0.p (), nSigmaNegativeLambdaPi);
894894 }
895895 if (std::abs (v0.mAntiLambda () - 1.115683 ) < v0Group.qaMassWindow && fabs (pTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma && fabs (nTra.tpcNSigmaPr ()) < v0Group.qaTPCNSigma ) {
896896 histos.fill (HIST (" h2dDeltaTimeNegativeLambdaPr" ), v0.p (), v0.eta (), deltaTimeNegativeLambdaPr);
897- if (calculationMethod.value ==2 ){
897+ 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 ){
898898 histos.fill (HIST (" hDeltaTimeMethodsVsP_negLaPr" ), negativeP, v0.negativeeta (), timeNegativePr_Method0 - timeNegativePr_Method1);
899899 }
900900 if (doQANSigma)
901901 histos.fill (HIST (" h2dNSigmaNegativeLambdaPr" ), v0.p (), nSigmaNegativeLambdaPr);
902902 }
903903 if (std::abs (v0.mK0Short () - 0.497 ) < v0Group.qaMassWindow && fabs (pTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma && fabs (nTra.tpcNSigmaPi ()) < v0Group.qaTPCNSigma ) {
904904 histos.fill (HIST (" h2dDeltaTimeNegativeK0ShortPi" ), v0.p (), v0.eta (), deltaTimeNegativeK0ShortPi);
905- if (calculationMethod.value ==2 ){
905+ 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 ){
906906 histos.fill (HIST (" hDeltaTimeMethodsVsP_negK0Pi" ), negativeP, v0.negativeeta (), timeNegativePi_Method0 - timeNegativePi_Method1);
907907 }
908908 if (doQANSigma)
@@ -1137,9 +1137,15 @@ struct strangenesstofpid {
11371137 histos.fill (HIST (" h2dnegDeltaTimeAsXiPi" ), cascade.p (), cascade.eta (), negDeltaTimeAsXiPi);
11381138 histos.fill (HIST (" h2dbachDeltaTimeAsXiPi" ), cascade.p (), cascade.eta (), bachDeltaTimeAsXiPi);
11391139 if (calculationMethod.value ==2 ){
1140- histos.fill (HIST (" hDeltaTimeMethodsVsP_posXiPr" ), positiveP, cascade.positiveeta (), posFlightPr_Method0 - posFlightPr_Method1);
1141- histos.fill (HIST (" hDeltaTimeMethodsVsP_negXiPi" ), negativeP, cascade.negativeeta (), negFlightPi_Method0 - negFlightPi_Method1);
1142- histos.fill (HIST (" hDeltaTimeMethodsVsP_bachXiPi" ), bachelorP, cascade.bacheloreta (), bachFlightPi_Method0 - bachFlightPi_Method1);
1140+ 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);
1142+ }
1143+ 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);
1145+ }
1146+ 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);
1148+ }
11431149 }
11441150 if (doQANSigma) {
11451151 histos.fill (HIST (" h2dNSigmaXiLaPi" ), cascade.p (), nSigmaXiLaPi);
@@ -1152,9 +1158,15 @@ struct strangenesstofpid {
11521158 histos.fill (HIST (" h2dnegDeltaTimeAsOmPi" ), cascade.p (), cascade.eta (), negDeltaTimeAsOmPi);
11531159 histos.fill (HIST (" h2dbachDeltaTimeAsOmKa" ), cascade.p (), cascade.eta (), bachDeltaTimeAsOmKa);
11541160 if (calculationMethod.value ==2 ){
1155- histos.fill (HIST (" hDeltaTimeMethodsVsP_posXiPi" ), positiveP, cascade.positiveeta (), posFlightPi_Method0 - posFlightPi_Method1);
1156- histos.fill (HIST (" hDeltaTimeMethodsVsP_negXiPr" ), negativeP, cascade.negativeeta (), negFlightPr_Method0 - negFlightPr_Method1);
1157- histos.fill (HIST (" hDeltaTimeMethodsVsP_bachXiPi" ), bachelorP, cascade.bacheloreta (), bachFlightPi_Method0 - bachFlightPi_Method1);
1161+ 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);
1163+ }
1164+ 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);
1166+ }
1167+ 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);
1169+ }
11581170 }
11591171 if (doQANSigma) {
11601172 histos.fill (HIST (" h2dNSigmaOmLaPi" ), cascade.p (), nSigmaOmLaPi);
@@ -1168,9 +1180,15 @@ struct strangenesstofpid {
11681180 histos.fill (HIST (" h2dnegDeltaTimeAsXiPr" ), cascade.p (), cascade.eta (), negDeltaTimeAsXiPr);
11691181 histos.fill (HIST (" h2dbachDeltaTimeAsXiPi" ), cascade.p (), cascade.eta (), bachDeltaTimeAsXiPi);
11701182 if (calculationMethod.value ==2 ){
1171- histos.fill (HIST (" hDeltaTimeMethodsVsP_posOmPr" ), positiveP, cascade.positiveeta (), posFlightPr_Method0 - posFlightPr_Method1);
1172- histos.fill (HIST (" hDeltaTimeMethodsVsP_negOmPi" ), negativeP, cascade.negativeeta (), negFlightPi_Method0 - negFlightPi_Method1);
1173- histos.fill (HIST (" hDeltaTimeMethodsVsP_bachOmKa" ), bachelorP, cascade.bacheloreta (), bachFlightPi_Method0 - bachFlightPi_Method1);
1183+ 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);
1185+ }
1186+ 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);
1188+ }
1189+ 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);
1191+ }
11741192 }
11751193 if (doQANSigma) {
11761194 histos.fill (HIST (" h2dNSigmaXiLaPi" ), cascade.p (), nSigmaXiLaPi);
@@ -1183,9 +1201,15 @@ struct strangenesstofpid {
11831201 histos.fill (HIST (" h2dnegDeltaTimeAsOmPr" ), cascade.p (), cascade.eta (), negDeltaTimeAsOmPr);
11841202 histos.fill (HIST (" h2dbachDeltaTimeAsOmKa" ), cascade.p (), cascade.eta (), bachDeltaTimeAsOmKa);
11851203 if (calculationMethod.value ==2 ){
1186- histos.fill (HIST (" hDeltaTimeMethodsVsP_posOmPi" ), positiveP, cascade.positiveeta (), posFlightPi_Method0 - posFlightPi_Method1);
1187- histos.fill (HIST (" hDeltaTimeMethodsVsP_negOmPr" ), negativeP, cascade.negativeeta (), negFlightPr_Method0 - negFlightPr_Method1);
1188- histos.fill (HIST (" hDeltaTimeMethodsVsP_bachOmKa" ), bachelorP, cascade.bacheloreta (), bachFlightPi_Method0 - bachFlightPi_Method1);
1204+ 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_posXiPi" ), positiveP, cascade.positiveeta (), posFlightPi_Method0 - posFlightPi_Method1);
1206+ }
1207+ 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_negXiPr" ), negativeP, cascade.negativeeta (), negFlightPr_Method0 - negFlightPr_Method1);
1209+ }
1210+ 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);
1212+ }
11891213 }
11901214 if (doQANSigma) {
11911215 histos.fill (HIST (" h2dNSigmaOmLaPi" ), cascade.p (), nSigmaOmLaPi);
0 commit comments