]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix indexes in the tracklet Fit function
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Aug 2008 13:40:04 +0000 (13:40 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Aug 2008 13:40:04 +0000 (13:40 +0000)
TRD/AliTRDseedV1.cxx

index 2cadbf29e6bf9481190de234fe6661e2ca464cc7..7b603e098950addb6e9527a5dc03fe5cab1f0da8 100644 (file)
@@ -674,9 +674,9 @@ Bool_t AliTRDseedV1::Fit()
     xc[nc]   = fX0 - c->GetX();
     yc[nc]   = c->GetY();
     zc[nc]   = c->GetZ();
-    sy[ic]   = w; // all clusters have the same sigma
-    sz[ic]   = fPadLength*convert;
-    fitterZ.AddPoint(&xc[ic], zc[ic], sz[ic]);
+    sy[nc]   = w; // all clusters have the same sigma
+    sz[nc]   = fPadLength*convert;
+    fitterZ.AddPoint(&xc[nc], zc[nc], sz[nc]);
     nc++;
   }
   // to few clusters