@@ -158,7 +158,7 @@ struct skimmerPrimaryElectron {
158158 if (d_bz_input > -990 ) {
159159 d_bz = d_bz_input;
160160 o2::parameters::GRPMagField grpmag;
161- if (fabs (d_bz) > 1e-5 ) {
161+ if (std:: fabs (d_bz) > 1e-5 ) {
162162 grpmag.setL3Current (30000 .f / (d_bz / 5 .0f ));
163163 }
164164 o2::base::Propagator::initFieldFromGRP (&grpmag);
@@ -198,7 +198,7 @@ struct skimmerPrimaryElectron {
198198 }
199199 }
200200
201- if (requireTOF && !(track.hasTOF () && abs (track.tofNSigmaEl ()) < maxTOFNsigmaEl)) {
201+ if (requireTOF && !(track.hasTOF () && std::fabs (track.tofNSigmaEl ()) < maxTOFNsigmaEl)) {
202202 return false ;
203203 }
204204
@@ -236,7 +236,7 @@ struct skimmerPrimaryElectron {
236236 return false ;
237237 }
238238
239- if (track.hasTOF () && (maxTOFNsigmaEl < fabs (track.tofNSigmaEl ()))) {
239+ if (track.hasTOF () && (maxTOFNsigmaEl < std:: fabs (track.tofNSigmaEl ()))) {
240240 return false ;
241241 }
242242
@@ -249,11 +249,11 @@ struct skimmerPrimaryElectron {
249249 float dcaXY = dcaInfo[0 ];
250250 float dcaZ = dcaInfo[1 ];
251251
252- if (fabs (dcaXY) > dca_xy_max || fabs (dcaZ) > dca_z_max) {
252+ if (std:: fabs (dcaXY) > dca_xy_max || std:: fabs (dcaZ) > dca_z_max) {
253253 return false ;
254254 }
255255
256- if (track_par_cov_recalc.getPt () < minpt || fabs (track_par_cov_recalc.getEta ()) > maxeta) {
256+ if (track_par_cov_recalc.getPt () < minpt || std:: fabs (track_par_cov_recalc.getEta ()) > maxeta) {
257257 return false ;
258258 }
259259
@@ -293,7 +293,7 @@ struct skimmerPrimaryElectron {
293293 if (minTPCNsigmaPr < track.tpcNSigmaPr () && track.tpcNSigmaPr () < maxTPCNsigmaPr) {
294294 return false ;
295295 }
296- if (track.hasTOF () && (maxTOFNsigmaEl < fabs (track.tofNSigmaEl ()))) {
296+ if (track.hasTOF () && (maxTOFNsigmaEl < std:: fabs (track.tofNSigmaEl ()))) {
297297 return false ;
298298 }
299299 return true ;
@@ -305,7 +305,7 @@ struct skimmerPrimaryElectron {
305305 if (minTPCNsigmaPi < track.tpcNSigmaPi () && track.tpcNSigmaPi () < maxTPCNsigmaPi && track.tpcInnerParam () < max_pin_for_pion_rejection) {
306306 return false ;
307307 }
308- return minTPCNsigmaEl < track.tpcNSigmaEl () && track.tpcNSigmaEl () < maxTPCNsigmaEl && fabs (track.tofNSigmaEl ()) < maxTOFNsigmaEl;
308+ return minTPCNsigmaEl < track.tpcNSigmaEl () && track.tpcNSigmaEl () < maxTPCNsigmaEl && std:: fabs (track.tofNSigmaEl ()) < maxTOFNsigmaEl;
309309 }
310310
311311 template <typename TCollision, typename TTrack>
@@ -688,7 +688,7 @@ struct prefilterPrimaryElectron {
688688 if (d_bz_input > -990 ) {
689689 d_bz = d_bz_input;
690690 o2::parameters::GRPMagField grpmag;
691- if (fabs (d_bz) > 1e-5 ) {
691+ if (std:: fabs (d_bz) > 1e-5 ) {
692692 grpmag.setL3Current (30000 .f / (d_bz / 5 .0f ));
693693 }
694694 o2::base::Propagator::initFieldFromGRP (&grpmag);
@@ -761,15 +761,16 @@ struct prefilterPrimaryElectron {
761761
762762 gpu::gpustd::array<float , 2 > dcaInfo;
763763 auto track_par_cov_recalc = getTrackParCov (track);
764+ track_par_cov_recalc.setPID (o2::track::PID::Electron);
764765 std::array<float , 3 > pVec_recalc = {0 , 0 , 0 }; // px, py, pz
765766 o2::base::Propagator::Instance ()->propagateToDCABxByBz ({collision.posX (), collision.posY (), collision.posZ ()}, track_par_cov_recalc, 2 .f , matCorr, &dcaInfo);
766767 getPxPyPz (track_par_cov_recalc, pVec_recalc);
767768
768- if (fabs (dcaInfo[0 ]) > max_dcaxy || fabs (dcaInfo[1 ]) > max_dcaz) {
769+ if (std:: fabs (dcaInfo[0 ]) > max_dcaxy || std:: fabs (dcaInfo[1 ]) > max_dcaz) {
769770 return false ;
770771 }
771772
772- if (track_par_cov_recalc.getPt () < minpt || fabs (track_par_cov_recalc.getEta ()) > maxeta) {
773+ if (track_par_cov_recalc.getPt () < minpt || std:: fabs (track_par_cov_recalc.getEta ()) > maxeta) {
773774 return false ;
774775 }
775776
@@ -863,6 +864,7 @@ struct prefilterPrimaryElectron {
863864 gpu::gpustd::array<float , 2 > dcaInfo;
864865 std::array<float , 3 > pVec_recalc = {0 , 0 , 0 }; // px, py, pz
865866 auto track_par_cov_recalc = getTrackParCov (ele);
867+ track_par_cov_recalc.setPID (o2::track::PID::Electron);
866868 o2::base::Propagator::Instance ()->propagateToDCABxByBz ({collision.posX (), collision.posY (), collision.posZ ()}, track_par_cov_recalc, 2 .f , matCorr, &dcaInfo);
867869 getPxPyPz (track_par_cov_recalc, pVec_recalc);
868870
@@ -900,6 +902,7 @@ struct prefilterPrimaryElectron {
900902 gpu::gpustd::array<float , 2 > dcaInfo;
901903 std::array<float , 3 > pVec_recalc = {0 , 0 , 0 }; // px, py, pz
902904 auto track_par_cov_recalc = getTrackParCov (pos);
905+ track_par_cov_recalc.setPID (o2::track::PID::Electron);
903906 o2::base::Propagator::Instance ()->propagateToDCABxByBz ({collision.posX (), collision.posY (), collision.posZ ()}, track_par_cov_recalc, 2 .f , matCorr, &dcaInfo);
904907 getPxPyPz (track_par_cov_recalc, pVec_recalc);
905908 for (auto & emele : electrons_per_coll) {
@@ -935,6 +938,7 @@ struct prefilterPrimaryElectron {
935938 gpu::gpustd::array<float , 2 > dcaInfo;
936939 std::array<float , 3 > pVec_recalc = {0 , 0 , 0 }; // px, py, pz
937940 auto track_par_cov_recalc = getTrackParCov (pos);
941+ track_par_cov_recalc.setPID (o2::track::PID::Electron);
938942 o2::base::Propagator::Instance ()->propagateToDCABxByBz ({collision.posX (), collision.posY (), collision.posZ ()}, track_par_cov_recalc, 2 .f , matCorr, &dcaInfo);
939943 getPxPyPz (track_par_cov_recalc, pVec_recalc);
940944 for (auto & empos : positrons_per_coll) {
@@ -958,6 +962,7 @@ struct prefilterPrimaryElectron {
958962 gpu::gpustd::array<float , 2 > dcaInfo;
959963 std::array<float , 3 > pVec_recalc = {0 , 0 , 0 }; // px, py, pz
960964 auto track_par_cov_recalc = getTrackParCov (ele);
965+ track_par_cov_recalc.setPID (o2::track::PID::Electron);
961966 o2::base::Propagator::Instance ()->propagateToDCABxByBz ({collision.posX (), collision.posY (), collision.posZ ()}, track_par_cov_recalc, 2 .f , matCorr, &dcaInfo);
962967 getPxPyPz (track_par_cov_recalc, pVec_recalc);
963968
0 commit comments