#include <EcalLiteDTUSample.h>
Public Member Functions | |
int | adc () const |
get the ADC sample (12 bits) More... | |
EcalLiteDTUSample () | |
EcalLiteDTUSample (uint16_t data) | |
EcalLiteDTUSample (int adc, int gainId) | |
int | gainId () const |
get the gainId (2 bits) More... | |
operator uint16_t () const | |
uint16_t | operator() () const |
for streaming More... | |
uint16_t | raw () const |
get the raw word More... | |
Private Attributes | |
uint16_t | theSample |
Simple container packer/unpacker for a single sample from the Lite_CATIA electronics
Definition at line 25 of file EcalLiteDTUSample.h.
|
inline |
|
inline |
EcalLiteDTUSample::EcalLiteDTUSample | ( | int | adc, |
int | gainId | ||
) |
Definition at line 4 of file EcalLiteDTUSample.cc.
References adc(), gainId(), ecalPh2::kAdcMask, ecalPh2::kGainIdMask, ecalPh2::NBITS, and theSample.
|
inline |
get the ADC sample (12 bits)
Definition at line 34 of file EcalLiteDTUSample.h.
References ecalPh2::kAdcMask, and theSample.
Referenced by EcalLiteDTUSample(), operator<<(), EcalUncalibRecHitPhase2WeightsProducer::produce(), and EcalEBPhase2Linearizer::setInput().
|
inline |
get the gainId (2 bits)
Definition at line 36 of file EcalLiteDTUSample.h.
References ecalPh2::kGainIdMask, ecalPh2::NBITS, and theSample.
Referenced by EcalLiteDTUSample(), operator<<(), EcalUncalibRecHitPhase2WeightsProducer::produce(), and EcalEBPhase2Linearizer::setInput().
|
inline |
|
inline |
|
inline |
get the raw word
Definition at line 32 of file EcalLiteDTUSample.h.
References theSample.
Referenced by EcalPhase2DigiToGPUProducer::produce().
|
private |
Definition at line 42 of file EcalLiteDTUSample.h.
Referenced by adc(), EcalLiteDTUSample(), gainId(), operator uint16_t(), operator()(), and raw().