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

Select events by validity of a QObject. More...

Inheritance diagram for MFilterValidity:

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
 

Detailed Description

Select events by validity of a QObject.

Author
batman

This filter select events with a valid QObject.

Definition at line 36 of file MFilterValidity.hh.

Member Function Documentation

◆ Filter()

bool MFilterValidity::Filter ( const Diana::QEvent &  ev)

return true if ev passes the cuts

Definition at line 17 of file MFilterValidity.cc.

References QEvent::Get(), and QHandle< T >::IsValid().

◆ GetCuts()

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

Get cuts from config file.

Definition at line 11 of file MFilterValidity.cc.

References Q_STRING_DEFAULT, and QEvent::RequireByLabel().

Member Data Documentation

◆ fVariableLabel

Diana::QEventLabel MFilterValidity::fVariableLabel
private

Definition at line 48 of file MFilterValidity.hh.


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