@@ -805,7 +805,7 @@ struct strangenesstofpid {
805805 float velocityPositivePr, velocityPositivePi, lengthPositive;
806806 velocityPositivePr = velocityPositivePi = lengthPositive = o2::aod::v0data::kNoTOFValue ;
807807
808- if (pTof.hasTOF && pTof.hasITS && pTof. tofEvTime > -1e+5 && pValidTOF) {
808+ if (pTof.hasTOF && pTof.tofEvTime > -1e+5 && pValidTOF) {
809809 // method 0: legacy standalone without use of primary particle TOF
810810 if (calculationMethod.value == 0 ) {
811811 velocityPositivePr = velocity (posTrack.getP (), o2::constants::physics::MassProton);
@@ -824,7 +824,9 @@ struct strangenesstofpid {
824824 const o2::math_utils::Point3D<float > trackVertex{trackCollision.posX (), trackCollision.posY (), trackCollision.posZ ()};
825825 o2::track::TrackLTIntegral ltIntegral;
826826 bool successPropag = o2::base::Propagator::Instance ()->propagateToDCA (trackVertex, posTrack, d_bz, 2 .f , o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr , <Integral);
827- histos.fill (HIST (" hPropagationBookkeeping" ), kPropagPosV0 , static_cast <float >(successPropag));
827+ if (doQA) {
828+ histos.fill (HIST (" hPropagationBookkeeping" ), kPropagPosV0 , static_cast <float >(successPropag));
829+ }
828830 if (successPropag) {
829831 lengthPositive = pTof.length - ltIntegral.getL ();
830832 v0tof.timePositivePr = o2::framework::pid::tof::MassToExpTime (pTof.tofExpMom , lengthPositive, o2::constants::physics::MassProton * o2::constants::physics::MassProton);
@@ -881,7 +883,7 @@ struct strangenesstofpid {
881883 }
882884 float velocityNegativePr, velocityNegativePi, lengthNegative;
883885 velocityNegativePr = velocityNegativePi = lengthNegative = o2::aod::v0data::kNoTOFValue ;
884- if (nTof.hasTOF && nTof.hasITS && nTof. tofEvTime > -1e+5 && nValidTOF) {
886+ if (nTof.hasTOF && nTof.tofEvTime > -1e+5 && nValidTOF) {
885887 // method 0: legacy standalone without use of primary particle TOF
886888 if (calculationMethod.value == 0 ) {
887889 velocityNegativePr = velocity (negTrack.getP (), o2::constants::physics::MassProton);
@@ -900,7 +902,9 @@ struct strangenesstofpid {
900902 const o2::math_utils::Point3D<float > trackVertex{trackCollision.posX (), trackCollision.posY (), trackCollision.posZ ()};
901903 o2::track::TrackLTIntegral ltIntegral;
902904 bool successPropag = o2::base::Propagator::Instance ()->propagateToDCA (trackVertex, negTrack, d_bz, 2 .f , o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr , <Integral);
903- histos.fill (HIST (" hPropagationBookkeeping" ), kPropagNegV0 , static_cast <float >(successPropag));
905+ if (doQA) {
906+ histos.fill (HIST (" hPropagationBookkeeping" ), kPropagNegV0 , static_cast <float >(successPropag));
907+ }
904908 if (successPropag) {
905909 lengthNegative = nTof.length - ltIntegral.getL ();
906910 v0tof.timeNegativePr = o2::framework::pid::tof::MassToExpTime (nTof.tofExpMom , lengthNegative, o2::constants::physics::MassProton * o2::constants::physics::MassProton);
@@ -1073,7 +1077,7 @@ struct strangenesstofpid {
10731077
10741078 // _____________________________________________________________________________________________
10751079 // Actual calculation
1076- if (pTof.hasTOF && pTof.hasITS && pTof. tofEvTime > -1e+5 && pValidTOF) {
1080+ if (pTof.hasTOF && pTof.tofEvTime > -1e+5 && pValidTOF) {
10771081 float velocityPositivePr, velocityPositivePi, lengthPositive;
10781082 velocityPositivePr = velocityPositivePi = lengthPositive = o2::aod::v0data::kNoTOFValue ;
10791083 if (calculationMethod.value == 0 ) {
@@ -1093,7 +1097,9 @@ struct strangenesstofpid {
10931097 const o2::math_utils::Point3D<float > trackVertex{trackCollision.posX (), trackCollision.posY (), trackCollision.posZ ()};
10941098 o2::track::TrackLTIntegral ltIntegral;
10951099 bool successPropag = o2::base::Propagator::Instance ()->propagateToDCA (trackVertex, posTrack, d_bz, 2 .f , o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr , <Integral);
1096- histos.fill (HIST (" hPropagationBookkeeping" ), kPropagPosCasc , static_cast <float >(successPropag));
1100+ if (doQA) {
1101+ histos.fill (HIST (" hPropagationBookkeeping" ), kPropagPosCasc , static_cast <float >(successPropag));
1102+ }
10971103 if (successPropag) {
10981104 lengthPositive = pTof.length - ltIntegral.getL ();
10991105 casctof.posFlightPr = o2::framework::pid::tof::MassToExpTime (pTof.tofExpMom , pTof.length - ltIntegral.getL (), o2::constants::physics::MassProton * o2::constants::physics::MassProton);
@@ -1162,7 +1168,7 @@ struct strangenesstofpid {
11621168 }
11631169 } // end positive
11641170
1165- if (nTof.hasTOF && nTof.hasITS && nTof. tofEvTime > -1e+5 && nValidTOF) {
1171+ if (nTof.hasTOF && nTof.tofEvTime > -1e+5 && nValidTOF) {
11661172 float velocityNegativePr, velocityNegativePi, lengthNegative;
11671173 velocityNegativePr = velocityNegativePi = lengthNegative = o2::aod::v0data::kNoTOFValue ;
11681174 // method 0: legacy standalone without use of primary particle TOF
@@ -1183,7 +1189,9 @@ struct strangenesstofpid {
11831189 const o2::math_utils::Point3D<float > trackVertex{trackCollision.posX (), trackCollision.posY (), trackCollision.posZ ()};
11841190 o2::track::TrackLTIntegral ltIntegral;
11851191 bool successPropag = o2::base::Propagator::Instance ()->propagateToDCA (trackVertex, negTrack, d_bz, 2 .f , o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr , <Integral);
1186- histos.fill (HIST (" hPropagationBookkeeping" ), kPropagNegCasc , static_cast <float >(successPropag));
1192+ if (doQA) {
1193+ histos.fill (HIST (" hPropagationBookkeeping" ), kPropagNegCasc , static_cast <float >(successPropag));
1194+ }
11871195 if (successPropag) {
11881196 lengthNegative = nTof.length - ltIntegral.getL ();
11891197 casctof.negFlightPr = o2::framework::pid::tof::MassToExpTime (nTof.tofExpMom , nTof.length - ltIntegral.getL (), o2::constants::physics::MassProton * o2::constants::physics::MassProton);
@@ -1252,7 +1260,7 @@ struct strangenesstofpid {
12521260 }
12531261 } // end negative
12541262
1255- if (bTof.hasTOF && bTof.hasITS && bTof. tofEvTime > -1e+5 && bValidTOF) {
1263+ if (bTof.hasTOF && bTof.tofEvTime > -1e+5 && bValidTOF) {
12561264 float velocityBachelorKa, velocityBachelorPi, lengthBachelor;
12571265 velocityBachelorKa = velocityBachelorPi = lengthBachelor = o2::aod::v0data::kNoTOFValue ;
12581266 // method 0: legacy standalone without use of primary particle TOF
@@ -1273,7 +1281,9 @@ struct strangenesstofpid {
12731281 const o2::math_utils::Point3D<float > trackVertex{trackCollision.posX (), trackCollision.posY (), trackCollision.posZ ()};
12741282 o2::track::TrackLTIntegral ltIntegral;
12751283 bool successPropag = o2::base::Propagator::Instance ()->propagateToDCA (trackVertex, bachTrack, d_bz, 2 .f , o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr , <Integral);
1276- histos.fill (HIST (" hPropagationBookkeeping" ), kPropagBachCasc , static_cast <float >(successPropag));
1284+ if (doQA) {
1285+ histos.fill (HIST (" hPropagationBookkeeping" ), kPropagBachCasc , static_cast <float >(successPropag));
1286+ }
12771287 if (successPropag) {
12781288 lengthBachelor = bTof.length - ltIntegral.getL ();
12791289 casctof.bachFlightPi = o2::framework::pid::tof::MassToExpTime (bTof.tofExpMom , bTof.length - ltIntegral.getL (), o2::constants::physics::MassPionCharged * o2::constants::physics::MassPionCharged);
0 commit comments