#include <ZDCDataFrame.h>
Public Types | |
typedef HcalZDCDetId | key_type |
For the sorted collection. More... | |
Public Member Functions | |
const HcalElectronicsId & | elecId () const |
int | fiberIdleOffset () const |
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7->-7. -1000 indicates the data is invalid/unavailable) More... | |
const HcalZDCDetId & | id () const |
const HcalQIESample & | operator[] (int i) const |
access a sample More... | |
int | presamples () const |
number of samples before the sample from the triggered beam crossing (according to the hardware) More... | |
const HcalQIESample & | sample (int i) const |
access a sample More... | |
void | setFiberIdleOffset (int offset) |
void | setPresamples (int ps) |
void | setReadoutIds (const HcalElectronicsId &eid) |
void | setSample (int i, const HcalQIESample &sam) |
void | setSize (int size) |
void | setZSInfo (bool unsuppressed, bool markAndPass, uint32_t crossingMask=0) |
int | size () const |
total number of samples in the digi More... | |
bool | validate (int firstSample=0, int nSamples=100) const |
validate appropriate DV and ER bits as well as capid rotation for the specified samples (default is all) More... | |
ZDCDataFrame () | |
ZDCDataFrame (const HcalZDCDetId &id) | |
uint32_t | zsCrossingMask () const |
zs crossing mask (which sums considered) More... | |
bool | zsMarkAndPass () const |
was ZS MarkAndPass? More... | |
bool | zsUnsuppressed () const |
was ZS unsuppressed? More... | |
Static Public Attributes | |
static const int | MAXSAMPLES = 10 |
Private Attributes | |
HcalQIESample | data_ [MAXSAMPLES] |
HcalElectronicsId | electronicsId_ |
int | hcalPresamples_ |
HcalZDCDetId | id_ |
int | size_ |
Precision readout digi for ZDC
Definition at line 15 of file ZDCDataFrame.h.
typedef HcalZDCDetId ZDCDataFrame::key_type |
For the sorted collection.
Definition at line 17 of file ZDCDataFrame.h.
ZDCDataFrame::ZDCDataFrame | ( | ) |
Definition at line 3 of file ZDCDataFrame.cc.
|
explicit |
Definition at line 5 of file ZDCDataFrame.cc.
|
inline |
Definition at line 23 of file ZDCDataFrame.h.
References electronicsId_.
Referenced by ZDCTask::analyze().
int ZDCDataFrame::fiberIdleOffset | ( | ) | const |
offset of bunch number for this channel relative to nominal set in the unpacker (range is +7->-7. -1000 indicates the data is invalid/unavailable)
Definition at line 44 of file ZDCDataFrame.cc.
References hcalPresamples_, and heppy_batch::val.
Referenced by operator<<(), and sample().
|
inline |
Definition at line 22 of file ZDCDataFrame.h.
References id_.
Referenced by HcalNominalCoder::adc2fC(), ZDCDigiStudy::analyze(), and operator<<().
|
inline |
|
inline |
number of samples before the sample from the triggered beam crossing (according to the hardware)
Definition at line 28 of file ZDCDataFrame.h.
References hcalPresamples_.
Referenced by HcalNominalCoder::adc2fC(), and operator<<().
|
inline |
access a sample
Definition at line 39 of file ZDCDataFrame.h.
References data_, fiberIdleOffset(), castor_dqm_sourceclient-live_cfg::firstSample, mps_fire::i, DigiNZS_cff::markAndPass, PresampleTask_cfi::nSamples, setPresamples(), setSize(), setZSInfo(), size(), and validate().
Referenced by ZDCDigiStudy::analyze(), and operator<<().
void ZDCDataFrame::setFiberIdleOffset | ( | int | offset | ) |
Definition at line 49 of file ZDCDataFrame.cc.
References hcalPresamples_, and hltrates_dqm_sourceclient-live_cfg::offset.
Referenced by setSample().
void ZDCDataFrame::setPresamples | ( | int | ps | ) |
void ZDCDataFrame::setReadoutIds | ( | const HcalElectronicsId & | eid | ) |
Definition at line 18 of file ZDCDataFrame.cc.
References runTauDisplay::eid, and electronicsId_.
Referenced by setSample().
|
inline |
Definition at line 50 of file ZDCDataFrame.h.
References data_, runTauDisplay::eid, mps_fire::i, hltrates_dqm_sourceclient-live_cfg::offset, setFiberIdleOffset(), and setReadoutIds().
void ZDCDataFrame::setSize | ( | int | size | ) |
Definition at line 9 of file ZDCDataFrame.cc.
References MAXSAMPLES, size(), and size_.
Referenced by sample().
void ZDCDataFrame::setZSInfo | ( | bool | unsuppressed, |
bool | markAndPass, | ||
uint32_t | crossingMask = 0 |
||
) |
|
inline |
total number of samples in the digi
Definition at line 26 of file ZDCDataFrame.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), HcalNominalCoder::adc2fC(), ZDCTask::analyze(), ZDCDigiStudy::analyze(), operator<<(), sample(), and setSize().
bool ZDCDataFrame::validate | ( | int | firstSample = 0 , |
int | nSamples = 100 |
||
) | const |
validate appropriate DV and ER bits as well as capid rotation for the specified samples (default is all)
Definition at line 20 of file ZDCDataFrame.cc.
References HcalQIESample::capid(), data_, castor_dqm_sourceclient-live_cfg::firstSample, mps_fire::i, convertSQLiteXML::ok, and size_.
Referenced by sample().
|
inline |
zs crossing mask (which sums considered)
Definition at line 34 of file ZDCDataFrame.h.
References hcalPresamples_.
|
inline |
was ZS MarkAndPass?
Definition at line 30 of file ZDCDataFrame.h.
References hcalPresamples_.
Referenced by operator<<().
|
inline |
was ZS unsuppressed?
Definition at line 32 of file ZDCDataFrame.h.
References hcalPresamples_.
Referenced by operator<<().
|
private |
Definition at line 61 of file ZDCDataFrame.h.
Referenced by operator[](), sample(), setSample(), and validate().
|
private |
Definition at line 58 of file ZDCDataFrame.h.
Referenced by elecId(), and setReadoutIds().
|
private |
Definition at line 60 of file ZDCDataFrame.h.
Referenced by fiberIdleOffset(), presamples(), setFiberIdleOffset(), setPresamples(), setZSInfo(), zsCrossingMask(), zsMarkAndPass(), and zsUnsuppressed().
|
private |
Definition at line 57 of file ZDCDataFrame.h.
Referenced by id().
|
static |
Definition at line 54 of file ZDCDataFrame.h.
Referenced by setSize(), and ZdcUnpacker::ZdcUnpacker().
|
private |
Definition at line 59 of file ZDCDataFrame.h.
Referenced by setSize(), size(), and validate().