#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 |
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 theSample.
Referenced by HcaluLUTTPGCoder::adc2Linear(), CastorPedestalAnalysis::AllChanHists(), HcalPedestalAnalysis::AllChanHists(), JetToDigiDump::analyze(), CastorPedestalsAnalysis::analyze(), HcaluLUTTPGCoder::lookupMSB(), nominal_fC(), operator<<(), CastorPedestalAnalysis::per2CapsHists(), HcalPedestalAnalysis::per2CapsHists(), HcalLedAnalysis::ProcessCalibEvent(), CastorDigiMonitor::processEvent(), HcalCoarsePedestalMonitor::processEvent(), HcalBeamMonitor::processEvent(), and CastorLEDMonitor::processEvent().
|
inline |
get the Capacitor id
Definition at line 26 of file HcalQIESample.h.
References theSample.
Referenced by JetToDigiDump::analyze(), CastorPedestalsAnalysis::analyze(), HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), operator<<(), CastorPedestalAnalysis::per2CapsHists(), HcalPedestalAnalysis::per2CapsHists(), CastorDigiMonitor::processEvent(), HcalZDCMonitor::processEvent(), HBHEPulseShapeFlagSetter::SetPulseShapeFlags(), HcalRawDataMonitor::unpack(), HcalCalibDataFrame::validate(), CastorDataFrame::validate(), ZDCDataFrame::validate(), HBHEDataFrame::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 operator<<(), CastorDigiMonitor::processEvent(), HcalZDCMonitor::processEvent(), and HcalRawDataMonitor::unpack().
|
inline |
is the error bit set?
Definition at line 30 of file HcalQIESample.h.
References theSample.
Referenced by operator<<(), CastorDigiMonitor::processEvent(), HcalZDCMonitor::processEvent(), and HcalRawDataMonitor::unpack().
|
inline |
get the fiber number
Definition at line 32 of file HcalQIESample.h.
References theSample.
Referenced by CastorUnpacker_impl::unpack(), HcalUnpacker_impl::unpack(), CastorUnpacker::unpack(), HcalRawDataMonitor::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(), HcalRawDataMonitor::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 RadDamTask::_process(), 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(), HcalRawDataMonitor::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().