Unpacks spy channel data into scope mode-like digis. More...
#include <SiStripSpyUnpacker.h>
Public Types | |
typedef std::vector< uint32_t > | Counters |
typedef edm::DetSetVector< SiStripRawDigi > | RawDigis |
Public Member Functions | |
void | createDigis (const SiStripFedCabling &, const FEDRawDataCollection &, RawDigis *pDigis, const std::vector< uint32_t > &ids, Counters *pTotalEventCounts, Counters *pL1ACounts, uint32_t *aRunRef) const |
Creates the scope mode digis for the supplied FED IDs or detIds and stores event counters. More... | |
SpyUnpacker (const bool allowIncompleteEvents) | |
Constructor. More... | |
~SpyUnpacker () | |
Destructor. More... | |
Private Attributes | |
const bool | allowIncompleteEvents_ |
Unpacks spy channel data into scope mode-like digis.
TODO: Implement unpacking by detID.
— Modifications: ---— A.-M. Magnan, 11/03/10: change Counters map to vectors: ---— save space and provide faster access to elements. ---— A.-M. Magnan, 25/02/10: add run number to the event ---— A.-M. Magnan, 13/01/10: change Counters map to be keyed by fedid
Definition at line 31 of file SiStripSpyUnpacker.h.
typedef std::vector<uint32_t> sistrip::SpyUnpacker::Counters |
Definition at line 34 of file SiStripSpyUnpacker.h.
Definition at line 33 of file SiStripSpyUnpacker.h.
sistrip::SpyUnpacker::SpyUnpacker | ( | const bool | allowIncompleteEvents | ) |
Constructor.
Definition at line 29 of file SiStripSpyUnpacker.cc.
References edm::isDebugEnabled(), and LogTrace.
sistrip::SpyUnpacker::~SpyUnpacker | ( | ) |
Destructor.
Definition at line 36 of file SiStripSpyUnpacker.cc.
References edm::isDebugEnabled(), and LogTrace.
void sistrip::SpyUnpacker::createDigis | ( | const SiStripFedCabling & | cabling, |
const FEDRawDataCollection & | buffers, | ||
RawDigis * | pDigis, | ||
const std::vector< uint32_t > & | ids, | ||
Counters * | pTotalEventCounts, | ||
Counters * | pL1ACounts, | ||
uint32_t * | aRunRef | ||
) | const |
Creates the scope mode digis for the supplied FED IDs or detIds and stores event counters.
If FED IDs are supplied (useFedId=true), unpacks all channels found in the cabling with data. If an empty vector of IDs is supplied, it unpacks all it can find in the FEDRawDataCollection.
Definition at line 43 of file SiStripSpyUnpacker.cc.
References sistrip::FEDSpyChannelUnpacker::adc(), sistrip::DetSetVectorFiller< T, dsvIsSparse >::addItem(), allowIncompleteEvents_, edmScanValgrind::buffer, officialStyle::chan, sistrip::DetSetVectorFiller< T, dsvIsSparse >::createDetSetVector(), sistrip::FED_ID_MAX, sistrip::FED_ID_MIN, sistrip::FEDCH_PER_FED, SiStripFedCabling::fedConnections(), FEDRawDataCollection::FEDData(), SiStripFedCabling::fedIds(), sistrip::FEDSpyChannelUnpacker::hasData(), input, sistrip::invalid_, edm::isDebugEnabled(), submitPVResolutionJobs::key, sistrip::DetSetVectorFiller< T, dsvIsSparse >::newChannel(), sistrip::preconstructCheckFEDSpyBuffer(), sistrip::SPY_SAMPLES_PER_CHANNEL, contentValuesCheck::ss, sistrip::SUCCESS, and edm::DetSetVector< T >::swap().
Referenced by sistrip::SpyUnpackerModule::produce().
|
private |
Definition at line 54 of file SiStripSpyUnpacker.h.
Referenced by createDigis().