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::EgHLTDQMVarCut< T > Struct Template Reference

#include <EgHLTDQMCut.h>

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

Public Member Functions

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

Private Attributes

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

Additional Inherited Members

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

Detailed Description

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

Definition at line 44 of file EgHLTDQMCut.h.

Constructor & Destructor Documentation

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

Definition at line 50 of file EgHLTDQMCut.h.

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

50 :cutsToPass_(cutsToPass),cutCodeFunc_(cutCodeFunc){}
int(T::* cutCodeFunc_)() const
Definition: EgHLTDQMCut.h:47
template<class T >
egHLT::EgHLTDQMVarCut< T >::~EgHLTDQMVarCut ( )
inline

Definition at line 51 of file EgHLTDQMCut.h.

51 {}

Member Function Documentation

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

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 54 of file EgHLTDQMCut.h.

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

54 {return new EgHLTDQMVarCut(*this);} //default copy constructor is fine
EgHLTDQMVarCut(int cutsToPass, int(T::*cutCodeFunc)() const)
Definition: EgHLTDQMCut.h:50
template<class T >
bool egHLT::EgHLTDQMVarCut< T >::pass ( const T obj,
const OffEvt evt 
) const
virtual

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 64 of file EgHLTDQMCut.h.

65  {
66  if(((obj.*cutCodeFunc_)() & cutsToPass_)==0) return true;
67  else return false;
68  }
int(T::* cutCodeFunc_)() const
Definition: EgHLTDQMCut.h:47

Member Data Documentation

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

Definition at line 47 of file EgHLTDQMCut.h.

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

Definition at line 46 of file EgHLTDQMCut.h.