#include <CastorUnpacker.h>
Public Member Functions | |
CastorUnpacker (int sourceIdOffset, int beg, int end) | |
for normal data More... | |
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... | |
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 | 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< CastorElectronicsId > | unknownIds_ |
std::set< CastorElectronicsId > | unknownIdsTrig_ |
Recorded to limit number of times a log message is generated. More... | |
Definition at line 15 of file CastorUnpacker.h.
CastorUnpacker::CastorUnpacker | ( | int | sourceIdOffset, |
int | beg, | ||
int | end | ||
) |
for normal data
Definition at line 57 of file CastorUnpacker.cc.
References mps_fire::end, endSample_, CastorDataFrame::MAXSAMPLES, and startSample_.
|
inline |
Definition at line 19 of file CastorUnpacker.h.
References expectedOrbitMessageTime_, and protons_cff::time.
Referenced by CastorRawToDigi::beginRun(), and CastorRawToDigi::CastorRawToDigi().
void CastorUnpacker::unpack | ( | const FEDRawData & | raw, |
const CastorElectronicsMap & | emap, | ||
CastorRawCollections & | conts, | ||
HcalUnpackerReport & | report, | ||
bool | silent = false |
||
) |
For histograms, no begin and end.
work through the samples
work through the samples
Definition at line 75 of file CastorUnpacker.cc.
References CastorRawCollections::castorCont, HcalHTRData::check(), FEDRawData::data(), HcalHTRData::dataPointers(), runTauDisplay::eid, endSample_, expectedOrbitMessageTime_, HcalQIESample::fiber(), HcalQIESample::fiberAndChan(), HcalQIESample::fiberChan(), HcalHTRData::getFirmwareFlavor(), HcalHTRData::getFormatVersion(), HcalHTRData::getNPS(), HcalDCCHeader::getSourceId(), HcalDCCHeader::getSpigotCRCError(), HcalDCCHeader::getSpigotData(), HcalDCCHeader::getSpigotPresent(), HcalHTRData::getSubmodule(), l1ctLayer2EG_cff::id, globals_cff::id1, HcalHTRData::isHistogramEvent(), isTPGSOI(), HcalHTRData::isUnsuppressed(), LogDebug, CastorElectronicsMap::lookup(), DetId::null(), HcalTriggerPrimitiveSample::raw(), HcalQIESample::raw(), edmIntegrityCheck::report, CastorRawToDigi_cfi::silent, FEDRawData::size(), slb(), slbAndChan(), slbChan(), sourceIdOffset_, HcalDCCHeader::SPIGOT_COUNT, startSample_, CastorRawCollections::tpCont, CastorRawCollections::ttp, unknownIds_, HcalTTPUnpacker::unpack(), validateGeometry_cfg::valid, and HcalHTRData::wasMarkAndPassZSTP().
Referenced by CastorRawToDigi::produce().
|
private |
last sample from fed raw data to copy (if present)
Definition at line 31 of file CastorUnpacker.h.
Referenced by CastorUnpacker(), and unpack().
|
private |
Expected orbit bunch time (needed to evaluate time differences)
Definition at line 32 of file CastorUnpacker.h.
Referenced by setExpectedOrbitMessageTime(), and unpack().
|
private |
number to subtract from the source id to get the dcc id
Definition at line 29 of file CastorUnpacker.h.
Referenced by unpack().
|
private |
first sample from fed raw data to copy
Definition at line 30 of file CastorUnpacker.h.
Referenced by CastorUnpacker(), and unpack().
|
private |
Definition at line 33 of file CastorUnpacker.h.
Referenced by unpack().
|
private |
Recorded to limit number of times a log message is generated.
Definition at line 33 of file CastorUnpacker.h.