#include <DataFormats/EcalDigi/interface/EcalPseudoStripInputSample.h>
Public Member Functions | |
EcalPseudoStripInputSample (int pseudoStripInput, bool finegrain) | |
EcalPseudoStripInputSample (uint16_t data) | |
EcalPseudoStripInputSample () | |
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 |
Definition at line 15 of file EcalPseudoStripInputSample.h.
EcalPseudoStripInputSample::EcalPseudoStripInputSample | ( | ) |
EcalPseudoStripInputSample::EcalPseudoStripInputSample | ( | uint16_t | data | ) |
Definition at line 7 of file EcalPseudoStripInputSample.cc.
References theSample.
00007 { 00008 theSample=(pseudoStripInput&0xFFF)|((fineGrain)?(0x1000):(0)); 00009 }
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<<().
00028 { return (theSample&0x1000)!=0; }
uint16_t EcalPseudoStripInputSample::operator() | ( | ) | [inline] |
for streaming
Definition at line 31 of file EcalPseudoStripInputSample.h.
References theSample.
00031 { 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<<().
00026 { return theSample&0xFFF; }
uint16_t EcalPseudoStripInputSample::raw | ( | ) | const [inline] |
get the raw word
Definition at line 24 of file EcalPseudoStripInputSample.h.
References theSample.
00024 { return theSample; }
void EcalPseudoStripInputSample::setValue | ( | uint16_t | data | ) | [inline] |
uint16_t EcalPseudoStripInputSample::theSample [private] |
Definition at line 34 of file EcalPseudoStripInputSample.h.
Referenced by EcalPseudoStripInputSample(), fineGrain(), operator()(), pseudoStripInput(), raw(), and setValue().