]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliEventBaseCut.cxx
Using GRP instead of local setters
[u/mrichter/AliRoot.git] / ANALYSIS / AliEventBaseCut.cxx
index d209305bc05dd370f347f8bee5e699411ad183a4..d0c70680f1281dc8c3289d314545682df03b85e1 100644 (file)
@@ -30,9 +30,13 @@ AliEventBaseCut::AliEventBaseCut(Double_t min, Double_t max, EEventCutProperty p
 }
 /**********************************************************/
 
-Bool_t AliEventBaseCut::Pass(AliAOD* aod) const
+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;
 }
 /**********************************************************/