CMS 3D CMS Logo

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

References GetRecoTauVFromDQM_MC_cff::obj, and egHLT::EgHLTDQMCut< T >::pass().

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 ( )
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 84 of file EgHLTDQMCut.h.

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
overridevirtual

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.