test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | 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 >

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 ()
 
- Public Member Functions inherited from egHLT::EgHLTDQMCut< T >
 EgHLTDQMCut ()
 
virtual ~EgHLTDQMCut ()
 

Private Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from egHLT::EgHLTDQMCut< T >
 EgHLTDQMCut (const EgHLTDQMCut &rhs)
 

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().

80 :cutCodeFunc_(cutCodeFunc),key_(key),cutsNotToMask_(cutsNotToMask){}
int(T::* cutCodeFunc_)(const Key &) const
Definition: EgHLTDQMCut.h:75
template<class T, class Key>
egHLT::EgHLTDQMUserVarCut< T, Key >::~EgHLTDQMUserVarCut ( )
inline

Definition at line 81 of file EgHLTDQMCut.h.

81 {}

Member Function Documentation

template<class T, class Key>
EgHLTDQMCut<T>* egHLT::EgHLTDQMUserVarCut< T, Key >::clone ( void  ) const
inlinevirtual

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 84 of file EgHLTDQMCut.h.

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

84 {return new EgHLTDQMUserVarCut(*this);} //default copy constructor is fine
EgHLTDQMUserVarCut(int(T::*cutCodeFunc)(const Key &) const, const Key &key, int cutsNotToMask=~0x0)
Definition: EgHLTDQMCut.h:80
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.

89  {
90  if(((obj.*cutCodeFunc_)(key_) & cutsNotToMask_)==0) return true;
91  else return false;
92  }
int(T::* cutCodeFunc_)(const Key &) const
Definition: EgHLTDQMCut.h:75

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.