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;
}
/**********************************************************/