#include <DataFormats/EgammaReco/interface/EgammaTrigger.h>
Public Member Functions | |
EgammaTrigger (bool, bool, bool, bool) | |
constructor from boolean values | |
EgammaTrigger () | |
default constructor | |
unsigned char | l1word () const |
return the trigger work | |
template<unsigned char L1> | |
bool | match () |
returns the trigger bit at positon L1 (L1 = 0, . | |
template<unsigned char L1> | |
void | set () |
sets to 1 the trigger bit at positon L1 (L1 = 0, . | |
Private Attributes | |
unsigned char | l1word_ |
trigger work (packed). Only 4 bits are used. |
Definition at line 26 of file EgammaTrigger.h.
reco::EgammaTrigger::EgammaTrigger | ( | ) | [inline] |
EgammaTrigger::EgammaTrigger | ( | bool | matchL1Single, | |
bool | matchL1Double, | |||
bool | matchL1RelaxedDouble, | |||
bool | matchIsolatedL1 | |||
) |
constructor from boolean values
Definition at line 5 of file EgammaTrigger.cc.
References reco::egamma::IsolatedL1, reco::egamma::L1Double, reco::egamma::L1RelaxedDouble, reco::egamma::L1Single, and l1word_.
00006 : 00007 l1word_( 0 ) { 00008 if ( matchL1Single ) l1word_ |= 1 << egamma::L1Single; 00009 if ( matchL1Double ) l1word_ |= 1 << egamma::L1Double; 00010 if ( matchL1RelaxedDouble ) l1word_ |= 1 << egamma::L1RelaxedDouble; 00011 if ( matchIsolatedL1 ) l1word_ |= 1 << egamma::IsolatedL1; 00012 } }
unsigned char reco::EgammaTrigger::l1word | ( | ) | const [inline] |
return the trigger work
Definition at line 49 of file EgammaTrigger.h.
References l1word_.
00049 { return l1word_; }
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 37 of file EgammaTrigger.h.
References l1word_.
00037 { 00038 return l1word_ & egamma::mask<L1>::value; 00039 }
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 44 of file EgammaTrigger.h.
References l1word_.
00044 { 00045 l1word_ |= egamma::mask<L1>::value; 00046 }
unsigned char reco::EgammaTrigger::l1word_ [private] |
trigger work (packed). Only 4 bits are used.
Definition at line 53 of file EgammaTrigger.h.
Referenced by EgammaTrigger(), l1word(), match(), and set().