CMS 3D CMS Logo

Public Member Functions | Private Attributes

egHLT::EgHLTDQMVarCut< T > Struct Template Reference

#include <EgHLTDQMCut.h>

Inheritance diagram for egHLT::EgHLTDQMVarCut< T >:
egHLT::EgHLTDQMCut< T >

List of all members.

Public Member Functions

EgHLTDQMCut< T > * clone () const
 EgHLTDQMVarCut (int cutsToPass, int(T::*cutCodeFunc)() const)
bool pass (const T &obj, const OffEvt &evt) const
 ~EgHLTDQMVarCut ()

Private Attributes

int(T::* cutCodeFunc_ )() const
int cutsToPass_

Detailed Description

template<class T>
struct egHLT::EgHLTDQMVarCut< T >

Definition at line 44 of file EgHLTDQMCut.h.


Constructor & Destructor Documentation

template<class T >
egHLT::EgHLTDQMVarCut< T >::EgHLTDQMVarCut ( int  cutsToPass,
int(T::*)() const  cutCodeFunc 
) [inline]

Definition at line 50 of file EgHLTDQMCut.h.

Referenced by egHLT::EgHLTDQMVarCut< T >::clone().

:cutsToPass_(cutsToPass),cutCodeFunc_(cutCodeFunc){}
template<class T >
egHLT::EgHLTDQMVarCut< T >::~EgHLTDQMVarCut ( ) [inline]

Definition at line 51 of file EgHLTDQMCut.h.

{}

Member Function Documentation

template<class T >
EgHLTDQMCut<T>* egHLT::EgHLTDQMVarCut< T >::clone ( void  ) const [inline, virtual]

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 54 of file EgHLTDQMCut.h.

References egHLT::EgHLTDQMVarCut< T >::EgHLTDQMVarCut().

{return new EgHLTDQMVarCut(*this);} //default copy constructor is fine
template<class T >
bool egHLT::EgHLTDQMVarCut< T >::pass ( const T &  obj,
const OffEvt evt 
) const [virtual]

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 64 of file EgHLTDQMCut.h.

  {
    if(((obj.*cutCodeFunc_)() & cutsToPass_)==0) return true;
    else return false;
  }

Member Data Documentation

template<class T >
int(T::* egHLT::EgHLTDQMVarCut< T >::cutCodeFunc_)() const [private]

Definition at line 47 of file EgHLTDQMCut.h.

template<class T >
int egHLT::EgHLTDQMVarCut< T >::cutsToPass_ [private]

Definition at line 46 of file EgHLTDQMCut.h.