From fbe11be76539f04e5a54deff0f426288caa4183d Mon Sep 17 00:00:00 2001 From: abercuci Date: Mon, 4 Jan 2010 13:34:48 +0000 Subject: [PATCH] fix warnings reported in savannah 60986 --- TRD/AliTRDseedV1.cxx | 8 +++++--- TRD/AliTRDtrackerV1.cxx | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/TRD/AliTRDseedV1.cxx b/TRD/AliTRDseedV1.cxx index 8456898a658..ad350376d6d 100644 --- a/TRD/AliTRDseedV1.cxx +++ b/TRD/AliTRDseedV1.cxx @@ -749,9 +749,10 @@ Double_t AliTRDseedV1::GetCovInv(const Double_t * const c, Double_t *d) //____________________________________________________________________ UShort_t AliTRDseedV1::GetVolumeId() const { - Int_t ic=0; - while(icGetVolumeId() : 0; + for(Int_t ic(0);icGetVolumeId(); + } + return 0; } @@ -1322,6 +1323,7 @@ Bool_t AliTRDseedV1::Fit(Bool_t tilt, Bool_t zcorr) //optional tilt correction if(tilt) yc[n] -= (GetTilt()*(zc[n] - zt)); + AliDebug(5, Form(" tb[%2d] dx[%6.3f] y[%6.2f+-%6.3f]", c->GetLocalTimeBin(), xc[n], yc[n], sy[n])); fitterY.AddPoint(&xc[n], yc[n], sy[n]); if(IsRowCross()) fitterZ.AddPoint(&xc[n], qc[n], 1.); n++; diff --git a/TRD/AliTRDtrackerV1.cxx b/TRD/AliTRDtrackerV1.cxx index c091267a520..cf5fe9e8003 100644 --- a/TRD/AliTRDtrackerV1.cxx +++ b/TRD/AliTRDtrackerV1.cxx @@ -1703,7 +1703,7 @@ Double_t AliTRDtrackerV1::FitKalman(AliTRDtrackV1 *track, AliTRDseedV1 * const t xyz1[0] = x * TMath::Cos(alpha) - y * TMath::Sin(alpha); xyz1[1] = +x * TMath::Sin(alpha) + y * TMath::Cos(alpha); xyz1[2] = z; - if((xyz0[0] - xyz1[9] < 1e-3) && (xyz0[0] - xyz1[9] < 1e-3)) continue; // check wheter we are at the same global x position + if(TMath::Abs(xyz0[0] - xyz1[0]) < 1e-3 && TMath::Abs(xyz0[1] - xyz1[1]) < 1e-3) continue; // check wheter we are at the same global x position Double_t param[7]; if(AliTracker::MeanMaterialBudget(xyz0, xyz1, param) <=0.) break; Double_t xrho = param[0]*param[4]; // density*length -- 2.43.0