CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
egHLT::EgHLTDQMVarCut< T > Struct Template Reference

#include <EgHLTDQMCut.h>

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

Public Member Functions

EgHLTDQMCut< T > * clone () const override
 
 EgHLTDQMVarCut (int cutsToPass, int(T::*cutCodeFunc)() const)
 
bool pass (const T &obj, const OffEvt &evt) const override
 
 ~EgHLTDQMVarCut () override=default
 
- Public Member Functions inherited from egHLT::EgHLTDQMCut< T >
 EgHLTDQMCut ()=default
 
virtual ~EgHLTDQMCut ()=default
 

Private Attributes

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

Additional Inherited Members

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

Detailed Description

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

Definition at line 43 of file EgHLTDQMCut.h.

Constructor & Destructor Documentation

◆ EgHLTDQMVarCut()

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

Definition at line 49 of file EgHLTDQMCut.h.

50  : cutsToPass_(cutsToPass), cutCodeFunc_(cutCodeFunc) {}

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

◆ ~EgHLTDQMVarCut()

template<class T >
egHLT::EgHLTDQMVarCut< T >::~EgHLTDQMVarCut ( )
overridedefault

Member Function Documentation

◆ clone()

template<class T >
EgHLTDQMCut<T>* egHLT::EgHLTDQMVarCut< T >::clone ( void  ) const
inlineoverridevirtual

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 54 of file EgHLTDQMCut.h.

54 { return new EgHLTDQMVarCut(*this); } //default copy constructor is fine

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

◆ pass()

template<class T >
bool egHLT::EgHLTDQMVarCut< T >::pass ( const T obj,
const OffEvt evt 
) const
overridevirtual

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 64 of file EgHLTDQMCut.h.

64  {
65  if (((obj.*cutCodeFunc_)() & cutsToPass_) == 0)
66  return true;
67  else
68  return false;
69  }

References getGTfromDQMFile::obj.

Member Data Documentation

◆ cutCodeFunc_

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

Definition at line 46 of file EgHLTDQMCut.h.

◆ cutsToPass_

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

Definition at line 45 of file EgHLTDQMCut.h.

egHLT::EgHLTDQMVarCut::cutsToPass_
int cutsToPass_
Definition: EgHLTDQMCut.h:45
egHLT::EgHLTDQMVarCut::EgHLTDQMVarCut
EgHLTDQMVarCut(int cutsToPass, int(T::*cutCodeFunc)() const)
Definition: EgHLTDQMCut.h:49
egHLT::EgHLTDQMVarCut::cutCodeFunc_
int(T::* cutCodeFunc_)() const
Definition: EgHLTDQMCut.h:46
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32