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

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

Inheritance diagram for MFilterInInterval:

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
 

Detailed Description

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

Author
C. Tomei

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

Member Function Documentation

◆ Filter()

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.

◆ GetCuts()

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

Get cuts from config file.

Definition at line 16 of file MFilterInInterval.cc.

References Q_DOUBLE_DEFAULT.

Member Data Documentation

◆ fIsWarned

bool MFilterInInterval::fIsWarned
private

Definition at line 64 of file MFilterInInterval.hh.

◆ fMaxValue

double MFilterInInterval::fMaxValue
private

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

Definition at line 62 of file MFilterInInterval.hh.

◆ fMinValue

double MFilterInInterval::fMinValue
private

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

Definition at line 59 of file MFilterInInterval.hh.

◆ fVariableLabel

Diana::QEventLabel MFilterInInterval::fVariableLabel
private

Label identifying the variable to be filtered.

Definition at line 56 of file MFilterInInterval.hh.


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