12 using namespace Diana;
20 fVariableLabel = GetString(
"VariableLabel",
"");
28 Error(
"No range specified. The variable (%s) will not be filtered", fVariableLabel.GetStringLabel().c_str());
32 Error(
"Bad range (max < min). The variable (%s) will not be filtered", fVariableLabel.GetStringLabel().c_str());
36 ev.RequireByLabel<
QInt>(fVariableLabel);
42 const int variable = ev.GetByLabel<
QInt>(fVariableLabel);
47 return variable <= fMaxValue;
49 return variable >= fMinValue;
51 return (variable >= fMinValue && variable <= fMaxValue);
#define REGISTER_MODULE(clazz)
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
base types wrapped into a QObject. Currently implemented types are QInt QDouble and QFloat....
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...