Diana Software
Public Member Functions | Private Attributes | List of all members
MFilterInIntervalI Class Reference

Generic module to filter an int variable withing a range [min, max], inclusive. More...

Inheritance diagram for MFilterInIntervalI:

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...
 

Detailed Description

Generic module to filter an int variable withing a range [min, max], inclusive.

Author
J. Cushman

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

Definition at line 44 of file MFilterInIntervalI.hh.

Member Function Documentation

◆ Filter()

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.

◆ GetCuts()

void MFilterInIntervalI::GetCuts ( const Diana::QEvent &  ev)

Get cuts from config file.

Definition at line 16 of file MFilterInIntervalI.cc.

References Q_INT_DEFAULT.

Member Data Documentation

◆ fError

bool MFilterInIntervalI::fError
private

Whether there is an error (if there is an error, nothing will be filtered)

Definition at line 64 of file MFilterInIntervalI.hh.

◆ fMaxValue

int MFilterInIntervalI::fMaxValue
private

Maximum value for the variable (if not provided no upper limit is applied)

Definition at line 61 of file MFilterInIntervalI.hh.

◆ fMinValue

int MFilterInIntervalI::fMinValue
private

Minimum value for the variable (if not provided no lower limit is applied)

Definition at line 58 of file MFilterInIntervalI.hh.

◆ fVariableLabel

Diana::QEventLabel MFilterInIntervalI::fVariableLabel
private

Label identifying the variable to be filtered.

Definition at line 55 of file MFilterInIntervalI.hh.


The documentation for this class was generated from the following files: