]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
In Pass if no cuts specified by default partilce is accepted
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Dec 2001 14:18:25 +0000 (14:18 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Dec 2001 14:18:25 +0000 (14:18 +0000)
HBTAN/AliHBTReader.cxx

index aabe6e54e4939675fdf1e8ff2e8a255e16c82b0f..06b7c2ba992c4951b3e298bedaaed0c603dff2a2 100644 (file)
@@ -66,7 +66,7 @@ Bool_t AliHBTReader::Pass(AliHBTParticle* p)
     }
    //if no particle is specified, we pass all particles
    //excluding NULL pointers, of course
-   
+  if ( fCuts->GetEntriesFast() == 0 ) return kFALSE; //if no cut specified accept all particles
   for(Int_t i=0; i<fCuts->GetEntriesFast(); i++)   
    {
      AliHBTParticleCut &cut = *((AliHBTParticleCut*)fCuts->At(i));
@@ -85,6 +85,8 @@ Bool_t  AliHBTReader::Pass(Int_t pid)
 
  if(pid == 0)
   return kTRUE;
+
+ if ( fCuts->GetEntriesFast() == 0 ) return kFALSE; //if no cut specified accept all particles
   
  for(Int_t i=0; i<fCuts->GetEntriesFast(); i++)   
    {