#include <CastorCtdcUnpacker.h>
Public Member Functions | |
CastorCtdcUnpacker (int sourceIdOffset, int beg, int end) | |
for normal data More... | |
void | unpack (const FEDRawData &raw, const CastorElectronicsMap &emap, CastorRawCollections &conts, HcalUnpackerReport &report) |
Private Attributes | |
int | endSample_ |
last sample from fed raw data to copy (if present) 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 14 of file CastorCtdcUnpacker.h.
CastorCtdcUnpacker::CastorCtdcUnpacker | ( | int | sourceIdOffset, |
int | beg, | ||
int | end | ||
) |
for normal data
Definition at line 12 of file CastorCtdcUnpacker.cc.
References end, endSample_, CastorDataFrame::MAXSAMPLES, and startSample_.
void CastorCtdcUnpacker::unpack | ( | const FEDRawData & | raw, |
const CastorElectronicsMap & | emap, | ||
CastorRawCollections & | conts, | ||
HcalUnpackerReport & | report | ||
) |
work through all channels
Definition at line 27 of file CastorCtdcUnpacker.cc.
References CastorRawCollections::castorCont, CastorCORData::CHANNELS_PER_SPIGOT, CastorCORData::check(), HcalUnpackerReport::countSpigotFormatError(), HcalUnpackerReport::countUnmappedDigi(), FEDRawData::data(), runTauDisplay::eid, endSample_, runEdmFileComparison::found, CastorCORData::getNPS(), CastorCTDCHeader::getSourceId(), CastorCTDCHeader::getSpigotData(), CastorCTDCHeader::getSpigotPresent(), CastorCORData::isHistogramEvent(), CastorElectronicsMap::lookup(), CastorCORData::MAXIMUM_SAMPLES_PER_CHANNEL, simplePhotonAnalyzer_cfi::sample, CastorDataFrame::setPresamples(), CastorDataFrame::setSample(), CastorDataFrame::setSize(), FEDRawData::size(), sourceIdOffset_, CastorCTDCHeader::SPIGOT_COUNT, startSample_, unknownIds_, and CastorCORData::unpack().
Referenced by CastorRawToDigi::produce().
|
private |
last sample from fed raw data to copy (if present)
Definition at line 23 of file CastorCtdcUnpacker.h.
Referenced by CastorCtdcUnpacker(), and unpack().
|
private |
number to subtract from the source id to get the dcc id
Definition at line 21 of file CastorCtdcUnpacker.h.
Referenced by unpack().
|
private |
first sample from fed raw data to copy
Definition at line 22 of file CastorCtdcUnpacker.h.
Referenced by CastorCtdcUnpacker(), and unpack().
|
private |
Definition at line 24 of file CastorCtdcUnpacker.h.
Referenced by unpack().
|
private |
Recorded to limit number of times a log message is generated.
Definition at line 24 of file CastorCtdcUnpacker.h.