CMS 3D CMS Logo

Public Member Functions | Private Attributes

egHLT::EgHLTDQMUserVarCut< T, Key > Struct Template Reference

#include <EgHLTDQMCut.h>

Inheritance diagram for egHLT::EgHLTDQMUserVarCut< T, Key >:
egHLT::EgHLTDQMCut< T >

List of all members.

Public Member Functions

EgHLTDQMCut< T > * clone () const
 EgHLTDQMUserVarCut (int(T::*cutCodeFunc)(const Key &) const, const Key &key, int cutsNotToMask=~0x0)
bool pass (const T &obj, const OffEvt &evt) const
 ~EgHLTDQMUserVarCut ()

Private Attributes

int(T::* cutCodeFunc_ )(const Key &) const
int cutsNotToMask_
const Key key_

Detailed Description

template<class T, class Key>
struct egHLT::EgHLTDQMUserVarCut< T, Key >

Definition at line 72 of file EgHLTDQMCut.h.


Constructor & Destructor Documentation

template<class T, class Key>
egHLT::EgHLTDQMUserVarCut< T, Key >::EgHLTDQMUserVarCut ( int(T::*)(const Key &) const  cutCodeFunc,
const Key &  key,
int  cutsNotToMask = ~0x0 
) [inline]

Definition at line 80 of file EgHLTDQMCut.h.

Referenced by egHLT::EgHLTDQMUserVarCut< T, Key >::clone().

:cutCodeFunc_(cutCodeFunc),key_(key),cutsNotToMask_(cutsNotToMask){}
template<class T, class Key>
egHLT::EgHLTDQMUserVarCut< T, Key >::~EgHLTDQMUserVarCut ( ) [inline]

Definition at line 81 of file EgHLTDQMCut.h.

{}

Member Function Documentation

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

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 84 of file EgHLTDQMCut.h.

References egHLT::EgHLTDQMUserVarCut< T, Key >::EgHLTDQMUserVarCut().

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

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 88 of file EgHLTDQMCut.h.

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

Member Data Documentation

template<class T, class Key>
int(T::* egHLT::EgHLTDQMUserVarCut< T, Key >::cutCodeFunc_)(const Key &) const [private]

Definition at line 75 of file EgHLTDQMCut.h.

template<class T, class Key>
int egHLT::EgHLTDQMUserVarCut< T, Key >::cutsNotToMask_ [private]

Definition at line 77 of file EgHLTDQMCut.h.

template<class T, class Key>
const Key egHLT::EgHLTDQMUserVarCut< T, Key >::key_ [private]

Definition at line 76 of file EgHLTDQMCut.h.