CMS 3D CMS Logo

EgEvtTrigCut< T > Struct Template Reference

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

Inheritance diagram for EgEvtTrigCut< T >:

EgHLTDQMCut< T >

List of all members.

Public Types

enum  CutLogic { AND, OR }

Public Member Functions

EgHLTDQMCut< T > * clone () const
 EgEvtTrigCut (TrigCodes::TrigBitSet bitsToPass, CutLogic passLogic=OR)
bool pass (const T &obj, const EgHLTOffData &evtData) const
 ~EgEvtTrigCut ()

Private Attributes

TrigCodes::TrigBitSet bitsToPass_
CutLogic passLogic_


Detailed Description

template<class T>
struct EgEvtTrigCut< T >

Definition at line 175 of file EgHLTDQMCut.h.


Member Enumeration Documentation

template<class T>
enum EgEvtTrigCut::CutLogic

Enumerator:
AND 
OR 

Definition at line 177 of file EgHLTDQMCut.h.

00177 {AND,OR};


Constructor & Destructor Documentation

template<class T>
EgEvtTrigCut< T >::EgEvtTrigCut ( TrigCodes::TrigBitSet  bitsToPass,
CutLogic  passLogic = OR 
) [inline]

Definition at line 184 of file EgHLTDQMCut.h.

00184 :bitsToPass_(bitsToPass),passLogic_(passLogic){}

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

Definition at line 185 of file EgHLTDQMCut.h.

00185 {}


Member Function Documentation

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

Implements EgHLTDQMCut< T >.

Definition at line 188 of file EgHLTDQMCut.h.

00188 {return new EgEvtTrigCut(*this);}

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

Implements EgHLTDQMCut< T >.

Definition at line 191 of file EgHLTDQMCut.h.

References EgEvtTrigCut< T >::AND, EgEvtTrigCut< T >::bitsToPass_, EgHLTOffData::evtTrigBits, and EgEvtTrigCut< T >::passLogic_.

00192 {
00193   TrigCodes::TrigBitSet passMasked = bitsToPass_&evtData.evtTrigBits();
00194   return passLogic_==AND ? passMasked==bitsToPass_ : passMasked!=0x0;
00195 }


Member Data Documentation

template<class T>
TrigCodes::TrigBitSet EgEvtTrigCut< T >::bitsToPass_ [private]

Definition at line 180 of file EgHLTDQMCut.h.

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

template<class T>
CutLogic EgEvtTrigCut< T >::passLogic_ [private]

Definition at line 181 of file EgHLTDQMCut.h.

Referenced by EgEvtTrigCut< 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