@@ -50,20 +50,24 @@ GPUd() bool TrackParametrizationWithError<value_T>::propagateTo(value_t xk, valu
5050 // ----------------------------------------------------------------
5151 value_t dx = xk - this ->getX ();
5252 if (gpu::CAMath::Abs (dx) < constants::math::Almost0) {
53+ // LOGP(info,"gpu::CAMath::Abs({}) < constants::math::Almost0) ",dx);
5354 return true ;
5455 }
5556 value_t crv = this ->getCurvature (b);
5657 value_t x2r = crv * dx;
5758 value_t f1 = this ->getSnp (), f2 = f1 + x2r;
5859 if ((gpu::CAMath::Abs (f1) > constants::math::Almost1) || (gpu::CAMath::Abs (f2) > constants::math::Almost1)) {
60+ // LOGP(info,"gpu::CAMath::Abs({}) > constants::math::Almost1) || (gpu::CAMath::Abs({}) > constants::math::Almost1))",f1,f2);
5961 return false ;
6062 }
6163 value_t r1 = gpu::CAMath::Sqrt ((1 .f - f1) * (1 .f + f1));
6264 if (gpu::CAMath::Abs (r1) < constants::math::Almost0) {
65+ // LOGP(info,"gpu::CAMath::Abs({}) < constants::math::Almost0)",r1);
6366 return false ;
6467 }
6568 value_t r2 = gpu::CAMath::Sqrt ((1 .f - f2) * (1 .f + f2));
6669 if (gpu::CAMath::Abs (r2) < constants::math::Almost0) {
70+ // LOGP(info,"gpu::CAMath::Abs({}) < constants::math::Almost0)",r2);
6771 return false ;
6872 }
6973 double dy2dx = (f1 + f2) / (r1 + r2);
@@ -80,6 +84,7 @@ GPUd() bool TrackParametrizationWithError<value_T>::propagateTo(value_t xk, valu
8084 //
8185 auto arg = r1 * f2 - r2 * f1;
8286 if (gpu::CAMath::Abs (arg) > constants::math::Almost1) {
87+ // LOGP(info,"gpu::CAMath::Abs({}) > constants::math::Almost1) {}*{}-{}*{}",arg,r1,f2,r2,f1);
8388 return false ;
8489 }
8590 value_t rot = gpu::CAMath::ASin (arg); // more economic version from Yura.
@@ -443,29 +448,34 @@ GPUd() bool TrackParametrizationWithError<value_T>::propagateTo(value_t xk, cons
443448
444449 value_t dx = xk - this ->getX ();
445450 if (gpu::CAMath::Abs (dx) < constants::math::Almost0) {
451+ // LOGP(info,"{} {} (gpu::CAMath::Abs({}) < constants::math::Almost0)",__LINE__,__func__,dx);
446452 return true ;
447453 }
448454 // Do not propagate tracks outside the ALICE detector
449455 if (gpu::CAMath::Abs (dx) > 1e5 || gpu::CAMath::Abs (this ->getY ()) > 1e5 || gpu::CAMath::Abs (this ->getZ ()) > 1e5 ) {
450- LOG (warning) << " Anomalous track, target X:" << xk;
456+ // LOG(warning) << "Anomalous track, target X:" << xk;
451457 // print();
452458 return false ;
453459 }
454460 value_t crv = (gpu::CAMath::Abs (b[2 ]) < constants::math::Almost0) ? 0 .f : this ->getCurvature (b[2 ]);
455461 if (gpu::CAMath::Abs (crv) < constants::math::Almost0) {
462+ // LOGP(info,"{} {} (gpu::CAMath::Abs({}?v) < constants::math::Almost0) ",__LINE__,__func__,crv);
456463 return propagateTo (xk, 0 .);
457464 }
458465 value_t x2r = crv * dx;
459466 value_t f1 = this ->getSnp (), f2 = f1 + x2r;
460467 if ((gpu::CAMath::Abs (f1) > constants::math::Almost1) || (gpu::CAMath::Abs (f2) > constants::math::Almost1)) {
468+ // LOGP(info," {} {} ((gpu::CAMath::Abs({}) > constants::math::Almost1) || (gpu::CAMath::Abs({}) > constants::math::Almost1))",__LINE__,__func__,f1,f2);
461469 return false ;
462470 }
463471 value_t r1 = gpu::CAMath::Sqrt ((1 .f - f1) * (1 .f + f1));
464472 if (gpu::CAMath::Abs (r1) < constants::math::Almost0) {
473+ // LOGP(info,"{} {} (gpu::CAMath::Abs() < constants::math::Almost0)",__LINE__,__func__,r1);
465474 return false ;
466475 }
467476 value_t r2 = gpu::CAMath::Sqrt ((1 .f - f2) * (1 .f + f2));
468477 if (gpu::CAMath::Abs (r2) < constants::math::Almost0) {
478+ // LOGP(info,"{} {} (gpu::CAMath::Abs() < constants::math::Almost0)",__LINE__,__func__,r2);
469479 return false ;
470480 }
471481
@@ -477,6 +487,7 @@ GPUd() bool TrackParametrizationWithError<value_T>::propagateTo(value_t xk, cons
477487 // get the track x,y,z,px/p,py/p,pz/p,p,sinAlpha,cosAlpha in the Global System
478488 std::array<value_t , 9 > vecLab{0 .f };
479489 if (!this ->getPosDirGlo (vecLab)) {
490+ LOGP (info," {} {} getPosDirGlo failed" ,__LINE__,__func__);
480491 return false ;
481492 }
482493 //
@@ -576,6 +587,7 @@ GPUd() bool TrackParametrizationWithError<value_T>::propagateTo(value_t xk, cons
576587 value_t x = vecLab[0 ], y = vecLab[1 ], z = vecLab[2 ];
577588 if (gpu::CAMath::Abs (dx) > constants::math::Almost0) {
578589 if (gpu::CAMath::Abs (vecLab[3 ]) < constants::math::Almost0) {
590+ LOGP (info," {} {} (gpu::CAMath::Abs(vecLab[3]) < constants::math::Almost0)" ,__LINE__,__func__,vecLab[3 ]);
579591 return false ;
580592 }
581593 dx = xk - vecLab[0 ];
0 commit comments