]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliEventCut.cxx
AliAOD and AODParticle (T.Kuhr) - Readers, AODStdParticle and Cuts (P.Skowronski...
[u/mrichter/AliRoot.git] / ANALYSIS / AliEventCut.cxx
index e7f1eb0216b08c36d8ed0a2be7c354b748e11ec1..32e943f421a85d2b16a30b0ec6a5e7d4a8a03e40 100644 (file)
@@ -30,14 +30,20 @@ AliEventCut::~AliEventCut()
 
 /*********************************************************/
 
-Bool_t AliEventCut::Pass(AliESD* esd) const
+Bool_t AliEventCut::Pass(AliAOD* aod) const
 {
   //returns kTRUE if rejected
+  if (aod == 0x0)
+   {
+     Error("Pass","Pointer to AOD is NULL. Not passed the cut");
+     return kFALSE;
+   }
+   
   TIter iter(fBaseCuts);
   AliBaseEventCut* becut;
   while (( becut = (AliBaseEventCut*)iter() ))
    {
-     if (becut->Pass(esd)) return kTRUE;
+     if (becut->Pass(aod)) return kTRUE;
    }
   return kFALSE;
 }