#include <EcalMGPASample.h>
Public Member Functions | |
int | adc () const |
get the ADC sample (12 bits) More... | |
EcalMGPASample () | |
EcalMGPASample (uint16_t data) | |
EcalMGPASample (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 MGPA electronics
Definition at line 25 of file EcalMGPASample.h.
|
inline |
|
inline |
EcalMGPASample::EcalMGPASample | ( | int | adc, |
int | gainId | ||
) |
|
inline |
get the ADC sample (12 bits)
Definition at line 34 of file EcalMGPASample.h.
References ecalPh1::kAdcMask, and theSample.
Referenced by JetToDigiDump::analyze(), EcalTBValidation::analyze(), EcalTPInputAnalyzer::analyze(), EcalSimpleTBAnalyzer::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalSimple2007H4TBAnalyzer::analyze(), EcalEndcapRecHitsValidation::analyze(), EcalBarrelDigisValidation::analyze(), EcalMGPASample(), GlobalDigisProducer::fillECal(), GlobalDigisAnalyzer::fillECal(), operator<<(), ecaldqm::GpuTask::runOnCpuDigis(), ecaldqm::PedestalTask::runOnDigis(), ecaldqm::TestPulseTask::runOnDigis(), ecaldqm::LedTask::runOnDigis(), ecaldqm::LaserTask::runOnDigis(), ecaldqm::GpuTask::runOnGpuDigis(), EcalEBFenixLinearizer::setInput(), EcalFenixLinearizer::setInput(), and EBDataFrame::spikeEstimator().
|
inline |
get the gainId (2 bits)
Definition at line 36 of file EcalMGPASample.h.
References ecalPh1::kGainIdMask, ecalPh1::NBITS, and theSample.
Referenced by JetToDigiDump::analyze(), EcalBarrelDigisValidation::analyze(), EcalUncalibRecHitTimingCCAlgo::computeTimeCC(), EcalMGPASample(), GlobalDigisProducer::fillECal(), GlobalDigisAnalyzer::fillECal(), operator<<(), EcalTBWeightUncalibRecHitProducer::produce(), ecaldqm::PedestalTask::runOnDigis(), EcalFenixLinearizer::setInput(), and EcalEBFenixLinearizer::setInput().
|
inline |
|
inline |
|
inline |
get the raw word
Definition at line 32 of file EcalMGPASample.h.
References theSample.
Referenced by EcalDigiSelector::produce(), EcalFenixLinearizer::setInput(), and EcalEBFenixLinearizer::setInput().
|
private |
Definition at line 42 of file EcalMGPASample.h.
Referenced by adc(), EcalMGPASample(), gainId(), operator uint16_t(), operator()(), and raw().