#include <EcalPseudoStripInputSample.h>
Public Member Functions | |
EcalPseudoStripInputSample () | |
EcalPseudoStripInputSample (uint16_t data) | |
EcalPseudoStripInputSample (int pseudoStripInput, bool finegrain) | |
bool | fineGrain () const |
get the fine-grain bit (1 bit, the 13-th) | |
uint16_t | operator() () |
for streaming | |
int | pseudoStripInput () const |
get the pseudoStrip Input amplitude (12 bits) | |
uint16_t | raw () const |
get the raw word | |
void | setValue (uint16_t data) |
Set data. | |
Private Attributes | |
uint16_t | theSample |
$Id : $
Definition at line 15 of file EcalPseudoStripInputSample.h.
EcalPseudoStripInputSample::EcalPseudoStripInputSample | ( | ) |
Definition at line 4 of file EcalPseudoStripInputSample.cc.
: theSample(0) { }
EcalPseudoStripInputSample::EcalPseudoStripInputSample | ( | uint16_t | data | ) |
Definition at line 5 of file EcalPseudoStripInputSample.cc.
EcalPseudoStripInputSample::EcalPseudoStripInputSample | ( | int | pseudoStripInput, |
bool | finegrain | ||
) |
Definition at line 7 of file EcalPseudoStripInputSample.cc.
References theSample.
{ theSample=(pseudoStripInput&0xFFF)|((fineGrain)?(0x1000):(0)); }
bool EcalPseudoStripInputSample::fineGrain | ( | ) | const [inline] |
get the fine-grain bit (1 bit, the 13-th)
Definition at line 28 of file EcalPseudoStripInputSample.h.
References theSample.
Referenced by operator<<().
{ return (theSample&0x1000)!=0; }
uint16_t EcalPseudoStripInputSample::operator() | ( | ) | [inline] |
for streaming
Definition at line 31 of file EcalPseudoStripInputSample.h.
References theSample.
{ return theSample; }
int EcalPseudoStripInputSample::pseudoStripInput | ( | ) | const [inline] |
get the pseudoStrip Input amplitude (12 bits)
Definition at line 26 of file EcalPseudoStripInputSample.h.
References theSample.
Referenced by operator<<().
{ return theSample&0xFFF; }
uint16_t EcalPseudoStripInputSample::raw | ( | ) | const [inline] |
get the raw word
Definition at line 24 of file EcalPseudoStripInputSample.h.
References theSample.
{ return theSample; }
void EcalPseudoStripInputSample::setValue | ( | uint16_t | data | ) | [inline] |
Set data.
Definition at line 22 of file EcalPseudoStripInputSample.h.
References AlCaHLTBitMon_QueryRunRegistry::data, and theSample.
uint16_t EcalPseudoStripInputSample::theSample [private] |
Definition at line 34 of file EcalPseudoStripInputSample.h.
Referenced by EcalPseudoStripInputSample(), fineGrain(), operator()(), pseudoStripInput(), raw(), and setValue().