]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDtrackingChamber.cxx
- revert accidental part of previous commit,
[u/mrichter/AliRoot.git] / TRD / AliTRDtrackingChamber.cxx
index 83e95acce3ead5e9a17d6b6f183affec4297c49e..a432ae79ac3178ba2b14ba22c1a1ccfeec665983 100644 (file)
@@ -107,7 +107,7 @@ Bool_t AliTRDtrackingChamber::Build(AliTRDgeometry *const geo, Bool_t hlt)
   // AliTRDCommonParam::Instance()->GetDiffCoeff(fDiffL, fDiffT, fVD);  
 
   // ESTIMATE POSITION OF PAD PLANE FOR THIS CHAMBER
-  fTB[Int_t(t0)].SetT0();
+  //fTB[Int_t(t0)].SetT0();
   Double_t x0 = fTB[index[0]].GetX();
   Double_t x1 = fTB[index[1]].GetX();
   Double_t dx = (x0 - x1)/(index[1] - index[0]); 
@@ -380,6 +380,7 @@ Bool_t AliTRDtrackingChamber::GetSeedingLayer(AliTRDchamberTimeBin *&fakeLayer,
           n++;
         }
       }
+      if(!n) continue;
       pos[0] = x/n;
       pos[1] = y/n;
       pos[2] = z/n;