#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, DetIdCollection &, 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 | 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... | |
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 | handleException (std::string method_name, std::string extra_info="") |
catches all possible exceptions and rethrows them as cms::Exceptions More... | |
void | physicalOrder (uint16_t &readout_order, uint16_t &physical_order) |
order of strips More... | |
RawToDigiUnpacker () | |
private default constructor 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_ |
std::vector< SiStripDigi > | zs_work_digis_ |
digi collections More... | |
std::vector< Registry > | zs_work_registry_ |
registries More... | |
Friends | |
class | RawToClustersLazyUnpacker |
Definition at line 29 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 24 of file SiStripRawToDigiUnpacker.cc.
References edm::isDebugEnabled(), LogTrace, and unpackBadChannels_.
sistrip::RawToDigiUnpacker::~RawToDigiUnpacker | ( | ) |
default constructor
Definition at line 53 of file SiStripRawToDigiUnpacker.cc.
References edm::isDebugEnabled(), and LogTrace.
|
private |
private default constructor
|
private |
method to clear registries and digi collections
Definition at line 852 of file SiStripRawToDigiUnpacker.cc.
References 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, | ||
DetIdCollection & | detids, | ||
RawDigis & | common_mode | ||
) |
creates digis
extract readout mode
FED channel
create unpacker
unpack -> add check to make sure strip < nstrips && strip > last strip......
create unpacker
unpack -> add check to make sure strip < nstrips && strip > last strip......
create unpacker
unpack -> add check to make sure strip < nstrips && strip > last strip......
create unpacker
unpack -> add check to make sure strip < nstrips && strip > last strip......
create unpacker and unpack -> add check to make sure strip < nstrips && strip > last strip......
create unpacker
unpack -> add check to make sure strip < nstrips && strip > last strip......
create unpacker
unpack -> add check to make sure strip < nstrips && strip > last strip......
create unpacker
unpack -> add check to make sure strip < nstrips && strip > last strip......
Definition at line 68 of file SiStripRawToDigiUnpacker.cc.
References sistrip::FEDZSChannelUnpacker::adc(), sistrip::FEDRawChannelUnpacker::adc(), sistrip::FEDBSChannelUnpacker::adc(), sistrip::FEDZSChannelUnpacker::adcPreMix(), sistrip::APV_LATENCY, assert(), cleanupWorkVectors(), cm_work_digis_, cm_work_registry_, FEDRawData::data(), TauDecayModes::dec, doAPVEmulatorCheck_, doFullCorruptBufferChecks_, dumpRawData(), alignCSCRings::e, errorThreshold_, event_, Exception, extractCm_, sistrip::FED_CABLING, fedBufferDumpFreq_, sistrip::FEDCH_PER_FEUNIT, SiStripFedCabling::fedConnections(), FEDRawDataCollection::FEDData(), fedEventDumpFreq_, SiStripFedCabling::fedIds(), HcalMonitorModule_cfi::feds, sistrip::FINE_DELAY, first_, sistrip::FEDZSChannelUnpacker::hasData(), sistrip::FEDRawChannelUnpacker::hasData(), sistrip::FEDBSChannelUnpacker::hasData(), i, input, sistrip::invalid32_, sistrip::invalid_, edm::isDebugEnabled(), SiStripEventSummary::isSet(), relval_steps::key, legacy_, LogTrace, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, sistrip::mlRawToDigi_, alignBH_cfg::mode, gen::n, sistrip::PACKET_CODE_VIRGIN_RAW, sistrip::PACKET_CODE_VIRGIN_RAW10, sistrip::PACKET_CODE_VIRGIN_RAW8_BOTBOT, sistrip::PACKET_CODE_VIRGIN_RAW8_TOPBOT, sistrip::FEDZSChannelUnpacker::preMixRawModeUnpacker(), proc_work_digis_, proc_work_registry_, sistrip::FEDRawChannelUnpacker::procRawModeUnpacker(), edm::EDCollection< T >::push_back(), quiet_, sistrip::READOUT_MODE_LEGACY_INVALID, sistrip::READOUT_MODE_LEGACY_PREMIX_RAW, sistrip::READOUT_MODE_LEGACY_PROC_RAW_FAKE, sistrip::READOUT_MODE_LEGACY_PROC_RAW_REAL, sistrip::READOUT_MODE_LEGACY_SCOPE, sistrip::READOUT_MODE_LEGACY_VIRGIN_RAW_FAKE, sistrip::READOUT_MODE_LEGACY_VIRGIN_RAW_REAL, sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_FAKE, sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_LITE_FAKE, sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_LITE_REAL, sistrip::READOUT_MODE_LEGACY_ZERO_SUPPRESSED_REAL, sistrip::READOUT_MODE_PREMIX_RAW, sistrip::READOUT_MODE_PROC_RAW, sistrip::READOUT_MODE_SCOPE, sistrip::READOUT_MODE_VIRGIN_RAW, sistrip::READOUT_MODE_ZERO_SUPPRESSED, sistrip::READOUT_MODE_ZERO_SUPPRESSED_FAKE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_BOTBOT, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_BOTBOT_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_CMOVERRIDE, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_TOPBOT, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE8_TOPBOT_CMOVERRIDE, readoutOrder(), edm::EDCollection< T >::reserve(), SiStripEventSummary::runType(), sistrip::FEDZSChannelUnpacker::sampleNumber(), sistrip::FEDBSChannelUnpacker::sampleNumber(), scope_work_digis_, scope_work_registry_, sistrip::FEDRawChannelUnpacker::scopeModeUnpacker(), edm::EDCollection< T >::size(), FEDRawData::size(), contentValuesCheck::ss, triggerFedId_, unpackBadChannels_, update(), updateEventSummary(), useDaqRegister_, useFedKey_, SiStripEventSummary::valid(), virgin_work_digis_, virgin_work_registry_, sistrip::FEDRawChannelUnpacker::virginRawModeUnpacker(), sistrip::FEDBSChannelUnpacker::virginRawModeUnpacker(), cms::Exception::what(), sistrip::FEDZSChannelUnpacker::zeroSuppressedLiteModeUnpacker(), sistrip::FEDBSChannelUnpacker::zeroSuppressedLiteModeUnpacker(), sistrip::FEDZSChannelUnpacker::zeroSuppressedModeUnpacker(), zs_work_digis_, and zs_work_registry_.
Referenced by sistrip::RawToDigiModule::produce().
|
inline |
Definition at line 184 of file SiStripRawToDigiUnpacker.h.
|
inline |
Definition at line 182 of file SiStripRawToDigiUnpacker.h.
|
staticprivate |
dumps raw data to stdout (NB: payload is byte-swapped,headers/trailer are not).
Definition at line 1159 of file SiStripRawToDigiUnpacker.cc.
References FEDRawData::data(), TauDecayModes::dec, relativeConstraints::empty, i, sistrip::invalid32_, and FEDRawData::size().
Referenced by createDigis().
|
inline |
Definition at line 180 of file SiStripRawToDigiUnpacker.h.
|
inlineprivate |
returns buffer format
Definition at line 163 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 |
|
private |
catches all possible exceptions and rethrows them as cms::Exceptions
Definition at line 1235 of file SiStripRawToDigiUnpacker.cc.
References alignCSCRings::e, cppFunctionSkipper::exception, edm::isDebugEnabled(), sistrip::mlRawToDigi_, and contentValuesCheck::ss.
|
inline |
Definition at line 186 of file SiStripRawToDigiUnpacker.h.
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 981 of file SiStripRawToDigiUnpacker.cc.
References FEDRawData::data(), TauDecayModes::dec, newFWLiteAna::found, headerBytes_, edm::isDebugEnabled(), LogTrace, sistrip::mlRawToDigi_, hltrates_dqm_sourceclient-live_cfg::offset, FEDRawData::resize(), FEDRawData::size(), and contentValuesCheck::ss.
|
inlineprivate |
order of strips
Definition at line 158 of file SiStripRawToDigiUnpacker.h.
|
inline |
verbosity
Definition at line 176 of file SiStripRawToDigiUnpacker.h.
|
inlineprivate |
order of strips
Definition at line 153 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
void sistrip::RawToDigiUnpacker::triggerFed | ( | const FEDRawDataCollection & | buffers, |
SiStripEventSummary & | summary, | ||
const uint32_t & | event | ||
) |
trigger info
Definition at line 863 of file SiStripRawToDigiUnpacker.cc.
References SiStripEventSummary::bx(), SiStripEventSummary::commissioningInfo(), fedt_struct::conscheck, FEDRawData::data(), SiStripEventSummary::event(), FEDRawDataCollection::FEDData(), TFHeaderDescription::getBunchCrossing(), TFHeaderDescription::getFedEventNumber(), edm::isDebugEnabled(), SiStripEventSummary::isSet(), FEDNumbering::lastFEDId(), LogTrace, sistrip::mlRawToDigi_, once_, FEDRawData::size(), contentValuesCheck::ss, edmLumisInFiles::summary, groupFilesInBlocks::temp, SiStripEventSummary::triggerFed(), and triggerFedId_.
Referenced by sistrip::RawToDigiModule::produce().
|
private |
fill DetSetVectors using registries
Definition at line 586 of file SiStripRawToDigiUnpacker.cc.
References cm_work_digis_, cm_work_registry_, filterCSVwithJSON::copy, cond::rpcobgas::detid, end, Exception, extractCm_, min(), proc_work_digis_, proc_work_registry_, scope_work_digis_, scope_work_registry_, python.multivaluedict::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__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), createDigis(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
|
private |
sets the SiStripEventSummary -> not yet implemented for FEDBuffer class
Definition at line 1123 of file SiStripRawToDigiUnpacker.cc.
References SiStripEventSummary::commissioningInfo(), sistrip::FEDBufferBase::daqEventType(), sistrip::FEDFullDebugHeader::daqRegister(), sistrip::FEDFullDebugHeader::daqRegister2(), SiStripEventSummary::fedReadoutMode(), sistrip::FEDBuffer::feHeader(), sistrip::HEADER_TYPE_FULL_DEBUG, sistrip::FEDBufferBase::headerType(), sistrip::invalid32_, edm::isDebugEnabled(), SiStripEventSummary::isSet(), LogTrace, once_, contentValuesCheck::ss, edmLumisInFiles::summary, SiStripEventSummary::triggerFed(), and triggerFedId_.
Referenced by createDigis().
|
inline |
EventSummary update request -> not yet implemented for FEDBuffer class.
Definition at line 178 of file SiStripRawToDigiUnpacker.h.
|
friend |
Definition at line 31 of file SiStripRawToDigiUnpacker.h.
|
private |
Definition at line 148 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 141 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 132 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 131 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 134 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
other values
Definition at line 125 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 130 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis(), and update().
|
private |
Definition at line 117 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 118 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 127 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
configurables
Definition at line 116 of file SiStripRawToDigiUnpacker.h.
Referenced by locateStartOfFedBuffer().
|
private |
Definition at line 133 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 122 of file SiStripRawToDigiUnpacker.h.
|
private |
Definition at line 126 of file SiStripRawToDigiUnpacker.h.
Referenced by triggerFed(), and updateEventSummary().
|
private |
Definition at line 147 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 140 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 129 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 146 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 139 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 119 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis(), triggerFed(), and updateEventSummary().
|
private |
Definition at line 121 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis(), and RawToDigiUnpacker().
|
private |
Definition at line 128 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 120 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 145 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 138 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
digi collections
Definition at line 144 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
registries
Definition at line 137 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().