#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 16 of file ZdcUnpacker.h.
ZdcUnpacker::ZdcUnpacker | ( | int | sourceIdOffset, |
int | beg, | ||
int | end | ||
) |
for normal data
Definition at line 94 of file ZdcUnpacker.cc.
References mps_fire::end, endSample_, ZDCDataFrame::MAXSAMPLES, and startSample_.
|
inline |
Definition at line 20 of file ZdcUnpacker.h.
References expectedOrbitMessageTime_, and protons_cff::time.
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 108 of file ZdcUnpacker.cc.
References DetId::Calo, HcalHTRData::check(), 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(), edmIntegrityCheck::report, CastorRawToDigi_cfi::silent, 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().
void ZdcUnpacker::unpackOld | ( | const FEDRawData & | raw, |
const HcalElectronicsMap & | emap, | ||
CastorRawCollections & | conts, | ||
HcalUnpackerReport & | report, | ||
bool | silent = false |
||
) |
|
private |
last sample from fed raw data to copy (if present)
Definition at line 37 of file ZdcUnpacker.h.
Referenced by unpack(), and ZdcUnpacker().
|
private |
Expected orbit bunch time (needed to evaluate time differences)
Definition at line 38 of file ZdcUnpacker.h.
Referenced by setExpectedOrbitMessageTime(), and unpack().
|
private |
Definition at line 41 of file ZdcUnpacker.h.
|
private |
number to subtract from the source id to get the dcc id
Definition at line 35 of file ZdcUnpacker.h.
Referenced by unpack().
|
private |
first sample from fed raw data to copy
Definition at line 36 of file ZdcUnpacker.h.
Referenced by unpack(), and ZdcUnpacker().
|
private |
Definition at line 39 of file ZdcUnpacker.h.
|
private |
Recorded to limit number of times a log message is generated.
Definition at line 39 of file ZdcUnpacker.h.