#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 nominal_fC(), operator<<(), and CastorLEDMonitor::processEvent().
|
inline |
get the Capacitor id
Definition at line 26 of file HcalQIESample.h.
References theSample.
Referenced by operator<<(), 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<<().
|
inline |
is the error bit set?
Definition at line 30 of file HcalQIESample.h.
References theSample.
Referenced by operator<<().
|
inline |
|
inline |
|
inline |
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(), 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().
|
private |
Definition at line 42 of file HcalQIESample.h.
Referenced by adc(), capid(), dv(), er(), fiber(), fiberAndChan(), fiberChan(), HcalQIESample(), operator()(), and raw().