Reintroducing some changes which were lost
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 May 2006 07:34:37 +0000 (07:34 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 12 May 2006 07:34:37 +0000 (07:34 +0000)
TRD/AliTRDmcmTracklet.cxx
TRD/AliTRDtrigger.cxx

index 7154be31d4d2ec516965de3c27dd175a2ffefeee..d04861d7998fd3d1c6556013b1ab6fedd750ef5f 100644 (file)
@@ -316,7 +316,7 @@ void AliTRDmcmTracklet::MakeTrackletGraph(AliTRDgeometry *geo, Float_t field)
   fGPos->Set(npg);
   
   fTime0 = geo->GetTime0(iplan) - AliTRDgeometry::CdrHght() - 0.5*AliTRDgeometry::CamHght();
-  fRowz = 0.5*(padPlane->GetRowPos(fRow) + padPlane->GetRowPos(fRow+1));
+  fRowz = padPlane->GetRowPos(fRow) - padPlane->GetRowSize(fRow)/2.0;
 
   Double_t xMin = 0, xMax = 0, x, y;
   fGPos->GetPoint(0    ,x,y); xMax = x + 0.1;
index 48ef1498fd799bf4b0b20670c370f00cbe6a4890..2cd1f97b69f37763d76da3cdbded384aac57d585 100644 (file)
@@ -435,8 +435,9 @@ Bool_t AliTRDtrigger::MakeTracklets(Bool_t makeTracks)
 
            row = fMCM->GetRow();
 
-           if (row < 0 || row > nRowMax) {
+           if (row < 0 || row >= nRowMax) {
              Error("MakeTracklets","MCM row number out of range.");
+             continue;
            }
 
            fMCM->GetColRange(col1,col2);