#include <ZdcUnpacker.h>
Public Member Functions | |
void | setExpectedOrbitMessageTime (int time) |
void | unpack (const FEDRawData &raw, const CastorElectronicsMap &emap, CastorRawCollections &conts, HcalUnpackerReport &report, bool silent=false) |
For histograms, no begin and end. More... | |
void | unpackOld (const FEDRawData &raw, const HcalElectronicsMap &emap, CastorRawCollections &conts, HcalUnpackerReport &report, bool silent=false) |
ZdcUnpacker (int sourceIdOffset, int beg, int end) | |
for normal data More... | |
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 | 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 17 of file ZdcUnpacker.h.
ZdcUnpacker::ZdcUnpacker | ( | int | sourceIdOffset, |
int | beg, | ||
int | end | ||
) |
for normal data
Definition at line 84 of file ZdcUnpacker.cc.
References end, endSample_, ZDCDataFrame::MAXSAMPLES, and startSample_.
|
inline |
Definition at line 22 of file ZdcUnpacker.h.
References expectedOrbitMessageTime_, edmIntegrityCheck::report, protons_cff::time, unpack(), and unpackOld().
void ZdcUnpacker::unpack | ( | const FEDRawData & | raw, |
const CastorElectronicsMap & | emap, | ||
CastorRawCollections & | conts, | ||
HcalUnpackerReport & | report, | ||
bool | silent = false |
||
) |
For histograms, no begin and end.
Definition at line 98 of file ZdcUnpacker.cc.
References DetId::Calo, HcalHTRData::check(), HcalUnpackerReport::countSpigotFormatError(), HcalUnpackerReport::countUnmappedDigi(), FEDRawData::data(), HcalHTRData::dataPointers(), DetId::det(), runTauDisplay::eid, endSample_, expectedOrbitMessageTime_, HcalHTRData::getFirmwareFlavor(), HcalHTRData::getNPS(), HcalDCCHeader::getSourceId(), HcalDCCHeader::getSpigotCRCError(), HcalDCCHeader::getSpigotData(), HcalDCCHeader::getSpigotPresent(), HcalHTRData::getSubmodule(), HcalHTRData::is_channel_header(), HcalHTRData::isHistogramEvent(), LogDebug, DetId::null(), HcalElectronicsId::setHTR(), FEDRawData::size(), sourceIdOffset_, HcalDCCHeader::SPIGOT_COUNT, startSample_, HcalZDCDetId::SubdetectorId, DetId::subdetId(), CastorRawCollections::ttp, HcalTTPUnpacker::unpack(), HcalHTRData::unpack_per_channel_header(), and CastorRawCollections::zdcCont.
Referenced by CastorRawToDigi::produce(), and setExpectedOrbitMessageTime().
void ZdcUnpacker::unpackOld | ( | const FEDRawData & | raw, |
const HcalElectronicsMap & | emap, | ||
CastorRawCollections & | conts, | ||
HcalUnpackerReport & | report, | ||
bool | silent = false |
||
) |
Referenced by setExpectedOrbitMessageTime().
|
private |
last sample from fed raw data to copy (if present)
Definition at line 30 of file ZdcUnpacker.h.
Referenced by unpack(), and ZdcUnpacker().
|
private |
Expected orbit bunch time (needed to evaluate time differences)
Definition at line 31 of file ZdcUnpacker.h.
Referenced by setExpectedOrbitMessageTime(), and unpack().
|
private |
Definition at line 33 of file ZdcUnpacker.h.
|
private |
number to subtract from the source id to get the dcc id
Definition at line 28 of file ZdcUnpacker.h.
Referenced by unpack().
|
private |
first sample from fed raw data to copy
Definition at line 29 of file ZdcUnpacker.h.
Referenced by unpack(), and ZdcUnpacker().
|
private |
Definition at line 32 of file ZdcUnpacker.h.
|
private |
Recorded to limit number of times a log message is generated.
Definition at line 32 of file ZdcUnpacker.h.