CMS 3D CMS Logo

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

#include <EgHLTDQMCut.h>

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

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 OffEvt &evt) const
 
 ~EgEvtTrigCut ()=default
 
- Public Member Functions inherited from egHLT::EgHLTDQMCut< T >
 EgHLTDQMCut ()=default
 
virtual ~EgHLTDQMCut ()=default
 

Private Attributes

TrigCodes::TrigBitSet bitsToPass_
 
CutLogic passLogic_
 

Additional Inherited Members

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

Detailed Description

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

Definition at line 210 of file EgHLTDQMCut.h.

Member Enumeration Documentation

◆ CutLogic

template<class T >
enum egHLT::EgEvtTrigCut::CutLogic
Enumerator
AND 
OR 

Definition at line 212 of file EgHLTDQMCut.h.

212 { AND, OR };

Constructor & Destructor Documentation

◆ EgEvtTrigCut()

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

Definition at line 220 of file EgHLTDQMCut.h.

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

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

◆ ~EgEvtTrigCut()

template<class T >
egHLT::EgEvtTrigCut< T >::~EgEvtTrigCut ( )
default

Member Function Documentation

◆ clone()

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

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 225 of file EgHLTDQMCut.h.

225 { return new EgEvtTrigCut(*this); }

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

◆ pass()

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

Implements egHLT::EgHLTDQMCut< T >.

Definition at line 229 of file EgHLTDQMCut.h.

229  {
230  TrigCodes::TrigBitSet passMasked = bitsToPass_ & evt.evtTrigBits();
231  return passLogic_ == AND ? passMasked == bitsToPass_ : passMasked != 0x0;
232  }

References egHLT::OffEvt::evtTrigBits().

Member Data Documentation

◆ bitsToPass_

template<class T >
TrigCodes::TrigBitSet egHLT::EgEvtTrigCut< T >::bitsToPass_
private

Definition at line 216 of file EgHLTDQMCut.h.

◆ passLogic_

template<class T >
CutLogic egHLT::EgEvtTrigCut< T >::passLogic_
private

Definition at line 217 of file EgHLTDQMCut.h.

egHLT::EgEvtTrigCut::EgEvtTrigCut
EgEvtTrigCut(TrigCodes::TrigBitSet bitsToPass, CutLogic passLogic=OR)
Definition: EgHLTDQMCut.h:220
egHLT::TrigCodes::TrigBitSet
std::bitset< maxNrBits_ > TrigBitSet
Definition: EgHLTTrigCodes.h:23
egHLT::EgEvtTrigCut::bitsToPass_
TrigCodes::TrigBitSet bitsToPass_
Definition: EgHLTDQMCut.h:216
egHLT::EgEvtTrigCut::OR
Definition: EgHLTDQMCut.h:212
egHLT::EgEvtTrigCut::AND
Definition: EgHLTDQMCut.h:212
egHLT::EgEvtTrigCut::passLogic_
CutLogic passLogic_
Definition: EgHLTDQMCut.h:217