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) |
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 35 of file SiStripSpyUnpacker.h.
Definition at line 34 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 39 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 | ||
) |
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 47 of file SiStripSpyUnpacker.cc.
References sistrip::FEDSpyChannelUnpacker::adc(), sistrip::DetSetVectorFiller< T, dsvIsSparse >::addItem(), allowIncompleteEvents_, officialStyle::chan, sistrip::DetSetVectorFiller< T, dsvIsSparse >::createDetSetVector(), FEDRawData::data(), alignCSCRings::e, Exception, sistrip::FED_ID_MAX, sistrip::FED_ID_MIN, sistrip::FEDCH_PER_FED, SiStripFedCabling::fedConnections(), FEDRawDataCollection::FEDData(), SiStripFedCabling::fedIds(), SiStripFedKey::fedIndex(), sistrip::FEDSpyChannelUnpacker::hasData(), input, edm::isDebugEnabled(), relval_steps::key, sistrip::DetSetVectorFiller< T, dsvIsSparse >::newChannel(), FEDRawData::size(), sistrip::SPY_SAMPLES_PER_CHANNEL, contentValuesCheck::ss, edm::DetSetVector< T >::swap(), and cms::Exception::what().
Referenced by sistrip::SpyUnpackerModule::produce().
|
private |
Definition at line 53 of file SiStripSpyUnpacker.h.
Referenced by createDigis().