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

Filter a main QEvent using a QBool variable in neighbours. More...

Inheritance diagram for MFilterWithNeighboursResult:

Public Member Functions

void GetCuts (const Diana::QEvent &ev)
 Get cuts from config file. More...
 
bool Filter (const Diana::QEvent &ev, const Diana::QEventList &neigh)
 return true if ev passes the cuts More...
 

Private Types

enum  Mode { M_ALL , M_ONE }
 filtering modes More...
 

Private Attributes

Diana::QEventLabel fBoolLabel
 label of the QBool in QEvent More...
 
Mode fMode
 filtering mode More...
 

Detailed Description

Filter a main QEvent using a QBool variable in neighbours.

Author
Marco Vignati

MFilterWithNeighboursResult can be used to retrive a QBool from neighbours events, and use it to filter the main event. By default (Mode = ALL) if all neighbours have the QBool set to true, the main event passes. If Mode = ONE the main event passes if at least one neighbour has the QBool set to true. See also MFilterResult.

Definition at line 39 of file MFilterWithNeighboursResult.hh.

Member Enumeration Documentation

◆ Mode

filtering modes

Enumerator
M_ALL 
M_ONE 

ALL neghbours pass the cut

Definition at line 54 of file MFilterWithNeighboursResult.hh.

Member Function Documentation

◆ Filter()

bool MFilterWithNeighboursResult::Filter ( const Diana::QEvent &  ev,
const Diana::QEventList &  neigh 
)

return true if ev passes the cuts

Definition at line 23 of file MFilterWithNeighboursResult.cc.

References QEventList::Empty(), and QEventList::Size().

◆ GetCuts()

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

Get cuts from config file.

Definition at line 10 of file MFilterWithNeighboursResult.cc.

Member Data Documentation

◆ fBoolLabel

Diana::QEventLabel MFilterWithNeighboursResult::fBoolLabel
private

label of the QBool in QEvent

Definition at line 52 of file MFilterWithNeighboursResult.hh.

◆ fMode

Mode MFilterWithNeighboursResult::fMode
private

filtering mode

Definition at line 59 of file MFilterWithNeighboursResult.hh.


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