#include <EcalTriggerPrimitiveSample.h>
Public Member Functions | |
int | compressedEt () const |
get the encoded/compressed Et (8 bits) | |
EcalTriggerPrimitiveSample (uint16_t data) | |
EcalTriggerPrimitiveSample (int encodedEt, bool finegrain, int stripFGVB, int triggerFlag) | |
EcalTriggerPrimitiveSample () | |
EcalTriggerPrimitiveSample (int encodedEt, bool finegrain, int triggerFlag) | |
bool | fineGrain () const |
get the fine-grain bit (1 bit) | |
int | l1aSpike () const |
uint16_t | operator() () |
for streaming | |
uint16_t | raw () const |
get the raw word | |
void | setValue (uint16_t data) |
Set data. | |
int | sFGVB () const |
int | ttFlag () const |
get the Trigger tower Flag (3 bits) | |
Private Attributes | |
uint16_t | theSample |
$Id : $
Definition at line 15 of file EcalTriggerPrimitiveSample.h.
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample | ( | ) |
Definition at line 5 of file EcalTriggerPrimitiveSample.cc.
: theSample(0) { }
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample | ( | uint16_t | data | ) |
Definition at line 6 of file EcalTriggerPrimitiveSample.cc.
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample | ( | int | encodedEt, |
bool | finegrain, | ||
int | triggerFlag | ||
) |
EcalTriggerPrimitiveSample::EcalTriggerPrimitiveSample | ( | int | encodedEt, |
bool | finegrain, | ||
int | stripFGVB, | ||
int | triggerFlag | ||
) |
Definition at line 13 of file EcalTriggerPrimitiveSample.cc.
References theSample.
int EcalTriggerPrimitiveSample::compressedEt | ( | ) | const [inline] |
get the encoded/compressed Et (8 bits)
Definition at line 27 of file EcalTriggerPrimitiveSample.h.
References theSample.
Referenced by operator<<().
{ return theSample&0xFF; }
bool EcalTriggerPrimitiveSample::fineGrain | ( | ) | const [inline] |
get the fine-grain bit (1 bit)
Definition at line 29 of file EcalTriggerPrimitiveSample.h.
References theSample.
Referenced by operator<<().
{ return (theSample&0x100)!=0; }
int EcalTriggerPrimitiveSample::l1aSpike | ( | ) | const [inline] |
Gets the L1A spike detection flag. Beware the flag is inverted. Deprecated, use instead sFGVB() method, whose name is less missleading
Definition at line 37 of file EcalTriggerPrimitiveSample.h.
References theSample.
{ return (theSample >>12) & 0x1; }
uint16_t EcalTriggerPrimitiveSample::operator() | ( | ) | [inline] |
for streaming
Definition at line 45 of file EcalTriggerPrimitiveSample.h.
References theSample.
{ return theSample; }
uint16_t EcalTriggerPrimitiveSample::raw | ( | ) | const [inline] |
get the raw word
Definition at line 25 of file EcalTriggerPrimitiveSample.h.
References theSample.
Referenced by L1EmulBias::ModifyCollection().
{ return theSample; }
void EcalTriggerPrimitiveSample::setValue | ( | uint16_t | data | ) | [inline] |
Set data.
Definition at line 23 of file EcalTriggerPrimitiveSample.h.
References AlCaHLTBitMon_QueryRunRegistry::data, and theSample.
int EcalTriggerPrimitiveSample::sFGVB | ( | ) | const [inline] |
Gets the "strip fine grain veto bit" (sFGVB) used as L1A spike detection
Definition at line 42 of file EcalTriggerPrimitiveSample.h.
References theSample.
Referenced by operator<<().
{ return (theSample >>12) & 0x1; }
int EcalTriggerPrimitiveSample::ttFlag | ( | ) | const [inline] |
get the Trigger tower Flag (3 bits)
Definition at line 31 of file EcalTriggerPrimitiveSample.h.
References theSample.
Referenced by operator<<().
{ return (theSample>>9)&0x7; }
uint16_t EcalTriggerPrimitiveSample::theSample [private] |
Definition at line 48 of file EcalTriggerPrimitiveSample.h.
Referenced by compressedEt(), EcalTriggerPrimitiveSample(), fineGrain(), l1aSpike(), operator()(), raw(), setValue(), sFGVB(), and ttFlag().