CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Attributes
reco::EgammaTrigger Class Reference

#include <DataFormats/EgammaReco/interface/EgammaTrigger.h>

Public Member Functions

 EgammaTrigger ()
 default constructor More...
 
 EgammaTrigger (bool, bool, bool, bool)
 constructor from boolean values More...
 
unsigned char l1word () const
 return the trigger work More...
 
template<unsigned char L1>
bool match ()
 
template<unsigned char L1>
void set ()
 

Private Attributes

unsigned char l1word_
 trigger work (packed). Only 4 bits are used. More...
 

Detailed Description

Egamma trigger bit set

Author
Luca Lista, INFN

Definition at line 29 of file EgammaTrigger.h.

Constructor & Destructor Documentation

◆ EgammaTrigger() [1/2]

reco::EgammaTrigger::EgammaTrigger ( )
inline

default constructor

Definition at line 32 of file EgammaTrigger.h.

32 : l1word_(0) {}
unsigned char l1word_
trigger work (packed). Only 4 bits are used.
Definition: EgammaTrigger.h:56

◆ EgammaTrigger() [2/2]

EgammaTrigger::EgammaTrigger ( bool  matchL1Single,
bool  matchL1Double,
bool  matchL1RelaxedDouble,
bool  matchIsolatedL1 
)

constructor from boolean values

Definition at line 4 of file EgammaTrigger.cc.

References reco::egamma::IsolatedL1, reco::egamma::L1Double, reco::egamma::L1RelaxedDouble, reco::egamma::L1Single, and l1word_.

5  : l1word_(0) {
6  if (matchL1Single)
8  if (matchL1Double)
10  if (matchL1RelaxedDouble)
12  if (matchIsolatedL1)
14 }
unsigned char l1word_
trigger work (packed). Only 4 bits are used.
Definition: EgammaTrigger.h:56

Member Function Documentation

◆ l1word()

unsigned char reco::EgammaTrigger::l1word ( ) const
inline

return the trigger work

Definition at line 52 of file EgammaTrigger.h.

References l1word_.

52 { return l1word_; }
unsigned char l1word_
trigger work (packed). Only 4 bits are used.
Definition: EgammaTrigger.h:56

◆ match()

template<unsigned char L1>
bool reco::EgammaTrigger::match ( )
inline

returns the trigger bit at positon L1 (L1 = 0, ..., 3) L1 couls be one of the enumerator defined in egamma namespace

Definition at line 40 of file EgammaTrigger.h.

References l1word_.

40  {
42  }
unsigned char l1word_
trigger work (packed). Only 4 bits are used.
Definition: EgammaTrigger.h:56

◆ set()

template<unsigned char L1>
void reco::EgammaTrigger::set ( )
inline

sets to 1 the trigger bit at positon L1 (L1 = 0, ..., 3) L1 couls be one of the enumerator defined in egamma namespace

Definition at line 47 of file EgammaTrigger.h.

References l1word_.

47  {
49  }
unsigned char l1word_
trigger work (packed). Only 4 bits are used.
Definition: EgammaTrigger.h:56

Member Data Documentation

◆ l1word_

unsigned char reco::EgammaTrigger::l1word_
private

trigger work (packed). Only 4 bits are used.

Definition at line 56 of file EgammaTrigger.h.

Referenced by EgammaTrigger(), l1word(), match(), and set().