#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 51 of file CastorUnpacker.cc.
References end, endSample_, CastorDataFrame::MAXSAMPLES, and startSample_.
|
inline |
Definition at line 20 of file CastorUnpacker.h.
References expectedOrbitMessageTime_, and cond::rpcobgas::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 71 of file CastorUnpacker.cc.
References CastorRawCollections::castorCont, HcalHTRData::check(), HcalUnpackerReport::countSpigotFormatError(), HcalUnpackerReport::countUnmappedDigi(), FEDRawData::data(), HcalHTRData::dataPointers(), endSample_, expectedOrbitMessageTime_, HcalQIESample::fiber(), HcalQIESample::fiberAndChan(), HcalQIESample::fiberChan(), HcalHTRData::getFirmwareFlavor(), HcalHTRData::getFormatVersion(), HcalHTRData::getNPS(), HcalDCCHeader::getSourceId(), HcalDCCHeader::getSpigotCRCError(), HcalDCCHeader::getSpigotData(), HcalDCCHeader::getSpigotPresent(), HcalHTRData::getSubmodule(), HcalHTRData::isHistogramEvent(), isTPGSOI(), HcalHTRData::isUnsuppressed(), LogDebug, CastorElectronicsMap::lookup(), HcalCastorDetId::module(), DetId::null(), HcalTriggerPrimitiveSample::raw(), HcalQIESample::raw(), HcalCastorDetId::sector(), CastorElectronicsId::setHTR(), FEDRawData::size(), slb(), slbAndChan(), slbChan(), sourceIdOffset_, HcalDCCHeader::SPIGOT_COUNT, startSample_, CastorRawCollections::tpCont, CastorRawCollections::ttp, unknownIds_, HcalTTPUnpacker::unpack(), TrackValidation_HighPurity_cff::valid, HcalHTRData::wasMarkAndPassZSTP(), and HcalCastorDetId::zside().
Referenced by CastorRawToDigi::produce().
|
private |
last sample from fed raw data to copy (if present)
Definition at line 27 of file CastorUnpacker.h.
Referenced by CastorUnpacker(), and unpack().
|
private |
Expected orbit bunch time (needed to evaluate time differences)
Definition at line 28 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 25 of file CastorUnpacker.h.
Referenced by unpack().
|
private |
first sample from fed raw data to copy
Definition at line 26 of file CastorUnpacker.h.
Referenced by CastorUnpacker(), and unpack().
|
private |
Definition at line 29 of file CastorUnpacker.h.
Referenced by unpack().
|
private |
Recorded to limit number of times a log message is generated.
Definition at line 29 of file CastorUnpacker.h.