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