Avoid ghosts.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Sep 2004 12:09:50 +0000 (12:09 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 1 Sep 2004 12:09:50 +0000 (12:09 +0000)
JETAN/AliJetParticlesReaderHLT.cxx

index dc6b600..ba462e8 100644 (file)
@@ -126,7 +126,9 @@ Int_t AliJetParticlesReaderHLT::ReadESD(AliESD* esd)
     //const Float_t kpid=kesdtrack->GetPID();
     const Int_t knhits=kesdtrack->GetNHits();
     const Int_t kweight=kesdtrack->GetWeight();
-    if((fMinHits>0) && (knhits<fMinHits)) continue;
+    //cout << i << " " << kweight << " " << knhits << endl;
+    if((fMinHits>0) && (knhits<fMinHits)) continue;    
+    if(kweight>1000) continue; //avoid ghosts 
     if((fMinWeight>0) && (kweight<fMinWeight)) continue;
 
     const Float_t kpx=kesdtrack->GetPx();