]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
L1 Gating signal is now used to remove the TPC hits which arrive before the gating...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Mar 2006 13:48:46 +0000 (13:48 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Mar 2006 13:48:46 +0000 (13:48 +0000)
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){