]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HBTAN/AliHBTReader.cxx
Classes imported from EVGEN.
[u/mrichter/AliRoot.git] / HBTAN / AliHBTReader.cxx
index aabe6e54e4939675fdf1e8ff2e8a255e16c82b0f..fca4c9a113d3e6170c99d3edb7f981bc2f62fd60 100644 (file)
@@ -4,7 +4,7 @@
 #include <TObjString.h>
 #include <TObjArray.h>
 #include <TClass.h>
-#include <iostream.h>
+#include <Riostream.h>
 
 #include "AliHBTParticleCut.h"
 
@@ -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++)   
    {