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::auto_ptr< FEDRawDataCollection > &buffers) |
void | createFedBuffers (edm::Event &, edm::ESHandle< SiStripFedCabling > &cabling, edm::Handle< edm::DetSetVector< SiStripRawDigi > > &digis, std::auto_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::auto_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 29 of file SiStripDigiToRaw.h.
sistrip::DigiToRaw::DigiToRaw | ( | FEDReadoutMode | mode, |
bool | use_fed_key | ||
) |
Definition at line 21 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::auto_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 54 of file SiStripDigiToRaw.cc.
References runEdmFileComparison::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::auto_ptr< FEDRawDataCollection > & | buffers | ||
) |
Definition at line 61 of file SiStripDigiToRaw.cc.
References runEdmFileComparison::collection, and createFedBuffers_().
|
private |
Definition at line 69 of file SiStripDigiToRaw.cc.
References bufferGenerator_, runEdmFileComparison::collection, edm::DetSet< T >::data, alignCSCRings::e, edm::EventID::event(), cppFunctionSkipper::exception, sistrip::FEDBufferGenerator::generateBuffer(), edm::EventBase::id(), sistrip::invalid32_, sistrip::invalid_, edm::isDebugEnabled(), combine::key, mode_, sistrip::READOUT_MODE_SCOPE, sistrip::FEDBufferGenerator::setL1ID(), strip(), STRIP(), sistrip::STRIPS_PER_FEDCH, useFedKey_, and relativeConstraints::value.
Referenced by createFedBuffers().
|
inline |
|
inlineprivate |
Definition at line 165 of file SiStripDigiToRaw.cc.
Referenced by createFedBuffers_().
|
inlineprivate |
|
private |
Definition at line 60 of file SiStripDigiToRaw.h.
Referenced by createFedBuffers_(), and DigiToRaw().
|
private |
Definition at line 58 of file SiStripDigiToRaw.h.
Referenced by createFedBuffers_(), DigiToRaw(), and fedReadoutMode().
|
private |
Definition at line 59 of file SiStripDigiToRaw.h.
Referenced by createFedBuffers_().