Diana Software
MFilterInInterval.hh
Go to the documentation of this file.
1 #ifndef _M_FILTERININTERVAL_HH_
2 #define _M_FILTERININTERVAL_HH_
3 
39 #include "QFilter.hh"
40 #include <set>
41 #include <string>
42 #include "QEventLabel.hh"
43 
44 class MFilterInInterval : public Diana::QFilter {
45 
46  public:
48  void GetCuts(const Diana::QEvent& ev);
49 
51  bool Filter(const Diana::QEvent& ev);
52 
53  private:
54 
56  Diana::QEventLabel fVariableLabel;
57 
59  double fMinValue;
60 
62  double fMaxValue;
63 
64  bool fIsWarned;
65 };
66 
67 #endif
68 
Generic module to filter a double variable withing a range [min, max], inclusive.
double fMinValue
Minimum value for the variable (if not provided no lower limit is applied)
bool Filter(const Diana::QEvent &ev)
return true if ev passes the cuts
double fMaxValue
Maximum value for the variable (if not provided no upper limit is applied)
void GetCuts(const Diana::QEvent &ev)
Get cuts from config file.
Diana::QEventLabel fVariableLabel
Label identifying the variable to be filtered.