AliAODAndPairCut::Rejected made faster
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Aug 2004 18:46:33 +0000 (18:46 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Aug 2004 18:46:33 +0000 (18:46 +0000)
ANALYSIS/AliAODPairBaseCut.cxx

index 8642d01..2516f86 100644 (file)
@@ -261,7 +261,19 @@ Bool_t AliAODAndPairCut::Rejected(AliAODPair * p)  const
   //OR operation is a little bit misleading but is correct
   //User wants to build logical cuts with natural (positive) logic
   //while ALIAN use inernally reverse (returns true when rejected)
-  if (fFirst->Rejected(p) || fSecond->Rejected(p)) return kTRUE;//rejected (any of two rejected(returned kTRUE) )
+  if (fFirst->Rejected(p))
+   {//first rejected - we reject
+     return kTRUE;
+   }
+  else
+   {//first accepted
+    if (fSecond->Rejected(p))
+     {//second rejected - we reject
+       return kTRUE;
+     }
+   }  
+//  if (fFirst->Rejected(p) || fSecond->Rejected(p)) return kTRUE;//rejected (any of two rejected(returned kTRUE) )
+  
   return kFALSE;//accepted (both accepted (returned kFALSE))
 }
 /******************************************************************/