#include <CastorDataFrame.h>
Public Types | |
typedef HcalCastorDetId | key_type |
For the sorted collection. More... | |
Public Member Functions | |
CastorDataFrame () | |
CastorDataFrame (const HcalCastorDetId &id) | |
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 HcalCastorDetId & | 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 | 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] |
int | hcalPresamples_ |
HcalCastorDetId | id_ |
int | size_ |
Precision readout digi for Castor
Definition at line 15 of file CastorDataFrame.h.
For the sorted collection.
Definition at line 17 of file CastorDataFrame.h.
CastorDataFrame::CastorDataFrame | ( | ) |
Definition at line 3 of file CastorDataFrame.cc.
|
explicit |
Definition at line 5 of file CastorDataFrame.cc.
int CastorDataFrame::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 47 of file CastorDataFrame.cc.
References hcalPresamples_, and heppy_batch::val.
Referenced by operator<<().
|
inline |
Definition at line 22 of file CastorDataFrame.h.
References id_.
Referenced by CastorPedestalsAnalysis::analyze(), CastorTTRecord::getEnergy_fC(), operator<<(), CastorDigiMonitor::processEvent(), CastorLEDMonitor::processEvent(), CastorPedestalAnalysis::processEvent(), and CastorLedAnalysis::processLedEvent().
|
inline |
|
inline |
number of samples before the sample from the triggered beam crossing (according to the hardware)
Definition at line 28 of file CastorDataFrame.h.
References hcalPresamples_.
Referenced by operator<<().
|
inline |
access a sample
Definition at line 39 of file CastorDataFrame.h.
References data_, and mps_fire::i.
Referenced by CastorPedestalsAnalysis::analyze(), operator<<(), CastorDigiMonitor::processEvent(), CastorLEDMonitor::processEvent(), and CastorPedestalAnalysis::processEvent().
void CastorDataFrame::setFiberIdleOffset | ( | int | offset | ) |
Definition at line 52 of file CastorDataFrame.cc.
References hcalPresamples_, and hltrates_dqm_sourceclient-live_cfg::offset.
void CastorDataFrame::setPresamples | ( | int | ps | ) |
Definition at line 18 of file CastorDataFrame.cc.
References hcalPresamples_.
Referenced by CastorCtdcUnpacker::unpack().
|
inline |
Definition at line 49 of file CastorDataFrame.h.
References data_, and mps_fire::i.
Referenced by CastorCtdcUnpacker::unpack().
void CastorDataFrame::setSize | ( | int | size | ) |
Definition at line 9 of file CastorDataFrame.cc.
References MAXSAMPLES, size(), and size_.
Referenced by CastorCtdcUnpacker::unpack().
void CastorDataFrame::setZSInfo | ( | bool | unsuppressed, |
bool | markAndPass, | ||
uint32_t | crossingMask = 0 |
||
) |
Definition at line 38 of file CastorDataFrame.cc.
References hcalPresamples_, and DigiNZS_cff::markAndPass.
|
inline |
total number of samples in the digi
Definition at line 26 of file CastorDataFrame.h.
References size_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), CastorPedestalsAnalysis::analyze(), CastorLedAnalysis::LedCastorHists(), operator<<(), CastorDigiMonitor::processEvent(), CastorLEDMonitor::processEvent(), CastorPedestalAnalysis::processEvent(), and setSize().
bool CastorDataFrame::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 23 of file CastorDataFrame.cc.
References HcalQIESample::capid(), data_, castor_dqm_sourceclient-live_cfg::firstSample, mps_fire::i, PresampleTask_cfi::nSamples, convertSQLiteXML::ok, and size_.
|
inline |
zs crossing mask (which sums considered)
Definition at line 34 of file CastorDataFrame.h.
References hcalPresamples_.
|
inline |
|
inline |
|
private |
Definition at line 61 of file CastorDataFrame.h.
Referenced by operator[](), sample(), setSample(), and validate().
|
private |
Definition at line 60 of file CastorDataFrame.h.
Referenced by fiberIdleOffset(), presamples(), setFiberIdleOffset(), setPresamples(), setZSInfo(), zsCrossingMask(), zsMarkAndPass(), and zsUnsuppressed().
|
private |
Definition at line 57 of file CastorDataFrame.h.
Referenced by id().
|
static |
Definition at line 54 of file CastorDataFrame.h.
Referenced by CastorCtdcUnpacker::CastorCtdcUnpacker(), CastorUnpacker::CastorUnpacker(), and setSize().
|
private |
Definition at line 59 of file CastorDataFrame.h.
Referenced by setSize(), size(), and validate().