#include <HcalUnpacker.h>
Classes | |
struct | Collections |
Public Member Functions | |
HcalUnpacker (int sourceIdOffset, int beg, int end) | |
for normal data More... | |
HcalUnpacker (int sourceIdOffset) | |
For histograms, no begin and end. More... | |
void | setExpectedOrbitMessageTime (int time) |
void | setMode (int mode) |
void | unpack (const FEDRawData &raw, const HcalElectronicsMap &emap, std::vector< HcalHistogramDigi > &histoDigis) |
void | unpack (const FEDRawData &raw, const HcalElectronicsMap &emap, Collections &conts, HcalUnpackerReport &report, bool silent=false) |
Private Member Functions | |
void | printInvalidDataMessage (const std::string &coll_type, int default_ns, int conflict_ns, bool extended=false) |
void | unpackUMNio (const FEDRawData &raw, int slot, Collections &colls) |
void | unpackUTCA (const FEDRawData &raw, const HcalElectronicsMap &emap, Collections &conts, HcalUnpackerReport &report, bool silent=false) |
void | unpackVME (const FEDRawData &raw, const HcalElectronicsMap &emap, Collections &conts, HcalUnpackerReport &report, bool silent=false) |
Private Attributes | |
int | endSample_ |
last sample from fed raw data to copy (if present) More... | |
int | expectedOrbitMessageTime_ |
Expected orbit bunch time (needed to evaluate time differences) More... | |
int | mode_ |
int | nPrinted_ |
int | sourceIdOffset_ |
number to subtract from the source id to get the dcc id More... | |
int | startSample_ |
first sample from fed raw data to copy More... | |
std::set< HcalElectronicsId > | unknownIds_ |
std::set< HcalElectronicsId > | unknownIdsTrig_ |
Recorded to limit number of times a log message is generated. More... | |
Definition at line 21 of file HcalUnpacker.h.
|
inline |
for normal data
Definition at line 44 of file HcalUnpacker.h.
|
inline |
For histograms, no begin and end.
Definition at line 52 of file HcalUnpacker.h.
|
private |
Definition at line 1074 of file HcalUnpacker.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), remoteMonitoring_LASER_era2018_cfg::limit, and nPrinted_.
Referenced by unpackUTCA().
|
inline |
Definition at line 59 of file HcalUnpacker.h.
References expectedOrbitMessageTime_, and hcalRecHitTable_cff::time.
Referenced by HcalRawToDigi::HcalRawToDigi().
|
inline |
Definition at line 66 of file HcalUnpacker.h.
References ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, and mode_.
Referenced by HcalRawToDigi::HcalRawToDigi().
void HcalUnpacker::unpack | ( | const FEDRawData & | raw, |
const HcalElectronicsMap & | emap, | ||
std::vector< HcalHistogramDigi > & | histoDigis | ||
) |
Definition at line 995 of file HcalUnpacker.cc.
References HcalHTRData::check(), FEDRawData::data(), DetId::det(), runTauDisplay::eid, f, HcalHistogramDigi::getArray(), HcalHTRData::getHistogramFibers(), HcalDCCHeader::getSourceId(), HcalDCCHeader::getSpigotData(), HcalDCCHeader::getSpigotPresent(), HcalHTRData::getSubmodule(), DetId::Hcal, HcalHTRData::isHistogramEvent(), HcalElectronicsMap::lookup(), DetId::null(), FEDRawData::size(), sourceIdOffset_, HcalDCCHeader::SPIGOT_COUNT, DetId::subdetId(), unknownIds_, and HcalHTRData::unpackHistogram().
Referenced by HcalHistogramRawToDigi::produce(), and HcalRawToDigi::produce().
void HcalUnpacker::unpack | ( | const FEDRawData & | raw, |
const HcalElectronicsMap & | emap, | ||
Collections & | conts, | ||
HcalUnpackerReport & | report, | ||
bool | silent = false |
||
) |
Definition at line 207 of file HcalUnpacker.cc.
References HcalDCCHeader::BOEshouldBeZeroAlways(), FEDRawData::data(), edmIntegrityCheck::report, CastorRawToDigi_cfi::silent, FEDRawData::size(), unpackUTCA(), and unpackVME().
|
private |
Definition at line 1058 of file HcalUnpacker.cc.
References FEDRawData::data(), data, FCDTask_cfi::slot, and HcalUnpacker::Collections::umnio.
Referenced by unpackUTCA().
|
private |
Definition at line 679 of file HcalUnpacker.cc.
References HcalDataFrameContainer< Digi >::addDataFrame(), HcalUnpacker::Collections::calibCont, HcalCalibDetId::calibFlavor(), DetId::Calo, gather_cfg::cout, FCDTask_cfi::crate, FEDRawData::data(), DetId::det(), runTauDisplay::eid, endSample_, HcalUnpacker::Collections::hbheCont, DetId::Hcal, HcalBarrel, HcalCalibration, HcalEmpty, HcalEndcap, HcalForward, HcalOther, HcalOuter, HcalUnpacker::Collections::hfCont, HcalUnpacker::Collections::hoCont, mps_fire::i, l1ctLayer2EG_cff::id, l1ctLayer1_patternWriters_cff::ilink, dqmiolumiharvest::j, HcalElectronicsMap::lookup(), HcalElectronicsMap::lookupTrigger(), DetId::null(), printInvalidDataMessage(), HcalUnpacker::Collections::qie10, HcalUnpacker::Collections::qie10Addtl, HcalUnpacker::Collections::qie10Lasermon, HcalUnpacker::Collections::qie10ZDC, HcalUnpacker::Collections::qie11, HcalUnpacker::Collections::qie11Addtl, edmIntegrityCheck::report, HcalDataFrameContainer< Digi >::samples(), CastorRawToDigi_cfi::silent, FCDTask_cfi::slot, startSample_, HcalOtherDetId::subdet(), HcalZDCDetId::SubdetectorId, DetId::subdetId(), HcalUnpacker::Collections::tpCont, HcalTrigTowerDetId::Undefined, unknownIds_, unknownIdsTrig_, unpackUMNio(), and HcalUnpacker::Collections::zdcCont.
Referenced by unpack().
|
private |
work through the samples
branch point between 2006-2011 data format and 2012+ data format
work through the samples
Definition at line 231 of file HcalUnpacker.cc.
References HcalUnpacker::Collections::calibCont, DetId::Calo, HcalHTRData::check(), HOUnrolledTP::checked, FEDRawData::data(), HcalHTRData::dataPointers(), DetId::det(), runTauDisplay::eid, endSample_, expectedOrbitMessageTime_, HcalQIESample::fiber(), FCDTask_cfi::fiber, HcalQIESample::fiberAndChan(), HcalQIESample::fiberChan(), HcalHTRData::FORMAT_VERSION_COMPACT_DATA, HcalDCCHeader::getDCCDataFormatVersion(), HcalHTRData::getFirmwareFlavor(), HcalHTRData::getFormatVersion(), HcalHTRData::getNPS(), HcalDTCHeader::getSlotCRCError(), HcalDTCHeader::getSlotData(), HcalDTCHeader::getSlotPresent(), HcalDCCHeader::getSourceId(), HcalDTCHeader::getSourceId(), HcalDCCHeader::getSpigotCRCError(), HcalDCCHeader::getSpigotData(), HcalDCCHeader::getSpigotPresent(), HcalHTRData::getSubmodule(), HcalUnpacker::Collections::hbheCont, DetId::Hcal, HcalBarrel, HcalCalibration, HcalEmpty, HcalEndcap, HcalForward, HcalOther, HcalOuter, HcalUnpacker::Collections::hfCont, HcalUnpacker::Collections::hoCont, mps_fire::i, l1ctLayer2EG_cff::id, hcalRecHitTable_cff::ieta, HcalDetId::ieta(), HOUnrolledTP::ieta, hcalRecHitTable_cff::iphi, HcalDetId::iphi(), HOUnrolledTP::iphi, HcalHTRData::is_channel_header(), HcalHTRData::isBusy(), HcalHTRData::isEmptyEvent(), HcalHTRData::isHistogramEvent(), HcalHTRData::isOverflowWarning(), isTPGSOI(), HcalHTRData::isUnsuppressed(), linear(), LogDebug, HcalElectronicsMap::lookup(), HcalElectronicsMap::lookupTrigger(), HcalDTCHeader::MAXIMUM_SLOT, mode_, DetId::null(), HcalTriggerPrimitiveSample::raw(), HcalQIESample::raw(), edmIntegrityCheck::report, EgammaValidation_cff::samples, HOUnrolledTP::samples, nano_mu_digi_cff::sector, HOUnrolledTP::setbit(), CastorRawToDigi_cfi::silent, FEDRawData::size(), slb(), slbAndChan(), slbChan(), FCDTask_cfi::slot, HOUnrolledTP::soi, sourceIdOffset_, HcalDCCHeader::SPIGOT_COUNT, startSample_, HcalOtherDetId::subdet(), HcalZDCDetId::SubdetectorId, DetId::subdetId(), HcalUnpacker::Collections::tpCont, HcalUnpacker::Collections::tphoCont, HcalUnpacker::Collections::ttp, HcalTrigTowerDetId::Undefined, unknownIds_, unknownIdsTrig_, HcalTTPUnpacker::unpack(), HcalHTRData::unpack_per_channel_header(), validateGeometry_cfg::valid, HOUnrolledTP::valid, HcalHTRData::wasMarkAndPassZSTP(), testProducerWithPsetDescEmpty_cfi::x1, and HcalUnpacker::Collections::zdcCont.
Referenced by unpack().
|
private |
last sample from fed raw data to copy (if present)
Definition at line 85 of file HcalUnpacker.h.
Referenced by unpackUTCA(), and unpackVME().
|
private |
Expected orbit bunch time (needed to evaluate time differences)
Definition at line 86 of file HcalUnpacker.h.
Referenced by setExpectedOrbitMessageTime(), and unpackVME().
|
private |
Definition at line 87 of file HcalUnpacker.h.
Referenced by setMode(), and unpackVME().
|
private |
Definition at line 91 of file HcalUnpacker.h.
Referenced by printInvalidDataMessage().
|
private |
number to subtract from the source id to get the dcc id
Definition at line 83 of file HcalUnpacker.h.
Referenced by unpack(), and unpackVME().
|
private |
first sample from fed raw data to copy
Definition at line 84 of file HcalUnpacker.h.
Referenced by unpackUTCA(), and unpackVME().
|
private |
Definition at line 88 of file HcalUnpacker.h.
Referenced by unpack(), unpackUTCA(), and unpackVME().
|
private |
Recorded to limit number of times a log message is generated.
Definition at line 88 of file HcalUnpacker.h.
Referenced by unpackUTCA(), and unpackVME().