@@ -228,7 +228,7 @@ GPUd() bool GPUTPCGMTrackParam::Fit(const GPUTPCGMMerger* GPUrestrict() merger,
228228
229229 if (err == 0 && changeDirection) {
230230 const float mirrordY = prop.GetMirroredYTrack ();
231- CADEBUG (printf (" -- MiroredY : %f --> %f" , mP [0 ], mirrordY));
231+ CADEBUG (printf (" -- MirroredY : %f --> %f" , mP [0 ], mirrordY));
232232 if (CAMath::Abs (yy - mP [0 ]) > CAMath::Abs (yy - mirrordY)) {
233233 CADEBUG (printf (" - Mirroring!!!" ));
234234 if (allowModification) {
@@ -889,7 +889,7 @@ GPUd() bool GPUTPCGMTrackParam::CheckNumericalQuality(float overrideCovYY) const
889889 // * Check that the track parameters and covariance matrix are reasonable
890890 bool ok = CAMath::Finite (mX ) && CAMath::Finite (mChi2 );
891891 CADEBUG (
892- printf (" OK %d - " , (int )ok); for (int i = 0 ; i < 5 ; i++) { printf (" %f " , mP [i]); } printf (" - " ); for (int i = 0 ; i < 15 ; i++) { printf (" %f " , mC [i]); } printf (" \n " ));
892+ printf (" OK %d - %f - " , (int )ok, mX ); for (int i = 0 ; i < 5 ; i++) { printf (" %f " , mP [i]); } printf (" - " ); for (int i = 0 ; i < 15 ; i++) { printf (" %f " , mC [i]); } printf (" \n " ));
893893 const float * c = mC ;
894894 for (int i = 0 ; i < 15 ; i++) {
895895 ok = ok && CAMath::Finite (c[i]);
@@ -1007,6 +1007,8 @@ GPUd() void GPUTPCGMTrackParam::RefitTrack(GPUTPCGMMergedTrack& GPUrestrict() tr
10071007 t.QPt () = 1 .e -4f ;
10081008 }
10091009
1010+ CADEBUG (if (t.GetX () > 250 ) { printf (" ERROR, Track at impossible X %f\n " , t.GetX ()); });
1011+
10101012 track.SetOK (ok);
10111013 track.SetNClustersFitted (nTrackHits);
10121014 track.Param () = t;
@@ -1033,7 +1035,7 @@ GPUd() void GPUTPCGMTrackParam::RefitTrack(GPUTPCGMMergedTrack& GPUrestrict() tr
10331035 }
10341036}
10351037
1036- GPUd () bool GPUTPCGMTrackParam::Rotate(float alpha)
1038+ GPUd () void GPUTPCGMTrackParam::Rotate(float alpha)
10371039{
10381040 float cA, sA ;
10391041 CAMath::SinCos (alpha, sA , cA);
@@ -1068,5 +1070,4 @@ GPUd() bool GPUTPCGMTrackParam::Rotate(float alpha)
10681070 mC [10 ] = -mC [10 ];
10691071 mC [11 ] = -mC [11 ];
10701072 }
1071- return true ;
10721073}
0 commit comments