#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 46 of file HcalUnpacker.h.
|
inline |
For histograms, no begin and end.
Definition at line 48 of file HcalUnpacker.h.
|
private |
Definition at line 938 of file HcalUnpacker.cc.
References MessageLogger_cfi::limit, and python.rootplot.argparse::message.
Referenced by setMode().
|
inline |
Definition at line 49 of file HcalUnpacker.h.
References expectedOrbitMessageTime_, edmIntegrityCheck::report, ntuplemaker::time, and unpack().
Referenced by HcalRawToDigi::HcalRawToDigi().
|
inline |
Definition at line 52 of file HcalUnpacker.h.
References ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, mode_, printInvalidDataMessage(), AlCaHLTBitMon_QueryRunRegistry::string, unpackUMNio(), unpackUTCA(), and unpackVME().
Referenced by HcalRawToDigi::HcalRawToDigi().
void HcalUnpacker::unpack | ( | const FEDRawData & | raw, |
const HcalElectronicsMap & | emap, | ||
std::vector< HcalHistogramDigi > & | histoDigis | ||
) |
Definition at line 863 of file HcalUnpacker.cc.
References HcalHTRData::check(), FEDRawData::data(), DetId::det(), runTauDisplay::eid, f, benchmark_cfg::fc, HcalHistogramDigi::getArray(), HcalHTRData::getHistogramFibers(), HcalDCCHeader::getSourceId(), HcalDCCHeader::getSpigotData(), HcalDCCHeader::getSpigotPresent(), HcalHTRData::getSubmodule(), DetId::Hcal, HcalHTRData::isHistogramEvent(), HcalElectronicsMap::lookup(), DetId::null(), HcalElectronicsId::setHTR(), FEDRawData::size(), HcalDCCHeader::SPIGOT_COUNT, DetId::subdetId(), and HcalHTRData::unpackHistogram().
Referenced by HcalHistogramRawToDigi::produce(), HcalRawToDigi::produce(), and setExpectedOrbitMessageTime().
void HcalUnpacker::unpack | ( | const FEDRawData & | raw, |
const HcalElectronicsMap & | emap, | ||
Collections & | conts, | ||
HcalUnpackerReport & | report, | ||
bool | silent = false |
||
) |
Definition at line 190 of file HcalUnpacker.cc.
References HcalDCCHeader::BOEshouldBeZeroAlways(), FEDRawData::data(), and FEDRawData::size().
|
private |
Definition at line 922 of file HcalUnpacker.cc.
References hcal::AMC13Header::AMCPayload(), hcal::AMC13Header::AMCSize(), hcal::AMC13Header::AMCSlot(), FEDRawData::data(), data, hcal::AMC13Header::NAMC(), and HcalUnpacker::Collections::umnio.
Referenced by setMode().
|
private |
Definition at line 566 of file HcalUnpacker.cc.
References HcalDataFrameContainer< Digi >::addDataFrame(), hcal::AMC13Header::AMCCRCOk(), hcal::AMC13Header::AMCDataPresent(), hcal::AMC13Header::AMCEnabled(), hcal::AMC13Header::AMCId(), hcal::AMC13Header::AMCPayload(), hcal::AMC13Header::AMCSegmented(), hcal::AMC13Header::AMCSize(), hcal::AMC13Header::AMCSlot(), HcalUnpacker::Collections::calibCont, HcalCalibDetId::calibFlavor(), DetId::Calo, HcalUHTRData::const_iterator::channelid(), HcalUnpackerReport::countSpigotFormatError(), HcalUnpackerReport::countUnmappedDigi(), HcalUnpackerReport::countUnmappedTPDigi(), gather_cfg::cout, FEDRawData::data(), DetId::det(), runTauDisplay::eid, funct::false, HcalUHTRData::const_iterator::flavor(), HcalUnpacker::Collections::hbheCont, DetId::Hcal, HcalBarrel, HcalCalibration, HcalEmpty, HcalEndcap, HcalForward, HcalOther, HcalOuter, HcalUnpacker::Collections::hfCont, HcalUnpacker::Collections::hoCont, mps_fire::i, triggerObjects_cff::id, HcalUHTRData::const_iterator::isHeader(), HcalElectronicsMap::lookup(), HcalElectronicsMap::lookupTrigger(), hcal::AMC13Header::NAMC(), DetId::null(), HcalUnpacker::Collections::qie10, HcalUnpacker::Collections::qie10Addtl, HcalUnpacker::Collections::qie10Lasermon, HcalUnpacker::Collections::qie10ZDC, HcalUnpacker::Collections::qie11, HcalUnpacker::Collections::qie11Addtl, HcalUHTRData::const_iterator::raw(), HcalDataFrameContainer< Digi >::samples(), HcalUHTRData::const_iterator::soi(), hcal::AMC13Header::sourceId(), HcalOtherDetId::subdet(), HcalZDCDetId::SubdetectorId, DetId::subdetId(), HcalUHTRData::const_iterator::technicalDataType(), HcalUnpacker::Collections::tpCont, funct::true, HcalTrigTowerDetId::Undefined, HcalUHTRData::const_iterator::value(), and HcalUnpacker::Collections::zdcCont.
Referenced by setMode().
|
private |
work through the samples
branch point between 2006-2011 data format and 2012+ data format
work through the samples
Definition at line 211 of file HcalUnpacker.cc.
References HcalUnpacker::Collections::calibCont, DetId::Calo, HcalHTRData::check(), HOUnrolledTP::checked, HcalUnpackerReport::countBusySpigot(), HcalUnpackerReport::countEmptyEventSpigot(), HcalUnpackerReport::countOFWSpigot(), HcalUnpackerReport::countSpigotFormatError(), HcalUnpackerReport::countUnmappedDigi(), HcalUnpackerReport::countUnmappedTPDigi(), FEDRawData::data(), HcalHTRData::dataPointers(), DetId::det(), runTauDisplay::eid, benchmark_cfg::fc, HcalQIESample::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, triggerObjects_cff::id, HcalDetId::ieta(), HOUnrolledTP::ieta, 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, DetId::null(), HcalTriggerPrimitiveSample::raw(), HcalQIESample::raw(), hcalTTPDigis_cfi::samples, HOUnrolledTP::samples, HOUnrolledTP::setbit(), HcalElectronicsId::setHTR(), FEDRawData::size(), slb(), slbAndChan(), slbChan(), HOUnrolledTP::soi, HcalDCCHeader::SPIGOT_COUNT, HcalOtherDetId::subdet(), HcalZDCDetId::SubdetectorId, DetId::subdetId(), HcalUnpacker::Collections::tpCont, HcalUnpacker::Collections::tphoCont, HcalUnpacker::Collections::ttp, HcalTrigTowerDetId::Undefined, HcalTTPUnpacker::unpack(), HcalHTRData::unpack_per_channel_header(), HOUnrolledTP::valid, HcalHTRData::wasMarkAndPassZSTP(), globals_cff::x1, and HcalUnpacker::Collections::zdcCont.
Referenced by setMode().
|
private |
last sample from fed raw data to copy (if present)
Definition at line 62 of file HcalUnpacker.h.
|
private |
Expected orbit bunch time (needed to evaluate time differences)
Definition at line 63 of file HcalUnpacker.h.
Referenced by setExpectedOrbitMessageTime().
|
private |
Definition at line 64 of file HcalUnpacker.h.
Referenced by setMode().
|
private |
Definition at line 67 of file HcalUnpacker.h.
|
private |
number to subtract from the source id to get the dcc id
Definition at line 60 of file HcalUnpacker.h.
|
private |
first sample from fed raw data to copy
Definition at line 61 of file HcalUnpacker.h.
|
private |
Definition at line 65 of file HcalUnpacker.h.
|
private |
Recorded to limit number of times a log message is generated.
Definition at line 65 of file HcalUnpacker.h.