]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPC.cxx
L1 Gating signal is now used to remove the TPC hits which arrive before the gating...
[u/mrichter/AliRoot.git] / TPC / AliTPC.cxx
index 8d33223b6642e45e31bb60437c73b61c0ba3e10b..4df5f01f6aa3aa446881fd55c7fab8fd7e22bf8c 100644 (file)
@@ -1668,6 +1668,13 @@ void AliTPC::MakeSector(Int_t isec,Int_t nrows,TTree *TH,
        continue; 
       }
 
+      // Remove hits which arrive before the TPC opening gate signal
+      if(((fTPCParam->GetZLength()-TMath::Abs(tpcHit->Z()))
+         /fTPCParam->GetDriftV()+tpcHit->Time())<fTPCParam->GetGateDelay()) {
+       tpcHit = (AliTPChit*) NextHit();
+       continue;
+      }
+
       currentTrack = tpcHit->Track(); // track number
 
       if(currentTrack != previousTrack){