#include <EcalTBTDCSample.h>
Public Member Functions | |
EcalTBTDCSample () | |
EcalTBTDCSample (uint32_t data) | |
EcalTBTDCSample (unsigned int tdcChan, unsigned int tdcVal) | |
uint32_t | operator() () |
for streaming | |
uint32_t | raw () const |
get the raw word | |
unsigned int | tdcChannel () const |
get the gainId (8 bits) | |
unsigned int | tdcValue () const |
get the ADC sample (24 bits) | |
Private Attributes | |
uint32_t | theSample |
Simple container packer/unpacker for a single sample from the TB TDC raw data
$Id:
Definition at line 15 of file EcalTBTDCSample.h.
EcalTBTDCSample::EcalTBTDCSample | ( | ) | [inline] |
EcalTBTDCSample::EcalTBTDCSample | ( | uint32_t | data | ) | [inline] |
EcalTBTDCSample::EcalTBTDCSample | ( | unsigned int | tdcChan, |
unsigned int | tdcVal | ||
) |
Definition at line 4 of file EcalTBTDCSample.cc.
References theSample.
{ theSample=(tdcVal&0xFFFFFF) | ((tdcChan&0xFF)<<24); }
uint32_t EcalTBTDCSample::operator() | ( | ) | [inline] |
for streaming
Definition at line 28 of file EcalTBTDCSample.h.
References theSample.
{ return theSample; }
uint32_t EcalTBTDCSample::raw | ( | ) | const [inline] |
get the raw word
Definition at line 22 of file EcalTBTDCSample.h.
References theSample.
{ return theSample; }
unsigned int EcalTBTDCSample::tdcChannel | ( | ) | const [inline] |
get the gainId (8 bits)
Definition at line 26 of file EcalTBTDCSample.h.
References theSample.
Referenced by operator<<().
{ return (theSample>>24)&0xFF; }
unsigned int EcalTBTDCSample::tdcValue | ( | ) | const [inline] |
get the ADC sample (24 bits)
Definition at line 24 of file EcalTBTDCSample.h.
References theSample.
Referenced by operator<<().
{ return theSample&0xFFFFFF; }
uint32_t EcalTBTDCSample::theSample [private] |
Definition at line 31 of file EcalTBTDCSample.h.
Referenced by EcalTBTDCSample(), operator()(), raw(), tdcChannel(), and tdcValue().