#include <HcalQIESample.h>
Public Member Functions | |
int | adc () const |
get the ADC sample | |
int | capid () const |
get the Capacitor id | |
bool | dv () const |
is the Data Valid bit set? | |
bool | er () const |
is the error bit set? | |
int | fiber () const |
get the fiber number | |
int | fiberAndChan () const |
get the id channel | |
int | fiberChan () const |
get the fiber channel number | |
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) | |
uint16_t | operator() () |
for streaming | |
uint16_t | raw () const |
get the raw word | |
Private Attributes | |
uint16_t | theSample |
Simple container packer/unpacker for a single QIE data word
Definition at line 15 of file HcalQIESample.h.
HcalQIESample::HcalQIESample | ( | ) | [inline] |
HcalQIESample::HcalQIESample | ( | uint16_t | data | ) | [inline] |
Definition at line 18 of file HcalQIESample.h.
References AlCaHLTBitMon_QueryRunRegistry::data, and theSample.
HcalQIESample::HcalQIESample | ( | int | adc, |
int | capid, | ||
int | fiber, | ||
int | fiberchan, | ||
bool | dv = true , |
||
bool | er = false |
||
) |
int HcalQIESample::adc | ( | ) | const [inline] |
get the ADC sample
Definition at line 24 of file HcalQIESample.h.
References theSample.
Referenced by HcaluLUTTPGCoder::adc2Linear(), HcalPedestalAnalysis::AllChanHists(), HcalPedestalMCWidths::analyze(), JetToDigiDump::analyze(), CastorPedestalsAnalysis::analyze(), HcalPedestalsAnalysis::analyze(), HcalPedestalWidthsValidation::analyze(), HcaluLUTTPGCoder::lookupMSB(), nominal_fC(), operator<<(), HcalPedestalAnalysis::per2CapsHists(), HcalLedAnalysis::ProcessCalibEvent(), CastorPSMonitor::processEvent(), CastorDigiMonitor::processEvent(), CastorLEDMonitor::processEvent(), HcalCoarsePedestalMonitor::processEvent(), and HcalBeamMonitor::processEvent().
{ return theSample&0x7F; }
int HcalQIESample::capid | ( | ) | const [inline] |
get the Capacitor id
Definition at line 28 of file HcalQIESample.h.
References theSample.
Referenced by HcalPedestalMCWidths::analyze(), JetToDigiDump::analyze(), CastorPedestalsAnalysis::analyze(), HcalPedestalsAnalysis::analyze(), HcalPedestalWidthsValidation::analyze(), HcalHFStatusBitFromDigis::hfSetFlagFromDigi(), operator<<(), HcalPedestalAnalysis::per2CapsHists(), CastorPSMonitor::processEvent(), CastorLEDMonitor::processEvent(), CastorDigiMonitor::processEvent(), HBHEPulseShapeFlagSetter::SetPulseShapeFlags(), HcalRawDataMonitor::unpack(), HBHEDataFrame::validate(), HFDataFrame::validate(), HcalCalibDataFrame::validate(), HODataFrame::validate(), CastorDataFrame::validate(), and ZDCDataFrame::validate().
{ return (theSample>>7)&0x3; }
bool HcalQIESample::dv | ( | ) | const [inline] |
is the Data Valid bit set?
Definition at line 30 of file HcalQIESample.h.
References theSample.
Referenced by operator<<(), and HcalRawDataMonitor::unpack().
{ return (theSample&0x0200)!=0; }
bool HcalQIESample::er | ( | ) | const [inline] |
is the error bit set?
Definition at line 32 of file HcalQIESample.h.
References theSample.
Referenced by operator<<(), and HcalRawDataMonitor::unpack().
{ return (theSample&0x0400)!=0; }
int HcalQIESample::fiber | ( | ) | const [inline] |
get the fiber number
Definition at line 34 of file HcalQIESample.h.
References theSample.
Referenced by HcalRawDataMonitor::unpack(), CastorUnpacker::unpack(), HcalUnpacker_impl::unpack(), HcalUnpacker::unpack(), and CastorUnpacker_impl::unpack().
{ return ((theSample>>13)&0x7)+1; }
int HcalQIESample::fiberAndChan | ( | ) | const [inline] |
get the id channel
Definition at line 38 of file HcalQIESample.h.
References theSample.
Referenced by CastorUnpacker::unpack(), HcalUnpacker_impl::unpack(), HcalUnpacker::unpack(), and CastorUnpacker_impl::unpack().
{ return (theSample>>11)&0x1F; }
int HcalQIESample::fiberChan | ( | ) | const [inline] |
get the fiber channel number
Definition at line 36 of file HcalQIESample.h.
References theSample.
Referenced by HcalRawDataMonitor::unpack(), CastorUnpacker::unpack(), HcalUnpacker_impl::unpack(), HcalUnpacker::unpack(), and CastorUnpacker_impl::unpack().
{ return (theSample>>11)&0x3; }
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(), HBHETimeProfileStatusBitSetter::compare_digi_energy::operator()(), and HBHETimeProfileStatusBitSetter::TotalEnergyInDataFrame().
{ return nominal_adc2fc[adc()]; }
uint16_t HcalQIESample::operator() | ( | ) | [inline] |
for streaming
Definition at line 41 of file HcalQIESample.h.
References theSample.
{ return theSample; }
uint16_t HcalQIESample::raw | ( | ) | const [inline] |
get the raw word
Definition at line 22 of file HcalQIESample.h.
References theSample.
Referenced by HcalPacker::pack(), CastorPacker::pack(), HcalRawDataMonitor::unpack(), CastorUnpacker::unpack(), and HcalUnpacker::unpack().
{ return theSample; }
uint16_t HcalQIESample::theSample [private] |
Definition at line 44 of file HcalQIESample.h.
Referenced by adc(), capid(), dv(), er(), fiber(), fiberAndChan(), fiberChan(), HcalQIESample(), operator()(), and raw().