12 using namespace Diana;
21 fVariableLabel = GetString(
"VariableLabel",
"");
29 ev.RequireByLabel<
QDouble>(fVariableLabel);
35 const double variable = ev.GetByLabel<
QDouble>(fVariableLabel);
43 if (variable<=fMaxValue) passed =
true;
48 if (variable>=fMinValue) passed =
true;
53 Warn(
"No range specified. The variable will not be filtered");
59 Warn(
"Wrong Range (Max %f <= Min %f). The variable will not be filtered",fMaxValue,fMinValue);
64 if (variable>fMinValue && variable<fMaxValue) passed =
true;
#define REGISTER_MODULE(clazz)
Generic module to filter a double 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...