![]() |
Diana Software
|
Generic module to filter an int 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... | |
| int | fMinValue |
| Minimum value for the variable (if not provided no lower limit is applied) More... | |
| int | fMaxValue |
| Maximum value for the variable (if not provided no upper limit is applied) More... | |
| bool | fError |
| Whether there is an error (if there is an error, nothing will be filtered) More... | |
Generic module to filter an int 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 FilterInIntervalI verbosity = info enable = true VariableLabel = DAQ@SlowConfigId MinValue = 2 MaxValue = 4 endmod
Definition at line 44 of file MFilterInIntervalI.hh.
| bool MFilterInIntervalI::Filter | ( | const Diana::QEvent & | ev | ) |
return true if ev passes the cuts
Definition at line 39 of file MFilterInIntervalI.cc.
References Q_INT_DEFAULT.
| void MFilterInIntervalI::GetCuts | ( | const Diana::QEvent & | ev | ) |
Get cuts from config file.
Definition at line 16 of file MFilterInIntervalI.cc.
References Q_INT_DEFAULT.
|
private |
Whether there is an error (if there is an error, nothing will be filtered)
Definition at line 64 of file MFilterInIntervalI.hh.
|
private |
Maximum value for the variable (if not provided no upper limit is applied)
Definition at line 61 of file MFilterInIntervalI.hh.
|
private |
Minimum value for the variable (if not provided no lower limit is applied)
Definition at line 58 of file MFilterInIntervalI.hh.
|
private |
Label identifying the variable to be filtered.
Definition at line 55 of file MFilterInIntervalI.hh.