#include <HcalQIESample.h>
Public Member Functions | |
int | adc () const |
get the ADC sample More... | |
int | capid () const |
get the Capacitor id More... | |
bool | dv () const |
is the Data Valid bit set? More... | |
bool | er () const |
is the error bit set? More... | |
int | fiber () const |
get the fiber number More... | |
int | fiberAndChan () const |
get the id channel More... | |
int | fiberChan () const |
get the fiber channel number More... | |
HcalQIESample () | |
HcalQIESample (uint16_t data) | |
HcalQIESample (int adc, int capid, int fiber, int fiberchan, bool dv=true, bool er=false) | |
double | nominal_fC () const |
get the nominal FC (no calibrations applied) More... | |
uint16_t | operator() () |
for streaming More... | |
uint16_t | raw () const |
get the raw word More... | |
Private Attributes | |
uint16_t | theSample |
Simple container packer/unpacker for a single QIE data word
Definition at line 13 of file HcalQIESample.h.
|
inline |
|
inline |
Definition at line 16 of file HcalQIESample.h.
References adc(), capid(), data, dv(), er(), fiber(), HcalQIESample(), and theSample.
HcalQIESample::HcalQIESample | ( | int | adc, |
int | capid, | ||
int | fiber, | ||
int | fiberchan, | ||
bool | dv = true , |
||
bool | er = false |
||
) |
|
inline |
get the ADC sample
Definition at line 22 of file HcalQIESample.h.
References nominal_fC(), and theSample.
Referenced by HcaluLUTTPGCoder::adc2Linear(), CastorPedestalAnalysis::AllChanHists(), HcalPedestalAnalysis::AllChanHists(), JetToDigiDump::analyze(), CastorPedestalsAnalysis::analyze(), HcalQIESample(), HcaluLUTTPGCoder::lookupMSB(), nominal_fC(), operator<<(), UHTRpacker::packQIE8sample(), CastorPedestalAnalysis::per2CapsHists(), HcalPedestalAnalysis::per2CapsHists(), HcalLedAnalysis::ProcessCalibEvent(), CastorDigiMonitor::processEvent(), CastorLEDMonitor::processEvent(), and L1Analysis::L1AnalysisL1HO::SetHO().
|
inline |
get the Capacitor id
Definition at line 26 of file HcalQIESample.h.
References theSample.
Referenced by JetToDigiDump::analyze(), CastorPedestalsAnalysis::analyze(), HcalQIESample(), HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), operator<<(), UHTRpacker::packQIE8header(), UHTRpacker::packQIE8sample(), CastorPedestalAnalysis::per2CapsHists(), HcalPedestalAnalysis::per2CapsHists(), CastorDigiMonitor::processEvent(), HcalCalibDataFrame::validate(), CastorDataFrame::validate(), HBHEDataFrame::validate(), ZDCDataFrame::validate(), HFDataFrame::validate(), and HODataFrame::validate().
|
inline |
is the Data Valid bit set?
Definition at line 28 of file HcalQIESample.h.
References theSample.
Referenced by HcalQIESample(), operator<<(), UHTRpacker::packQIE8sample(), CastorDigiMonitor::processEvent(), and L1Analysis::L1AnalysisL1HO::SetHO().
|
inline |
is the error bit set?
Definition at line 30 of file HcalQIESample.h.
References theSample.
Referenced by HcalQIESample(), operator<<(), UHTRpacker::packQIE8header(), UHTRpacker::packQIE8sample(), CastorDigiMonitor::processEvent(), and L1Analysis::L1AnalysisL1HO::SetHO().
|
inline |
get the fiber number
Definition at line 32 of file HcalQIESample.h.
References theSample.
Referenced by HcalQIESample(), CastorUnpacker_impl::unpack(), HcalUnpacker_impl::unpack(), CastorUnpacker::unpack(), and HcalUnpacker::unpackVME().
|
inline |
get the id channel
Definition at line 36 of file HcalQIESample.h.
References theSample.
Referenced by CastorUnpacker_impl::unpack(), HcalUnpacker_impl::unpack(), CastorUnpacker::unpack(), and HcalUnpacker::unpackVME().
|
inline |
get the fiber channel number
Definition at line 34 of file HcalQIESample.h.
References theSample.
Referenced by CastorUnpacker_impl::unpack(), HcalUnpacker_impl::unpack(), CastorUnpacker::unpack(), and HcalUnpacker::unpackVME().
double HcalQIESample::nominal_fC | ( | ) | const |
get the nominal FC (no calibrations applied)
Definition at line 30 of file HcalQIESample.cc.
References adc(), and nominal_adc2fc.
Referenced by HFRaddamTask::_process(), adc(), JetToDigiDump::analyze(), ZDCDigiStudy::analyze(), HBHETimeProfileStatusBitSetter::compare_digi_energy::operator()(), and HBHETimeProfileStatusBitSetter::TotalEnergyInDataFrame().
|
inline |
|
inline |
get the raw word
Definition at line 20 of file HcalQIESample.h.
References theSample.
Referenced by CastorPacker::pack(), HcalPacker::pack(), CastorUnpacker::unpack(), and HcalUnpacker::unpackVME().
|
private |
Definition at line 42 of file HcalQIESample.h.
Referenced by adc(), capid(), dv(), er(), fiber(), fiberAndChan(), fiberChan(), HcalQIESample(), operator()(), and raw().