![]() |
Diana Software
|
Generic module to filter a double variable withing a range [min, max], inclusive. More...
Public Member Functions | |
| void | GetCuts (const Diana::QEvent &ev) |
| Get cuts from config file. More... | |
| bool | Filter (const Diana::QEvent &ev) |
| return true if ev passes the cuts More... | |
Private Attributes | |
| Diana::QEventLabel | fVariableLabel |
| Label identifying the variable to be filtered. More... | |
| double | fMinValue |
| Minimum value for the variable (if not provided no lower limit is applied) More... | |
| double | fMaxValue |
| Maximum value for the variable (if not provided no upper limit is applied) More... | |
| bool | fIsWarned |
Generic module to filter a double variable withing a range [min, max], inclusive.
Minimum and maximum values for the variable are read from the cfg If no minimum value is specified no lower limit is applied If no maximum value is specified no upper limit is applied
filter FilterInInterval verbosity = info enable = true VariableLabel = ApplyCalibration@Energy MinValue = 2600 MaxValue = 2630 endmod
Definition at line 44 of file MFilterInInterval.hh.
| bool MFilterInInterval::Filter | ( | const Diana::QEvent & | ev | ) |
return true if ev passes the cuts
Definition at line 32 of file MFilterInInterval.cc.
References Q_DOUBLE_DEFAULT.
| void MFilterInInterval::GetCuts | ( | const Diana::QEvent & | ev | ) |
Get cuts from config file.
Definition at line 16 of file MFilterInInterval.cc.
References Q_DOUBLE_DEFAULT.
|
private |
Definition at line 64 of file MFilterInInterval.hh.
|
private |
Maximum value for the variable (if not provided no upper limit is applied)
Definition at line 62 of file MFilterInInterval.hh.
|
private |
Minimum value for the variable (if not provided no lower limit is applied)
Definition at line 59 of file MFilterInInterval.hh.
|
private |
Label identifying the variable to be filtered.
Definition at line 56 of file MFilterInInterval.hh.