#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 | 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 | 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 22 of file SiStripRawToDigiUnpacker.cc.
References edm::isDebugEnabled(), LogTrace, and unpackBadChannels_.
sistrip::RawToDigiUnpacker::~RawToDigiUnpacker | ( | ) |
default constructor
Definition at line 51 of file SiStripRawToDigiUnpacker.cc.
References edm::isDebugEnabled(), and LogTrace.
|
private |
private default constructor
|
private |
method to clear registries and digi collections
Definition at line 746 of file SiStripRawToDigiUnpacker.cc.
References 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
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 59 of file SiStripRawToDigiUnpacker.cc.
References sistrip::FEDZSChannelUnpacker::adc(), sistrip::FEDRawChannelUnpacker::adc(), sistrip::APV_LATENCY, cleanupWorkVectors(), cm_work_digis_, cm_work_registry_, FEDRawData::data(), doAPVEmulatorCheck_, doFullCorruptBufferChecks_, dumpRawData(), alignCSCRings::e, errorThreshold_, event_, edm::hlt::Exception, extractCm_, sistrip::FED_CABLING, fedBufferDumpFreq_, sistrip::FEDCH_PER_FEUNIT, SiStripFedCabling::fedConnections(), FEDRawDataCollection::FEDData(), fedEventDumpFreq_, SiStripFedCabling::fedIds(), sistrip::FINE_DELAY, first_, sistrip::FEDZSChannelUnpacker::hasData(), sistrip::FEDRawChannelUnpacker::hasData(), i, input, sistrip::invalid32_, sistrip::invalid_, edm::isDebugEnabled(), SiStripEventSummary::isSet(), combine::key, LogTrace, FEDNumbering::MAXSiStripFEDID, FEDNumbering::MINSiStripFEDID, sistrip::mlRawToDigi_, alignBH_cfg::mode, n, proc_work_digis_, proc_work_registry_, sistrip::FEDRawChannelUnpacker::procRawModeUnpacker(), edm::EDCollection< T >::push_back(), quiet_, sistrip::READOUT_MODE_PROC_RAW, sistrip::READOUT_MODE_SCOPE, sistrip::READOUT_MODE_VIRGIN_RAW, sistrip::READOUT_MODE_ZERO_SUPPRESSED, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE, readoutOrder(), edm::EDCollection< T >::reserve(), SiStripEventSummary::runType(), sistrip::FEDZSChannelUnpacker::sampleNumber(), scope_work_digis_, scope_work_registry_, sistrip::FEDRawChannelUnpacker::scopeModeUnpacker(), edm::EDCollection< T >::size(), FEDRawData::size(), triggerFedId_, unpackBadChannels_, update(), updateEventSummary(), useDaqRegister_, useFedKey_, SiStripEventSummary::valid(), virgin_work_digis_, virgin_work_registry_, sistrip::FEDRawChannelUnpacker::virginRawModeUnpacker(), cms::Exception::what(), sistrip::FEDZSChannelUnpacker::zeroSuppressedLiteModeUnpacker(), sistrip::FEDZSChannelUnpacker::zeroSuppressedModeUnpacker(), zs_work_digis_, and zs_work_registry_.
Referenced by sistrip::RawToDigiModule::produce().
|
inline |
Definition at line 186 of file SiStripRawToDigiUnpacker.h.
|
inline |
Definition at line 184 of file SiStripRawToDigiUnpacker.h.
|
staticprivate |
dumps raw data to stdout (NB: payload is byte-swapped,headers/trailer are not).
Definition at line 1051 of file SiStripRawToDigiUnpacker.cc.
References FEDRawData::data(), relativeConstraints::empty, i, sistrip::invalid32_, and FEDRawData::size().
Referenced by createDigis(), and sistrip::RawToClustersLazyUnpacker::fill().
|
inline |
Definition at line 182 of file SiStripRawToDigiUnpacker.h.
|
inlineprivate |
returns buffer format
Definition at line 160 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 |
returns buffer readout mode
Definition at line 168 of file SiStripRawToDigiUnpacker.h.
References sistrip::FED_PROC_RAW, sistrip::FED_SCOPE_MODE, sistrip::FED_VIRGIN_RAW, sistrip::FED_ZERO_SUPPR, sistrip::FED_ZERO_SUPPR_LITE, and sistrip::UNKNOWN_FED_READOUT_MODE.
|
private |
catches all possible exceptions and rethrows them as cms::Exceptions
Definition at line 1127 of file SiStripRawToDigiUnpacker.cc.
References alignCSCRings::e, cppFunctionSkipper::exception, edm::isDebugEnabled(), and sistrip::mlRawToDigi_.
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 873 of file SiStripRawToDigiUnpacker.cc.
References FEDRawData::data(), newFWLiteAna::found, headerBytes_, edm::isDebugEnabled(), LogTrace, sistrip::mlRawToDigi_, evf::evtn::offset(), FEDRawData::resize(), and FEDRawData::size().
|
inlineprivate |
order of strips
Definition at line 155 of file SiStripRawToDigiUnpacker.h.
|
inline |
verbosity
Definition at line 178 of file SiStripRawToDigiUnpacker.h.
|
inlineprivate |
order of strips
Definition at line 150 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 755 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(), edmLumisInFiles::summary, groupFilesInBlocks::temp, SiStripEventSummary::triggerFed(), and triggerFedId_.
Referenced by sistrip::RawToDigiModule::produce().
|
private |
fill DetSetVectors using registries
Definition at line 480 of file SiStripRawToDigiUnpacker.cc.
References cm_work_digis_, cm_work_registry_, filterCSVwithJSON::copy, cond::rpcobgas::detid, end, edm::hlt::Exception, extractCm_, bookConverter::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__(), relval_steps.Matrix::__setitem__(), relval_steps.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(), relval_steps.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 1015 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_, edmLumisInFiles::summary, SiStripEventSummary::triggerFed(), and triggerFedId_.
Referenced by createDigis().
|
inline |
EventSummary update request -> not yet implemented for FEDBuffer class.
Definition at line 180 of file SiStripRawToDigiUnpacker.h.
|
friend |
Definition at line 31 of file SiStripRawToDigiUnpacker.h.
|
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 |
Definition at line 130 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 129 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 131 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
other values
Definition at line 123 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 128 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis(), and update().
|
private |
Definition at line 115 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 116 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 125 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
configurables
Definition at line 114 of file SiStripRawToDigiUnpacker.h.
Referenced by locateStartOfFedBuffer().
|
private |
Definition at line 120 of file SiStripRawToDigiUnpacker.h.
|
private |
Definition at line 124 of file SiStripRawToDigiUnpacker.h.
Referenced by triggerFed(), and updateEventSummary().
|
private |
Definition at line 144 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 137 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 127 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 143 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 136 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 117 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis(), triggerFed(), and updateEventSummary().
|
private |
Definition at line 119 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis(), and RawToDigiUnpacker().
|
private |
Definition at line 126 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 118 of file SiStripRawToDigiUnpacker.h.
Referenced by createDigis().
|
private |
Definition at line 142 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
Definition at line 135 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
digi collections
Definition at line 141 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().
|
private |
registries
Definition at line 134 of file SiStripRawToDigiUnpacker.h.
Referenced by cleanupWorkVectors(), createDigis(), and update().