Input: edm::DetSetVector<SiStripDigi>. Output: FEDRawDataCollection. More...
#include <SiStripDigiToRaw.h>
Private Member Functions | |
template<class Digi_t > | |
void | createFedBuffers_ (edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< edm::DetSetVector< Digi_t > > &digis, std::unique_ptr< FEDRawDataCollection > &buffers, bool zeroSuppressed) |
template<class Digi_t > | |
void | createFedBuffers_ (edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< FEDRawDataCollection > &rawbuffers, edm::Handle< edm::DetSetVector< Digi_t > > &digis, std::unique_ptr< FEDRawDataCollection > &buffers, bool zeroSuppressed) |
uint16_t | STRIP (const edm::DetSet< SiStripDigi >::const_iterator &it, const edm::DetSet< SiStripDigi >::const_iterator &begin) const |
uint16_t | STRIP (const edm::DetSet< SiStripRawDigi >::const_iterator &it, const edm::DetSet< SiStripRawDigi >::const_iterator &begin) const |
Private Attributes | |
FEDBufferGenerator | bufferGenerator_ |
FEDReadoutMode | mode_ |
uint8_t | packetCode_ |
bool | useFedKey_ |
WarningSummary | warnings_ |
Input: edm::DetSetVector<SiStripDigi>. Output: FEDRawDataCollection.
Definition at line 29 of file SiStripDigiToRaw.h.
sistrip::DigiToRaw::DigiToRaw | ( | FEDReadoutMode | mode, |
uint8_t | packetCode, | ||
bool | use_fed_key | ||
) |
Definition at line 22 of file SiStripDigiToRaw.cc.
References bufferGenerator_, edm::isDebugEnabled(), LogDebug, mode_, and sistrip::FEDBufferGenerator::setReadoutMode().
sistrip::DigiToRaw::~DigiToRaw | ( | ) |
void sistrip::DigiToRaw::createFedBuffers | ( | edm::Event & | event, |
edm::ESHandle< SiStripFedCabling > & | cabling, | ||
edm::Handle< edm::DetSetVector< SiStripDigi > > & | collection, | ||
std::unique_ptr< FEDRawDataCollection > & | buffers | ||
) |
Input: DetSetVector of SiStripDigis. Output: FEDRawDataCollection. Retrieves and iterates through FED buffers, extract FEDRawData from collection and (optionally) dumps raw data to stdout, locates start of FED buffer by identifying DAQ header, creates new Fed9UEvent object using current FEDRawData buffer, dumps FED buffer to stdout, retrieves data from various header fields
Definition at line 53 of file SiStripDigiToRaw.cc.
References universalConfigTemplate::collection, and createFedBuffers_().
Referenced by sistrip::DigiToRawModule::produce().
void sistrip::DigiToRaw::createFedBuffers | ( | edm::Event & | event, |
edm::ESHandle< SiStripFedCabling > & | cabling, | ||
edm::Handle< edm::DetSetVector< SiStripRawDigi > > & | digis, | ||
std::unique_ptr< FEDRawDataCollection > & | buffers | ||
) |
Definition at line 60 of file SiStripDigiToRaw.cc.
References universalConfigTemplate::collection, and createFedBuffers_().
void sistrip::DigiToRaw::createFedBuffers | ( | edm::Event & | event, |
edm::ESHandle< SiStripFedCabling > & | cabling, | ||
edm::Handle< FEDRawDataCollection > & | rawbuffers, | ||
edm::Handle< edm::DetSetVector< SiStripDigi > > & | digis, | ||
std::unique_ptr< FEDRawDataCollection > & | buffers | ||
) |
Definition at line 68 of file SiStripDigiToRaw.cc.
References universalConfigTemplate::collection, and createFedBuffers_().
void sistrip::DigiToRaw::createFedBuffers | ( | edm::Event & | event, |
edm::ESHandle< SiStripFedCabling > & | cabling, | ||
edm::Handle< FEDRawDataCollection > & | rawbuffers, | ||
edm::Handle< edm::DetSetVector< SiStripRawDigi > > & | digis, | ||
std::unique_ptr< FEDRawDataCollection > & | buffers | ||
) |
Definition at line 76 of file SiStripDigiToRaw.cc.
References universalConfigTemplate::collection, and createFedBuffers_().
|
private |
Definition at line 85 of file SiStripDigiToRaw.cc.
References universalConfigTemplate::collection.
Referenced by createFedBuffers().
|
private |
Definition at line 96 of file SiStripDigiToRaw.cc.
References sistrip::WarningSummary::add(), sistrip::TrackerSpecialHeader::apvAddressErrorRegister(), sistrip::TrackerSpecialHeader::apveAddress(), sistrip::TrackerSpecialHeader::bufferFormat(), bufferGenerator_, universalConfigTemplate::collection, gather_cfg::cout, sistrip::FEDBufferGenerator::daqHeader(), sistrip::FEDBufferGenerator::daqTrailer(), FEDRawData::data(), edm::DetSet< T >::data, MillePedeFileConverter_cfg::e, edm::EventID::event(), cppFunctionSkipper::exception, sistrip::FEDCH_PER_FEUNIT, SiStripFedCabling::fedConnections(), FEDRawDataCollection::FEDData(), SiStripFedCabling::fedIds(), sistrip::TrackerSpecialHeader::fedStatusRegister(), sistrip::TrackerSpecialHeader::feEnableRegister(), sistrip::FEDBufferGenerator::feHeader(), sistrip::TrackerSpecialHeader::feOverflowRegister(), sistrip::FEUNITS_PER_FED, dqm-mbProfile::format, sistrip::FEDBufferGenerator::generateBuffer(), sistrip::FEDBufferGenerator::getBufferFormat(), sistrip::FEDBufferGenerator::getDAQEventType(), sistrip::HEADER_TYPE_FULL_DEBUG, sistrip::HEADER_TYPE_INVALID, sistrip::TrackerSpecialHeader::headerType(), edm::EventBase::id(), sistrip::invalid32_, sistrip::invalid_, edm::isDebugEnabled(), edm::HandleBase::isValid(), crabWrapper::key, sistrip::FEDFEHeader::lengthInBytes(), mode_, sistrip::PACKET_CODE_ZERO_SUPPRESSED10, packetCode_, sistrip::TrackerSpecialHeader::print(), sistrip::FEDFEHeader::print(), sistrip::READOUT_MODE_PREMIX_RAW, sistrip::READOUT_MODE_SCOPE, sistrip::READOUT_MODE_ZERO_SUPPRESSED, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10, sistrip::READOUT_MODE_ZERO_SUPPRESSED_LITE10_CMOVERRIDE, sistrip::TrackerSpecialHeader::readoutMode(), sistrip::FEDBufferGenerator::setFEUnitEnables(), sistrip::FEDBufferGenerator::setHeaderType(), sistrip::FEDBufferGenerator::setL1ID(), sistrip::FEDBufferGenerator::setReadoutMode(), FEDRawData::size(), contentValuesCheck::ss, str, digitizers_cfi::strip, STRIP(), sistrip::STRIPS_PER_FEDCH, sistrip::FEDBufferGenerator::trackerSpecialHeader(), useFedKey_, relativeConstraints::value, and warnings_.
|
inline |
Definition at line 56 of file SiStripDigiToRaw.h.
References ALCARECOPromptCalibProdSiPixelAli0T_cff::mode.
|
inline |
Definition at line 58 of file SiStripDigiToRaw.h.
References begin, and apvshotsanalyzer_cfi::zeroSuppressed.
Referenced by sistrip::DigiToRawModule::endStream().
|
inlineprivate |
Definition at line 440 of file SiStripDigiToRaw.cc.
Referenced by createFedBuffers_().
|
inlineprivate |
|
private |
Definition at line 84 of file SiStripDigiToRaw.h.
Referenced by createFedBuffers_(), and DigiToRaw().
|
private |
Definition at line 81 of file SiStripDigiToRaw.h.
Referenced by createFedBuffers_(), and DigiToRaw().
|
private |
Definition at line 82 of file SiStripDigiToRaw.h.
Referenced by createFedBuffers_().
|
private |
Definition at line 83 of file SiStripDigiToRaw.h.
Referenced by createFedBuffers_().
|
private |
Definition at line 86 of file SiStripDigiToRaw.h.
Referenced by createFedBuffers_().