@@ -804,7 +804,7 @@ struct strangenesstofpid {
804804 float velocityPositivePr, velocityPositivePi, lengthPositive;
805805 velocityPositivePr = velocityPositivePi = lengthPositive = o2::aod::v0data::kNoTOFValue ;
806806
807- if (pTof.hasTOF && pTof.hasITS && pTof. tofEvTime > -1e+5 && pValidTOF) {
807+ if (pTof.hasTOF && pTof.tofEvTime > -1e+5 && pValidTOF) {
808808 // method 0: legacy standalone without use of primary particle TOF
809809 if (calculationMethod.value == 0 ) {
810810 velocityPositivePr = velocity (posTrack.getP (), o2::constants::physics::MassProton);
@@ -823,7 +823,9 @@ struct strangenesstofpid {
823823 const o2::math_utils::Point3D<float > trackVertex{trackCollision.posX (), trackCollision.posY (), trackCollision.posZ ()};
824824 o2::track::TrackLTIntegral ltIntegral;
825825 bool successPropag = o2::base::Propagator::Instance ()->propagateToDCA (trackVertex, posTrack, d_bz, 2 .f , o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr , <Integral);
826- histos.fill (HIST (" hPropagationBookkeeping" ), kPropagPosV0 , static_cast <float >(successPropag));
826+ if (doQA){
827+ histos.fill (HIST (" hPropagationBookkeeping" ), kPropagPosV0 , static_cast <float >(successPropag));
828+ }
827829 if (successPropag) {
828830 lengthPositive = pTof.length - ltIntegral.getL ();
829831 v0tof.timePositivePr = o2::framework::pid::tof::MassToExpTime (pTof.tofExpMom , lengthPositive, o2::constants::physics::MassProton * o2::constants::physics::MassProton);
@@ -880,7 +882,7 @@ struct strangenesstofpid {
880882 }
881883 float velocityNegativePr, velocityNegativePi, lengthNegative;
882884 velocityNegativePr = velocityNegativePi = lengthNegative = o2::aod::v0data::kNoTOFValue ;
883- if (nTof.hasTOF && nTof.hasITS && nTof. tofEvTime > -1e+5 && nValidTOF) {
885+ if (nTof.hasTOF && nTof.tofEvTime > -1e+5 && nValidTOF) {
884886 // method 0: legacy standalone without use of primary particle TOF
885887 if (calculationMethod.value == 0 ) {
886888 velocityNegativePr = velocity (negTrack.getP (), o2::constants::physics::MassProton);
@@ -899,7 +901,9 @@ struct strangenesstofpid {
899901 const o2::math_utils::Point3D<float > trackVertex{trackCollision.posX (), trackCollision.posY (), trackCollision.posZ ()};
900902 o2::track::TrackLTIntegral ltIntegral;
901903 bool successPropag = o2::base::Propagator::Instance ()->propagateToDCA (trackVertex, negTrack, d_bz, 2 .f , o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr , <Integral);
902- histos.fill (HIST (" hPropagationBookkeeping" ), kPropagNegV0 , static_cast <float >(successPropag));
904+ if (doQA){
905+ histos.fill (HIST (" hPropagationBookkeeping" ), kPropagNegV0 , static_cast <float >(successPropag));
906+ }
903907 if (successPropag) {
904908 lengthNegative = nTof.length - ltIntegral.getL ();
905909 v0tof.timeNegativePr = o2::framework::pid::tof::MassToExpTime (nTof.tofExpMom , lengthNegative, o2::constants::physics::MassProton * o2::constants::physics::MassProton);
@@ -1072,7 +1076,7 @@ struct strangenesstofpid {
10721076
10731077 // _____________________________________________________________________________________________
10741078 // Actual calculation
1075- if (pTof.hasTOF && pTof.hasITS && pTof. tofEvTime > -1e+5 && pValidTOF) {
1079+ if (pTof.hasTOF && pTof.tofEvTime > -1e+5 && pValidTOF) {
10761080 float velocityPositivePr, velocityPositivePi, lengthPositive;
10771081 velocityPositivePr = velocityPositivePi = lengthPositive = o2::aod::v0data::kNoTOFValue ;
10781082 if (calculationMethod.value == 0 ) {
@@ -1092,7 +1096,9 @@ struct strangenesstofpid {
10921096 const o2::math_utils::Point3D<float > trackVertex{trackCollision.posX (), trackCollision.posY (), trackCollision.posZ ()};
10931097 o2::track::TrackLTIntegral ltIntegral;
10941098 bool successPropag = o2::base::Propagator::Instance ()->propagateToDCA (trackVertex, posTrack, d_bz, 2 .f , o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr , <Integral);
1095- histos.fill (HIST (" hPropagationBookkeeping" ), kPropagPosCasc , static_cast <float >(successPropag));
1099+ if (doQA){
1100+ histos.fill (HIST (" hPropagationBookkeeping" ), kPropagPosCasc , static_cast <float >(successPropag));
1101+ }
10961102 if (successPropag) {
10971103 lengthPositive = pTof.length - ltIntegral.getL ();
10981104 casctof.posFlightPr = o2::framework::pid::tof::MassToExpTime (pTof.tofExpMom , pTof.length - ltIntegral.getL (), o2::constants::physics::MassProton * o2::constants::physics::MassProton);
@@ -1161,7 +1167,7 @@ struct strangenesstofpid {
11611167 }
11621168 } // end positive
11631169
1164- if (nTof.hasTOF && nTof.hasITS && nTof. tofEvTime > -1e+5 && nValidTOF) {
1170+ if (nTof.hasTOF && nTof.tofEvTime > -1e+5 && nValidTOF) {
11651171 float velocityNegativePr, velocityNegativePi, lengthNegative;
11661172 velocityNegativePr = velocityNegativePi = lengthNegative = o2::aod::v0data::kNoTOFValue ;
11671173 // method 0: legacy standalone without use of primary particle TOF
@@ -1182,7 +1188,9 @@ struct strangenesstofpid {
11821188 const o2::math_utils::Point3D<float > trackVertex{trackCollision.posX (), trackCollision.posY (), trackCollision.posZ ()};
11831189 o2::track::TrackLTIntegral ltIntegral;
11841190 bool successPropag = o2::base::Propagator::Instance ()->propagateToDCA (trackVertex, negTrack, d_bz, 2 .f , o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr , <Integral);
1185- histos.fill (HIST (" hPropagationBookkeeping" ), kPropagNegCasc , static_cast <float >(successPropag));
1191+ if (doQA){
1192+ histos.fill (HIST (" hPropagationBookkeeping" ), kPropagNegCasc , static_cast <float >(successPropag));
1193+ }
11861194 if (successPropag) {
11871195 lengthNegative = nTof.length - ltIntegral.getL ();
11881196 casctof.negFlightPr = o2::framework::pid::tof::MassToExpTime (nTof.tofExpMom , nTof.length - ltIntegral.getL (), o2::constants::physics::MassProton * o2::constants::physics::MassProton);
@@ -1251,7 +1259,7 @@ struct strangenesstofpid {
12511259 }
12521260 } // end negative
12531261
1254- if (bTof.hasTOF && bTof.hasITS && bTof. tofEvTime > -1e+5 && bValidTOF) {
1262+ if (bTof.hasTOF && bTof.tofEvTime > -1e+5 && bValidTOF) {
12551263 float velocityBachelorKa, velocityBachelorPi, lengthBachelor;
12561264 velocityBachelorKa = velocityBachelorPi = lengthBachelor = o2::aod::v0data::kNoTOFValue ;
12571265 // method 0: legacy standalone without use of primary particle TOF
@@ -1272,7 +1280,9 @@ struct strangenesstofpid {
12721280 const o2::math_utils::Point3D<float > trackVertex{trackCollision.posX (), trackCollision.posY (), trackCollision.posZ ()};
12731281 o2::track::TrackLTIntegral ltIntegral;
12741282 bool successPropag = o2::base::Propagator::Instance ()->propagateToDCA (trackVertex, bachTrack, d_bz, 2 .f , o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr , <Integral);
1275- histos.fill (HIST (" hPropagationBookkeeping" ), kPropagBachCasc , static_cast <float >(successPropag));
1283+ if (doQA){
1284+ histos.fill (HIST (" hPropagationBookkeeping" ), kPropagBachCasc , static_cast <float >(successPropag));
1285+ }
12761286 if (successPropag) {
12771287 lengthBachelor = bTof.length - ltIntegral.getL ();
12781288 casctof.bachFlightPi = o2::framework::pid::tof::MassToExpTime (bTof.tofExpMom , bTof.length - ltIntegral.getL (), o2::constants::physics::MassPionCharged * o2::constants::physics::MassPionCharged);
0 commit comments