]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliEventBaseCut.cxx
Pass execution mode to event handler.
[u/mrichter/AliRoot.git] / ANALYSIS / AliEventBaseCut.cxx
index e5fbe7f695ae96737aa74bbaf4c77e9aeaa5832d..d0c70680f1281dc8c3289d314545682df03b85e1 100644 (file)
@@ -32,7 +32,11 @@ AliEventBaseCut::AliEventBaseCut(Double_t min, Double_t max, EEventCutProperty p
 
 Bool_t AliEventBaseCut::Rejected(AliAOD* aod) const
 {
-  if ( (GetValue(aod) < fMin) || (GetValue(aod) > fMax) ) return kTRUE;
+//Checks if value is in the range,
+// returns true if it is in the range, false otherwise
+  Double_t v = GetValue(aod);
+//  Info("Rejected","Value %f Min %f Max %f",v,fMin,fMax);
+  if ( ( v < fMin) || ( v > fMax) ) return kTRUE;
   return kFALSE;
 }
 /**********************************************************/