CMS 3D CMS Logo

EgHLTDQMVarCut< T > Struct Template Reference

#include <DQMOffline/Trigger/interface/EgHLTDQMCut.h>

Inheritance diagram for EgHLTDQMVarCut< T >:

EgHLTDQMCut< T >

List of all members.

Public Member Functions

EgHLTDQMCut< T > * clone () const
 EgHLTDQMVarCut (int cutsToPass, int(T::*cutCodeFunc)() const)
bool pass (const T &obj, const EgHLTOffData &evtData) const
 ~EgHLTDQMVarCut ()

Private Attributes

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


Detailed Description

template<class T>
struct EgHLTDQMVarCut< T >

Definition at line 41 of file EgHLTDQMCut.h.


Constructor & Destructor Documentation

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

Definition at line 47 of file EgHLTDQMCut.h.

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

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

template<class T>
EgHLTDQMVarCut< T >::~EgHLTDQMVarCut (  )  [inline]

Definition at line 48 of file EgHLTDQMCut.h.

00048 {}


Member Function Documentation

template<class T>
EgHLTDQMCut<T>* EgHLTDQMVarCut< T >::clone ( void   )  const [inline, virtual]

Implements EgHLTDQMCut< T >.

Definition at line 51 of file EgHLTDQMCut.h.

References EgHLTDQMVarCut< T >::EgHLTDQMVarCut().

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

template<class T>
bool EgHLTDQMVarCut< T >::pass ( const T &  obj,
const EgHLTOffData evtData 
) const [inline, virtual]

Implements EgHLTDQMCut< T >.

Definition at line 61 of file EgHLTDQMCut.h.

References EgHLTDQMVarCut< T >::cutCodeFunc_, and EgHLTDQMVarCut< T >::cutsToPass_.

00062 {
00063   if(((obj.*cutCodeFunc_)() & cutsToPass_)==0) return true;
00064   else return false;
00065 }


Member Data Documentation

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

Referenced by EgHLTDQMVarCut< T >::pass().

template<class T>
int EgHLTDQMVarCut< T >::cutsToPass_ [private]

Definition at line 43 of file EgHLTDQMCut.h.

Referenced by EgHLTDQMVarCut< T >::pass().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:20:11 2009 for CMSSW by  doxygen 1.5.4