#include <DataFormats/EcalDigi/interface/EcalTriggerPrimitiveSample.h>
Public Member Functions | |
int | compressedEt () const |
get the encoded/compressed Et (8 bits) | |
EcalTriggerPrimitiveSample (int encodedEt, bool finegrain, int triggerFlag) | |
EcalTriggerPrimitiveSample (uint16_t data) | |
EcalTriggerPrimitiveSample () | |
bool | fineGrain () const |
get the fine-grain bit (1 bit) | |
uint16_t | operator() () |
for streaming | |
uint16_t | raw () const |
get the raw word | |
void | setValue (uint16_t data) |
Set data. | |
int | ttFlag () const |
get the Trigger tower Flag (3 bits) | |
Private Attributes | |
uint16_t | theSample |
Definition at line 15 of file EcalTriggerPrimitiveSample.h.
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample | ( | ) |
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample | ( | uint16_t | data | ) |
int EcalTriggerPrimitiveSample::compressedEt | ( | ) | const [inline] |
get the encoded/compressed Et (8 bits)
Definition at line 26 of file EcalTriggerPrimitiveSample.h.
References theSample.
Referenced by operator<<().
00026 { return theSample&0xFF; }
bool EcalTriggerPrimitiveSample::fineGrain | ( | ) | const [inline] |
get the fine-grain bit (1 bit)
Definition at line 28 of file EcalTriggerPrimitiveSample.h.
References theSample.
Referenced by operator<<().
00028 { return (theSample&0x100)!=0; }
uint16_t EcalTriggerPrimitiveSample::operator() | ( | ) | [inline] |
for streaming
Definition at line 33 of file EcalTriggerPrimitiveSample.h.
References theSample.
00033 { return theSample; }
uint16_t EcalTriggerPrimitiveSample::raw | ( | ) | const [inline] |
get the raw word
Definition at line 24 of file EcalTriggerPrimitiveSample.h.
References theSample.
Referenced by L1EmulBias::ModifyCollection().
00024 { return theSample; }
void EcalTriggerPrimitiveSample::setValue | ( | uint16_t | data | ) | [inline] |
int EcalTriggerPrimitiveSample::ttFlag | ( | ) | const [inline] |
get the Trigger tower Flag (3 bits)
Definition at line 30 of file EcalTriggerPrimitiveSample.h.
References theSample.
Referenced by operator<<().
00030 { return (theSample>>9)&0x7; }
uint16_t EcalTriggerPrimitiveSample::theSample [private] |
Definition at line 36 of file EcalTriggerPrimitiveSample.h.
Referenced by compressedEt(), EcalTriggerPrimitiveSample(), fineGrain(), operator()(), raw(), setValue(), and ttFlag().