]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliEventBaseCut.cxx
AliITSMultReconstructor: correction for a shift in the phi of clusters, tracklets...
[u/mrichter/AliRoot.git] / ANALYSIS / AliEventBaseCut.cxx
index 07d0caa4a7d74e485f1dda3e754c03aeffdba69d..d0c70680f1281dc8c3289d314545682df03b85e1 100644 (file)
@@ -14,23 +14,29 @@ ClassImp(AliEventBaseCut)
 
 AliEventBaseCut::AliEventBaseCut():
  fMin(0.0),
- fMax(0.0)
+ fMax(0.0),
+ fProperty(kNone)
 {
 //ctor  
 }
 /**********************************************************/
 
-AliEventBaseCut::AliEventBaseCut(Double_t min, Double_t max):
+AliEventBaseCut::AliEventBaseCut(Double_t min, Double_t max, EEventCutProperty prop):
  fMin(min),
- fMax(max)
+ fMax(max),
+ fProperty(prop)
 {
  //ctor
 }
 /**********************************************************/
 
-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;
 }
 /**********************************************************/