Input: edm::DetSetVector<SiStripDigi>. Output: FEDRawDataCollection. More...
#include <SiStripDigiToRaw.h>
Public Member Functions | |
void | createFedBuffers (edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< edm::DetSetVector< SiStripDigi > > &digis, std::unique_ptr< FEDRawDataCollection > &buffers) |
void | createFedBuffers (edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< edm::DetSetVector< SiStripRawDigi > > &digis, std::unique_ptr< FEDRawDataCollection > &buffers) |
void | createFedBuffers (edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< FEDRawDataCollection > &rawbuffers, edm::Handle< edm::DetSetVector< SiStripDigi > > &digis, std::unique_ptr< FEDRawDataCollection > &buffers) |
void | createFedBuffers (edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< FEDRawDataCollection > &rawbuffers, edm::Handle< edm::DetSetVector< SiStripRawDigi > > &digis, std::unique_ptr< FEDRawDataCollection > &buffers) |
DigiToRaw (FEDReadoutMode, bool use_fed_key) | |
void | fedReadoutMode (FEDReadoutMode mode) |
~DigiToRaw () | |
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_ |
bool | useFedKey_ |
Input: edm::DetSetVector<SiStripDigi>. Output: FEDRawDataCollection.
Definition at line 28 of file SiStripDigiToRaw.h.
sistrip::DigiToRaw::DigiToRaw | ( | FEDReadoutMode | mode, |
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 55 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 62 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 70 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 78 of file SiStripDigiToRaw.cc.
References universalConfigTemplate::collection, and createFedBuffers_().
|
private |
Definition at line 90 of file SiStripDigiToRaw.cc.
References universalConfigTemplate::collection.
Referenced by createFedBuffers().
|
private |
Definition at line 103 of file SiStripDigiToRaw.cc.
References 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, sistrip::FEDBufferGenerator::generateBuffer(), sistrip::FEDBufferGenerator::getBufferFormat(), sistrip::FEDBufferGenerator::getDAQEventType(), sistrip::HEADER_TYPE_FULL_DEBUG, sistrip::TrackerSpecialHeader::headerType(), edm::EventBase::id(), sistrip::invalid32_, sistrip::invalid_, edm::isDebugEnabled(), edm::HandleBase::isValid(), crabWrapper::key, sistrip::FEDFEHeader::lengthInBytes(), mode_, sistrip::TrackerSpecialHeader::print(), sistrip::FEDFEHeader::print(), sistrip::READOUT_MODE_PREMIX_RAW, sistrip::READOUT_MODE_SCOPE, sistrip::TrackerSpecialHeader::readoutMode(), sistrip::FEDBufferGenerator::setFEUnitEnables(), sistrip::FEDBufferGenerator::setHeaderType(), sistrip::FEDBufferGenerator::setL1ID(), sistrip::FEDBufferGenerator::setReadoutMode(), FEDRawData::size(), digitizers_cfi::strip, STRIP(), sistrip::STRIPS_PER_FEDCH, sistrip::FEDBufferGenerator::trackerSpecialHeader(), useFedKey_, and relativeConstraints::value.
|
inline |
Definition at line 57 of file SiStripDigiToRaw.h.
References begin, and ALCARECOPromptCalibProdSiPixelAli0T_cff::mode.
|
inlineprivate |
Definition at line 436 of file SiStripDigiToRaw.cc.
Referenced by createFedBuffers_().
|
inlineprivate |
|
private |
Definition at line 83 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_().