@@ -189,14 +189,14 @@ GPUd() bool PropagatorImpl<value_T>::PropagateToXBxByBz(TrackParCov_t& track, va
189189 res = false ;
190190 }
191191 if (tofInfo) {
192- tofInfo->addStep (mb.length , track.getP2Inv ()); // fill L,ToF info using already calculated step length
192+ tofInfo->addStep (mb.length , track.getQ2P2 ()); // fill L,ToF info using already calculated step length
193193 tofInfo->addX2X0 (mb.meanX2X0 );
194194 tofInfo->addXRho (mb.getXRho (signCorr));
195195 }
196196 } else if (tofInfo) { // if tofInfo filling was requested w/o material correction, we need to calculate the step lenght
197197 auto xyz1 = track.getXYZGlo ();
198198 math_utils::Vector3D<value_type> stepV (xyz1.X () - xyz0.X (), xyz1.Y () - xyz0.Y (), xyz1.Z () - xyz0.Z ());
199- tofInfo->addStep (stepV.R (), track.getP2Inv ());
199+ tofInfo->addStep (stepV.R (), track.getQ2P2 ());
200200 }
201201 return res;
202202 };
@@ -258,14 +258,14 @@ GPUd() bool PropagatorImpl<value_T>::PropagateToXBxByBz(TrackPar_t& track, value
258258 res = false ;
259259 }
260260 if (tofInfo) {
261- tofInfo->addStep (mb.length , track.getP2Inv ()); // fill L,ToF info using already calculated step length
261+ tofInfo->addStep (mb.length , track.getQ2P2 ()); // fill L,ToF info using already calculated step length
262262 tofInfo->addX2X0 (mb.meanX2X0 );
263263 tofInfo->addXRho (mb.getXRho (signCorr));
264264 }
265265 } else if (tofInfo) { // if tofInfo filling was requested w/o material correction, we need to calculate the step lenght
266266 auto xyz1 = track.getXYZGlo ();
267267 math_utils::Vector3D<value_type> stepV (xyz1.X () - xyz0.X (), xyz1.Y () - xyz0.Y (), xyz1.Z () - xyz0.Z ());
268- tofInfo->addStep (stepV.R (), track.getP2Inv ());
268+ tofInfo->addStep (stepV.R (), track.getQ2P2 ());
269269 }
270270 return res;
271271 };
@@ -324,14 +324,14 @@ GPUd() bool PropagatorImpl<value_T>::propagateToX(TrackParCov_t& track, value_ty
324324 res = false ;
325325 }
326326 if (tofInfo) {
327- tofInfo->addStep (mb.length , track.getP2Inv ()); // fill L,ToF info using already calculated step length
327+ tofInfo->addStep (mb.length , track.getQ2P2 ()); // fill L,ToF info using already calculated step length
328328 tofInfo->addX2X0 (mb.meanX2X0 );
329329 tofInfo->addXRho (mb.getXRho (signCorr));
330330 }
331331 } else if (tofInfo) { // if tofInfo filling was requested w/o material correction, we need to calculate the step lenght
332332 auto xyz1 = track.getXYZGlo ();
333333 math_utils::Vector3D<value_type> stepV (xyz1.X () - xyz0.X (), xyz1.Y () - xyz0.Y (), xyz1.Z () - xyz0.Z ());
334- tofInfo->addStep (stepV.R (), track.getP2Inv ());
334+ tofInfo->addStep (stepV.R (), track.getQ2P2 ());
335335 }
336336 return res;
337337 };
@@ -390,14 +390,14 @@ GPUd() bool PropagatorImpl<value_T>::propagateToX(TrackPar_t& track, value_type
390390 res = false ;
391391 }
392392 if (tofInfo) {
393- tofInfo->addStep (mb.length , track.getP2Inv ()); // fill L,ToF info using already calculated step length
393+ tofInfo->addStep (mb.length , track.getQ2P2 ()); // fill L,ToF info using already calculated step length
394394 tofInfo->addX2X0 (mb.meanX2X0 );
395395 tofInfo->addXRho (mb.getXRho (signCorr));
396396 }
397397 } else if (tofInfo) { // if tofInfo filling was requested w/o material correction, we need to calculate the step lenght
398398 auto xyz1 = track.getXYZGlo ();
399399 math_utils::Vector3D<value_type> stepV (xyz1.X () - xyz0.X (), xyz1.Y () - xyz0.Y (), xyz1.Z () - xyz0.Z ());
400- tofInfo->addStep (stepV.R (), track.getP2Inv ());
400+ tofInfo->addStep (stepV.R (), track.getQ2P2 ());
401401 }
402402 return res;
403403 };
@@ -717,7 +717,7 @@ GPUd() value_T PropagatorImpl<value_T>::estimateLTFast(o2::track::TrackLTIntegra
717717 // since we assume the track or its parent comes from the beam-line or decay, add XY(?) distance to it
718718 value_T dcaT = math_utils::detail::sqrt<value_type>(xdca * xdca + ydca * ydca);
719719 length += dcaT;
720- lt.addStep (length, trc.getP2Inv ());
720+ lt.addStep (length, trc.getQ2P2 ());
721721 return dcaT;
722722}
723723
0 commit comments