]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliReader.cxx
Pass() renamed to Rejected()
[u/mrichter/AliRoot.git] / ANALYSIS / AliReader.cxx
index d4ef9488f7595d9288ce915338aec875998ff8c1..41bbf115c8bb108bb7fb9c9ac66c83c0a55cda80 100644 (file)
@@ -346,13 +346,13 @@ Int_t AliReader::Read(AliAODRun* particles, AliAODRun *tracks)
 }      
 /*************************************************************************************/
 
-Bool_t AliReader::Pass(AliVAODParticle* p)
+Bool_t AliReader::Rejected(AliVAODParticle* p)
 {
  //Method examines whether particle meets all cut and particle type criteria
   
    if(p==0x0)//of corse we not pass NULL pointers
     {
-     Warning("Pass()","No Pasaran! We never accept NULL pointers");
+     Warning("Rejected()","No Pasaran! We never accept NULL pointers");
      return kTRUE;
     }
    //if no particle is specified, we pass all particles
@@ -361,14 +361,14 @@ Bool_t AliReader::Pass(AliVAODParticle* p)
   for(Int_t i=0; i<fCuts->GetEntriesFast(); i++)   
    {
      AliAODParticleCut &cut = *((AliAODParticleCut*)fCuts->At(i));
-     if(!cut.Pass(p)) return kFALSE;  //accepted
+     if(!cut.Rejected(p)) return kFALSE;  //accepted
    }
    
   return kTRUE;//not accepted
 }
 /*************************************************************************************/
 
-Bool_t  AliReader::Pass(Int_t pid)
+Bool_t  AliReader::Rejected(Int_t pid)
 {
 //this method checks if any of existing cuts accepts this pid particles
 //or any cuts accepts all particles