#include <SiStripRawToDigiUnpacker.h>
Classes | |
class | Registry |
private class to register start and end index of digis in a collection More... | |
Public Types | |
typedef edm::DetSetVector< SiStripDigi > | Digis |
typedef edm::DetSetVector< SiStripRawDigi > | RawDigis |
Public Member Functions | |
void | createDigis (const SiStripFedCabling &, const FEDRawDataCollection &, SiStripEventSummary &, RawDigis &scope_mode, RawDigis &virgin_raw, RawDigis &proc_raw, Digis &zero_suppr, DetIdVector &, RawDigis &common_mode) |
creates digis More... | |
void | doAPVEmulatorCheck (bool) |
void | doFullCorruptBufferChecks (bool) |
void | extractCm (bool) |
void | legacy (bool) |
void | locateStartOfFedBuffer (const uint16_t &fed_id, const FEDRawData &input, FEDRawData &output) |
Removes any data appended prior to FED buffer and reorders 32-bit words if swapped. More... | |
void | printWarningSummary () const |
void | quiet (bool) |
verbosity More... | |
RawToDigiUnpacker (int16_t appended_bytes, int16_t fed_buffer_dump_freq, int16_t fed_event_dump_freq, int16_t trigger_fed_id, bool using_fed_key, bool unpack_bad_channels, bool mark_missing_feds, const uint32_t errorThreshold) | |
constructor More... | |
RawToDigiUnpacker ()=delete | |
private default constructor More... | |
void | triggerFed (const FEDRawDataCollection &, SiStripEventSummary &, const uint32_t &event) |
trigger info More... | |
void | useDaqRegister (bool) |
EventSummary update request -> not yet implemented for FEDBuffer class. More... | |
~RawToDigiUnpacker () | |
default constructor More... | |
Private Member Functions | |
void | cleanupWorkVectors () |
method to clear registries and digi collections More... | |
sistrip::FedBufferFormat | fedBufferFormat (const uint16_t ®ister_value) |
returns buffer format More... | |
sistrip::FedReadoutMode | fedReadoutMode (const uint16_t ®ister_value) |
returns buffer readout mode More... | |
void | physicalOrder (uint16_t &readout_order, uint16_t &physical_order) |
order of strips More... | |
void | readoutOrder (uint16_t &physical_order, uint16_t &readout_order) |
order of strips More... | |
void | update (RawDigis &scope_mode, RawDigis &virgin_raw, RawDigis &proc_raw, Digis &zero_suppr, RawDigis &common_mode) |
fill DetSetVectors using registries More... | |
void | updateEventSummary (const sistrip::FEDBuffer &, SiStripEventSummary &) |
sets the SiStripEventSummary -> not yet implemented for FEDBuffer class More... | |
Static Private Member Functions | |
static void | dumpRawData (uint16_t fed_id, const FEDRawData &, std::stringstream &) |
dumps raw data to stdout (NB: payload is byte-swapped,headers/trailer are not). More... | |
Private Attributes | |
std::vector< SiStripRawDigi > | cm_work_digis_ |
std::vector< Registry > | cm_work_registry_ |
bool | doAPVEmulatorCheck_ |
bool | doFullCorruptBufferChecks_ |
uint32_t | errorThreshold_ |
uint32_t | event_ |
other values More... | |
bool | extractCm_ |
int16_t | fedBufferDumpFreq_ |
int16_t | fedEventDumpFreq_ |
bool | first_ |
int16_t | headerBytes_ |
configurables More... | |
bool | legacy_ |
bool | markMissingFeds_ |
bool | once_ |
std::vector< SiStripRawDigi > | proc_work_digis_ |
std::vector< Registry > | proc_work_registry_ |
bool | quiet_ |
std::vector< SiStripRawDigi > | scope_work_digis_ |
std::vector< Registry > | scope_work_registry_ |
int16_t | triggerFedId_ |
bool | unpackBadChannels_ |
bool | useDaqRegister_ |
bool | useFedKey_ |
std::vector< SiStripRawDigi > | virgin_work_digis_ |
std::vector< Registry > | virgin_work_registry_ |
WarningSummary | warnings_ |
std::vector< SiStripDigi > | zs_work_digis_ |
digi collections More... | |
std::vector< Registry > | zs_work_registry_ |
registries More... | |
Friends | |
class | RawToClustersLazyUnpacker |
Definition at line 31 of file SiStripRawToDigiUnpacker.h.
Definition at line 35 of file SiStripRawToDigiUnpacker.h.
Definition at line 36 of file SiStripRawToDigiUnpacker.h.
sistrip::RawToDigiUnpacker::RawToDigiUnpacker | ( | int16_t | appended_bytes, |
int16_t | fed_buffer_dump_freq, | ||
int16_t | fed_event_dump_freq, | ||
int16_t | trigger_fed_id, | ||
bool | using_fed_key, | ||
bool | unpack_bad_channels, | ||
bool | mark_missing_feds, | ||
const uint32_t | errorThreshold | ||
) |
constructor
Definition at line 27 of file SiStripRawToDigiUnpacker.cc.
References edm::isDebugEnabled(), LogTrace, and unpackBadChannels_.
|
delete |
private default constructor
sistrip::RawToDigiUnpacker::~RawToDigiUnpacker | ( | ) |
default constructor
Definition at line 63 of file SiStripRawToDigiUnpacker.cc.
References edm::isDebugEnabled(), and LogTrace.
|
private |
method to clear registries and digi collections
Definition at line 709 of file SiStripRawToDigiUnpacker.cc.
References cms::cuda::assert(), cm_work_digis_, cm_work_registry_, proc_work_digis_, proc_work_registry_, scope_work_digis_, scope_work_registry_, virgin_work_digis_, virgin_work_registry_, zs_work_digis_, and zs_work_registry_.
Referenced by createDigis().
void sistrip::RawToDigiUnpacker::createDigis | ( | const SiStripFedCabling & | cabling, |
const FEDRawDataCollection & | buffers, | ||
SiStripEventSummary & | summary, | ||
RawDigis & | scope_mode, | ||
RawDigis & | virgin_raw, | ||
RawDigis & | proc_raw, | ||
Digis & | zero_suppr, | ||
DetIdVector & | detids, | ||
RawDigis & | common_mode | ||
) |
creates digis
extract readout mode
FED channel
Definition at line 84 of file SiStripRawToDigiUnpacker.cc.
References sistrip::WarningSummary::add(), sistrip::APV_LATENCY, cms::cuda::assert(), sistrip::fedchannelunpacker::BAD_PACKET_CODE, edmScanValgrind::buffer, sistrip::BUFFER_NULL, officialStyle::chan, cleanupWorkVectors(), cm_work_digis_, cm_work_registry_, TauDecayModes::dec, doAPVEmulatorCheck_, doFullCorruptBufferChecks_, dumpRawData(), errorThreshold_, event_, extractCm_, sistrip::FED_CABLING, fedBufferDumpFreq_, sistrip::FEDCH_PER_FEUNIT, SiStripFedCabling::fedConnections(), FEDRawDataCollection::FEDData(), fedEventDumpFreq_, SiStripFedCabling::fedIds(), l1tstage2emulator_dqm_sourceclient-live_cfg::feds, sistrip::FINE_DELAY, first_, dqm-mbProfile::format, input, sistrip::invalid32_, sistrip::invalid_, edm::isDebugEnabled(), sistrip::fedchannelunpacker::isNonLiteZS(), sistrip::fedchannelunpacker::isProcessedRaw(), sistrip::fedchannelunpacker::isScopeMode(), sistrip::fedchannelunpacker::isVirginRaw(), sistrip::fedchannelunpacker::isZeroSuppressed(), submitPVResolutionJobs::key, legacy_, LogDebug, LogTrace, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, sistrip::mlRawToDigi_, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, sistrip::PACKET_CODE_ZERO_SUPPRESSED, sistrip::PACKET_CODE_ZERO_SUPPRESSED10, sistrip::PACKET_CODE_ZERO_SUPPRESSED8_BOTBOT, sistrip::PACKET_CODE_ZERO_SUPPRESSED8_TOPBOT, sistrip::preconstructCheckFEDBuffer(), proc_work_digis_, proc_work_registry_, quiet_, sistrip::READOUT_MODE_LEGACY_INVALID, sistrip::READOUT_MODE_LEGACY_SCOPE, sistrip::READOUT_MODE_SCOPE, scope_work_digis_, scope_work_registry_, FEDRawData::size(), contentValuesCheck::ss, sistrip::SUCCESS, sistrip::fedchannelunpacker::SUCCESS, edmLumisInFiles::summary, sistrip::toString(), triggerFedId_, unpackBadChannels_, sistrip::fedchannelunpacker::unpackProcessedRaw(), sistrip::fedchannelunpacker::unpackScope(), sistrip::fedchannelunpacker::unpackVirginRaw(), sistrip::fedchannelunpacker::unpackZeroSuppressed(), update(), updateEventSummary(), useDaqRegister_, useFedKey_, virgin_work_digis_, virgin_work_registry_, warnings_, sistrip::fedchannelunpacker::ZERO_PACKET_CODE, zs_work_digis_, and zs_work_registry_.
Referenced by sistrip::RawToDigiModule::produce().
|
inline |
Definition at line 205 of file SiStripRawToDigiUnpacker.h.
Referenced by sistrip::RawToDigiModule::RawToDigiModule().
|
inline |
Definition at line 201 of file SiStripRawToDigiUnpacker.h.
Referenced by sistrip::RawToDigiModule::RawToDigiModule().
|
staticprivate |
dumps raw data to stdout (NB: payload is byte-swapped,headers/trailer are not).
Definition at line 1012 of file SiStripRawToDigiUnpacker.cc.
References edmScanValgrind::buffer, TauDecayModes::dec, relativeConstraints::empty, mps_fire::i, sistrip::invalid32_, and contentValuesCheck::ss.
Referenced by createDigis().
|
inline |
Definition at line 199 of file SiStripRawToDigiUnpacker.h.
Referenced by sistrip::RawToDigiModule::RawToDigiModule().
|
inlineprivate |
returns buffer format
Definition at line 179 of file SiStripRawToDigiUnpacker.h.
References sistrip::APV_ERROR_FORMAT, sistrip::FULL_DEBUG_FORMAT, sistrip::UNDEFINED_FED_BUFFER_FORMAT, and sistrip::UNKNOWN_FED_BUFFER_FORMAT.
|
inlineprivate |
|
inline |
Definition at line 209 of file SiStripRawToDigiUnpacker.h.
Referenced by sistrip::RawToDigiModule::RawToDigiModule().
void sistrip::RawToDigiUnpacker::locateStartOfFedBuffer | ( | const uint16_t & | fed_id, |
const FEDRawData & | input, | ||
FEDRawData & | output | ||
) |
Removes any data appended prior to FED buffer and reorders 32-bit words if swapped.
Definition at line 840 of file SiStripRawToDigiUnpacker.cc.
References TauDecayModes::dec, funct::false, newFWLiteAna::found, headerBytes_, input, edm::isDebugEnabled(), LogTrace, sistrip::mlRawToDigi_, hltrates_dqm_sourceclient-live_cfg::offset, and contentValuesCheck::ss.
|
inlineprivate |
order of strips
Definition at line 174 of file SiStripRawToDigiUnpacker.h.
|
inline |
Definition at line 85 of file SiStripRawToDigiUnpacker.h.
Referenced by sistrip::RawToDigiModule::endStream().
|
inline |
verbosity
Definition at line 195 of file SiStripRawToDigiUnpacker.h.
Referenced by sistrip::RawToDigiModule::RawToDigiModule().
|
inlineprivate |
order of strips
Definition at line 169 of file SiStripRawToDigiUnpacker.h.
void sistrip::RawToDigiUnpacker::triggerFed | ( | const FEDRawDataCollection & | buffers, |
SiStripEventSummary & | summary, | ||
const uint32_t & | event | ||
) |
trigger info
Definition at line 727 of file SiStripRawToDigiUnpacker.cc.
References FEDRawData::data(), FEDRawDataCollection::FEDData(), RecoTauValidation_cfi::header, edm::isDebugEnabled(), FEDNumbering::lastFEDId(), FEDHeader::length, FEDTrailer::length, LogTrace, sistrip::mlRawToDigi_, once_, FEDRawData::size(), contentValuesCheck::ss, edmLumisInFiles::summary, groupFilesInBlocks::temp, and triggerFedId_.
Referenced by sistrip::RawToDigiModule::produce().
|
private |
fill DetSetVectors using registries
Definition at line 409 of file SiStripRawToDigiUnpacker.cc.
References cm_work_digis_, cm_work_registry_, filterCSVwithJSON::copy, Exception, extractCm_, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, SiStripPI::min, proc_work_digis_, proc_work_registry_, scope_work_digis_, scope_work_registry_, jetUpdater_cfi::sort, edm::DetSetVector< T >::swap(), virgin_work_digis_, virgin_work_registry_, zs_work_digis_, and zs_work_registry_.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), createDigis(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
private |
sets the SiStripEventSummary -> not yet implemented for FEDBuffer class
Definition at line 976 of file SiStripRawToDigiUnpacker.cc.
References sistrip::FEDDAQHeader::bxID(), sistrip::FEDBufferBase::daqEventType(), sistrip::FEDBufferBase::daqHeader(), sistrip::FEDBuffer::feHeader(), RecoTauValidation_cfi::header, sistrip::HEADER_TYPE_FULL_DEBUG, sistrip::FEDBufferBase::headerType(), sistrip::invalid32_, edm::isDebugEnabled(), sistrip::FEDDAQHeader::l1ID(), LogTrace, once_, contentValuesCheck::ss, edmLumisInFiles::summary, and triggerFedId_.
Referenced by createDigis().
|
inline |
EventSummary update request -> not yet implemented for FEDBuffer class.
Definition at line 197 of file SiStripRawToDigiUnpacker.h.
Referenced by sistrip::RawToDigiModule::RawToDigiModule().
|
friend |
Definition at line 32 of file SiStripRawToDigiUnpacker.h.
|
private |
Definition at line 163 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 156 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 147 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 146 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 149 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
other values
Definition at line 140 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 145 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis(), and update().
|
private |
Definition at line 132 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 133 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 142 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
configurables
Definition at line 131 of file SiStripRawToDigiUnpacker.h.
Referenced by locateStartOfFedBuffer().
|
private |
Definition at line 148 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 137 of file SiStripRawToDigiUnpacker.h.
|
private |
Definition at line 141 of file SiStripRawToDigiUnpacker.h.
Referenced by triggerFed(), and updateEventSummary().
|
private |
Definition at line 162 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 155 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 144 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 161 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 154 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 134 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis(), triggerFed(), and updateEventSummary().
|
private |
Definition at line 136 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis(), and RawToDigiUnpacker().
|
private |
Definition at line 143 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 135 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 160 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 153 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 165 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
digi collections
Definition at line 159 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
registries
Definition at line 152 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().