CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 override
 
 EgHLTDQMUserVarCut (int(T::*cutCodeFunc)(const Key &) const, const Key &key, int cutsNotToMask=~0x0)
 
bool pass (const T &obj, const OffEvt &evt) const override
 
 ~EgHLTDQMUserVarCut () override=default
 
- Public Member Functions inherited from egHLT::EgHLTDQMCut< T >
 EgHLTDQMCut ()=default
 
virtual ~EgHLTDQMCut ()=default
 

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)=default
 

Detailed Description

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

Definition at line 74 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 81 of file EgHLTDQMCut.h.

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

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

Member Function Documentation

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

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 86 of file EgHLTDQMCut.h.

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

86 { 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:81
template<class T , class Key >
bool egHLT::EgHLTDQMUserVarCut< T, Key >::pass ( const T obj,
const OffEvt evt 
) const
overridevirtual

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 90 of file EgHLTDQMCut.h.

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

Member Data Documentation

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

Definition at line 76 of file EgHLTDQMCut.h.

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

Definition at line 78 of file EgHLTDQMCut.h.

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

Definition at line 77 of file EgHLTDQMCut.h.