#include <HBHEDataFrame.h>
Public Types | |
typedef HcalDetId | 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... | |
HBHEDataFrame () | |
HBHEDataFrame (const HcalDetId &id) | |
const HcalDetId & | 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... | |
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_ |
HcalDetId | id_ |
int | size_ |
Precision readout digi for HB and HE.
Definition at line 15 of file HBHEDataFrame.h.
typedef HcalDetId HBHEDataFrame::key_type |
For the sorted collection.
Definition at line 17 of file HBHEDataFrame.h.
HBHEDataFrame::HBHEDataFrame | ( | ) |
Definition at line 4 of file HBHEDataFrame.cc.
|
explicit |
Definition at line 10 of file HBHEDataFrame.cc.
|
inline |
int HBHEDataFrame::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 49 of file HBHEDataFrame.cc.
References hcalPresamples_.
Referenced by operator<<().
|
inline |
Definition at line 22 of file HBHEDataFrame.h.
References id_.
Referenced by PedestalTask::_process(), HcalNominalCoder::adc2fC(), HcaluLUTTPGCoder::adc2Linear(), HcalTriggerPrimitiveAlgo::addSignal(), reco::HcalNoiseInfoProducer::filldigis(), HcalLaserHBHEFilter2012::filter(), HcalLaserHBHEHFFilter2012::filter(), reco::HcalNoiseRBXArray::findHPD(), reco::HcalNoiseRBXArray::findRBX(), HcalZSAlgoRealistic::keepMe(), HcaluLUTTPGCoder::lookupMSB(), operator<<(), HcalCoarsePedestalMonitor::processEvent(), HcalPedestalAnalysis::processEvent(), HcalDigiMonitor::processEvent(), HcalLedAnalysis::processLedEvent(), HcalSignalGenerator< HBHEDigitizerTraits >::samplesInPE(), and HcalZSAlgoRealistic::shouldKeep().
|
inline |
|
inline |
number of samples before the sample from the triggered beam crossing (according to the hardware)
Definition at line 28 of file HBHEDataFrame.h.
References hcalPresamples_.
Referenced by HcalNominalCoder::adc2fC(), HcalTriggerPrimitiveAlgo::addSignal(), operator<<(), and HcalSignalGenerator< HBHEDigitizerTraits >::samplesInPE().
|
inline |
access a sample
Definition at line 39 of file HBHEDataFrame.h.
Referenced by HcaluLUTTPGCoder::lookupMSB(), HBHETimeProfileStatusBitSetter::compare_digi_energy::operator()(), operator<<(), HcalCoarsePedestalMonitor::processEvent(), HcalPedestalAnalysis::processEvent(), HBHEPulseShapeFlagSetter::SetPulseShapeFlags(), and HBHETimeProfileStatusBitSetter::TotalEnergyInDataFrame().
void HBHEDataFrame::setFiberIdleOffset | ( | int | offset | ) |
Definition at line 54 of file HBHEDataFrame.cc.
References hcalPresamples_, and hltrates_dqm_sourceclient-live_cfg::offset.
void HBHEDataFrame::setPresamples | ( | int | ps | ) |
Definition at line 23 of file HBHEDataFrame.cc.
References hcalPresamples_.
Referenced by PFHBHERecHitCreatorMaxSample::importRecHits().
void HBHEDataFrame::setReadoutIds | ( | const HcalElectronicsId & | eid | ) |
|
inline |
Definition at line 50 of file HBHEDataFrame.h.
Referenced by PFHBHERecHitCreatorMaxSample::importRecHits(), and HcaluLUTTPGCoder::update().
void HBHEDataFrame::setSize | ( | int | size | ) |
Definition at line 18 of file HBHEDataFrame.cc.
References MAXSAMPLES, size(), and size_.
Referenced by PFHBHERecHitCreatorMaxSample::importRecHits(), and HcaluLUTTPGCoder::update().
void HBHEDataFrame::setZSInfo | ( | bool | unsuppressed, |
bool | markAndPass, | ||
uint32_t | crossingMask = 0 |
||
) |
Definition at line 42 of file HBHEDataFrame.cc.
References hcalPresamples_.
Referenced by HcalZeroSuppressionAlgo::suppress().
|
inline |
total number of samples in the digi
Definition at line 26 of file HBHEDataFrame.h.
References size_.
Referenced by PedestalTask::_process(), LaserTask::_process(), LEDTask::_process(), HcalNominalCoder::adc2fC(), HcaluLUTTPGCoder::adc2Linear(), HcalTriggerPrimitiveAlgo::addSignal(), HcalLedAnalysis::LedHBHEHists(), HcaluLUTTPGCoder::lookupMSB(), HBHETimeProfileStatusBitSetter::compare_digi_energy::operator()(), operator<<(), HcalCoarsePedestalMonitor::processEvent(), HcalPedestalAnalysis::processEvent(), HcalSignalGenerator< HBHEDigitizerTraits >::samplesInPE(), HBHEStatusBitSetter::SetFlagsFromDigi(), HBHEPulseShapeFlagSetter::SetPulseShapeFlags(), setSize(), HcalZSAlgoRealistic::shouldKeep(), HBHETimeProfileStatusBitSetter::TotalEnergyInDataFrame(), and HcalSignalGenerator< HBHEDigitizerTraits >::validDigi().
bool HBHEDataFrame::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 30 of file HBHEDataFrame.cc.
References HcalQIESample::capid(), data_, castor_dqm_sourceclient_file_cfg::firstSample, i, convertSQLiteXML::ok, and size_.
|
inline |
zs crossing mask (which sums considered)
Definition at line 34 of file HBHEDataFrame.h.
References hcalPresamples_.
Referenced by HcalZSAlgoRealistic::shouldKeep().
|
inline |
was ZS MarkAndPass?
Definition at line 30 of file HBHEDataFrame.h.
References hcalPresamples_.
Referenced by reco::HcalNoiseInfoProducer::filldigis(), and operator<<().
|
inline |
was ZS unsuppressed?
Definition at line 32 of file HBHEDataFrame.h.
References hcalPresamples_.
Referenced by operator<<().
|
private |
Definition at line 60 of file HBHEDataFrame.h.
Referenced by operator[](), sample(), setSample(), and validate().
|
private |
Definition at line 57 of file HBHEDataFrame.h.
Referenced by elecId(), and setReadoutIds().
|
private |
Definition at line 59 of file HBHEDataFrame.h.
Referenced by fiberIdleOffset(), presamples(), setFiberIdleOffset(), setPresamples(), setZSInfo(), zsCrossingMask(), zsMarkAndPass(), and zsUnsuppressed().
|
private |
Definition at line 56 of file HBHEDataFrame.h.
Referenced by id().
|
static |
Definition at line 54 of file HBHEDataFrame.h.
Referenced by setSize().
|
private |
Definition at line 58 of file HBHEDataFrame.h.
Referenced by setSize(), size(), and validate().