#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(), CastorPSMonitor::processEvent(), 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(), CastorPSMonitor::processEvent(), CastorDigiMonitor::processEvent(), CastorLEDMonitor::processEvent(), HBHEPulseShapeFlagSetter::SetPulseShapeFlags(), HcalRawDataMonitor::unpack(), HcalCalibDataFrame::validate(), CastorDataFrame::validate(), HFDataFrame::validate(), HBHEDataFrame::validate(), ZDCDataFrame::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(), and HcalRawDataMonitor::unpack().
|
inline |
is the error bit set?
Definition at line 30 of file HcalQIESample.h.
References theSample.
Referenced by operator<<(), CastorDigiMonitor::processEvent(), and HcalRawDataMonitor::unpack().
|
inline |
get the fiber number
Definition at line 32 of file HcalQIESample.h.
References theSample.
Referenced by HcalUnpacker_impl::unpack(), CastorUnpacker_impl::unpack(), CastorUnpacker::unpack(), HcalUnpacker::unpack(), and HcalRawDataMonitor::unpack().
|
inline |
get the id channel
Definition at line 36 of file HcalQIESample.h.
References theSample.
Referenced by HcalUnpacker_impl::unpack(), CastorUnpacker_impl::unpack(), CastorUnpacker::unpack(), and HcalUnpacker::unpack().
|
inline |
get the fiber channel number
Definition at line 34 of file HcalQIESample.h.
References theSample.
Referenced by HcalUnpacker_impl::unpack(), CastorUnpacker_impl::unpack(), CastorUnpacker::unpack(), HcalUnpacker::unpack(), and HcalRawDataMonitor::unpack().
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 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(), HcalUnpacker::unpack(), and HcalRawDataMonitor::unpack().
|
private |
Definition at line 42 of file HcalQIESample.h.
Referenced by adc(), capid(), dv(), er(), fiber(), fiberAndChan(), fiberChan(), HcalQIESample(), operator()(), and raw().