#include <SiStripSpyEventMatcher.h>
Classes | |
class | CountersWrapper |
class | EventKey |
struct | MatchingOutput |
class | SpyDataCollections |
Public Types | |
typedef edm::EventID | EventID |
typedef std::set< EventID > | SpyEventList |
Public Member Functions | |
void | getCollections (const edm::EventPrincipal &event, const uint32_t eventId, const uint8_t apvAddress, const SiStripFedCabling &cabling, MatchingOutput &matchingOutput) |
void | getMatchedCollections (const uint32_t eventId, const uint8_t apvAddress, const SpyEventList *matchingEvents, const SiStripFedCabling &cabling, SpyDataCollections &collectionsToCreate) |
void | initialize () |
const SpyEventList * | matchesForEvent (const uint32_t eventId, const uint8_t apvAddress) const |
SpyEventMatcher (const edm::ParameterSet &config) | |
virtual | ~SpyEventMatcher () |
Private Types | |
typedef std::vector< uint32_t > | Counters |
typedef boost::shared_ptr < CountersWrapper > | CountersPtr |
typedef edm::VectorInputSource | Source |
Private Member Functions | |
void | addNextEventToMap (const edm::EventPrincipal &nextSpyEvent) |
std::unique_ptr< Source > | constructSource (const edm::ParameterSet &sourceConfig) |
void | operator() (const edm::EventPrincipal &event) |
Static Private Member Functions | |
static void | findMatchingFeds (const uint32_t eventId, const uint8_t apvAddress, CountersPtr totalEventCounters, CountersPtr l1aCounters, CountersPtr apvAddresses, std::set< uint16_t > &matchingFeds) |
static CountersPtr | getCounters (const edm::EventPrincipal &event, const edm::InputTag &tag, const bool mapKeyIsByFedID=true) |
template<class T > | |
static const T * | getProduct (const edm::EventPrincipal &event, const edm::InputTag &tag) |
static void | mergeMatchingData (const std::set< uint16_t > &matchingFeds, const FEDRawDataCollection &inputRawData, CountersPtr inputTotalEventCounters, CountersPtr inputL1ACounters, CountersPtr inputAPVAddresses, const edm::DetSetVector< SiStripRawDigi > *inputScopeDigis, const edm::DetSetVector< SiStripRawDigi > *inputPayloadDigis, const edm::DetSetVector< SiStripRawDigi > *inputReorderedDigis, const edm::DetSetVector< SiStripRawDigi > *inputVirginRawDigis, FEDRawDataCollection &outputRawData, std::vector< uint32_t > &outputTotalEventCounters, std::vector< uint32_t > &outputL1ACounters, std::vector< uint32_t > &outputAPVAddresses, std::vector< edm::DetSet< SiStripRawDigi > > *outputScopeDigisVector, std::vector< edm::DetSet< SiStripRawDigi > > *outputPayloadDigisVector, std::vector< edm::DetSet< SiStripRawDigi > > *outputReorderedDigisVector, std::vector< edm::DetSet< SiStripRawDigi > > *outputVirginRawDigisVector, const SiStripFedCabling &cabling) |
Private Attributes | |
edm::InputTag | apvAddressesTag_ |
uint32_t | counterDiffMax_ |
std::map< EventKey, SpyEventList > | eventMatches_ |
std::unique_ptr < edm::EventPrincipal > | eventPrincipal_ |
edm::InputTag | l1aCountersTag_ |
edm::InputTag | payloadDigisTag_ |
std::unique_ptr < edm::ProcessConfiguration > | processConfiguration_ |
std::shared_ptr < edm::ProductRegistry > | productRegistry_ |
edm::InputTag | rawDataTag_ |
edm::InputTag | reorderedDigisTag_ |
edm::InputTag | scopeDigisTag_ |
std::unique_ptr < edm::VectorInputSource > const | source_ |
edm::InputTag | totalEventCountersTag_ |
edm::InputTag | virginRawDigisTag_ |
Static Private Attributes | |
static const char * | mlLabel_ = "SpyEventMatcher" |
Definition at line 31 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 101 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 119 of file SiStripSpyEventMatcher.h.
Definition at line 72 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 122 of file SiStripSpyEventMatcher.h.
typedef std::set<EventID> sistrip::SpyEventMatcher::SpyEventList |
Definition at line 73 of file SiStripSpyEventMatcher.h.
sistrip::SpyEventMatcher::SpyEventMatcher | ( | const edm::ParameterSet & | config | ) |
Definition at line 48 of file SiStripSpyEventMatcher.cc.
|
virtual |
Definition at line 46 of file SiStripSpyEventMatcher.cc.
|
private |
Definition at line 95 of file SiStripSpyEventMatcher.cc.
|
private |
Definition at line 74 of file SiStripSpyEventMatcher.cc.
|
staticprivate |
Definition at line 238 of file SiStripSpyEventMatcher.cc.
void sistrip::SpyEventMatcher::getCollections | ( | const edm::EventPrincipal & | event, |
const uint32_t | eventId, | ||
const uint8_t | apvAddress, | ||
const SiStripFedCabling & | cabling, | ||
MatchingOutput & | matchingOutput | ||
) |
Definition at line 165 of file SiStripSpyEventMatcher.cc.
|
staticprivate |
Definition at line 348 of file SiStripSpyEventMatcher.cc.
void sistrip::SpyEventMatcher::getMatchedCollections | ( | const uint32_t | eventId, |
const uint8_t | apvAddress, | ||
const SpyEventList * | matchingEvents, | ||
const SiStripFedCabling & | cabling, | ||
SpyDataCollections & | collectionsToCreate | ||
) |
Definition at line 222 of file SiStripSpyEventMatcher.cc.
|
staticprivate |
Definition at line 171 of file SiStripSpyEventMatcher.h.
void sistrip::SpyEventMatcher::initialize | ( | ) |
Definition at line 81 of file SiStripSpyEventMatcher.cc.
const SpyEventMatcher::SpyEventList * sistrip::SpyEventMatcher::matchesForEvent | ( | const uint32_t | eventId, |
const uint8_t | apvAddress | ||
) | const |
Definition at line 146 of file SiStripSpyEventMatcher.cc.
|
staticprivate |
Definition at line 261 of file SiStripSpyEventMatcher.cc.
|
private |
|
private |
Definition at line 158 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 163 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 154 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 167 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 157 of file SiStripSpyEventMatcher.h.
|
staticprivate |
Definition at line 168 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 160 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 166 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 164 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 155 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 161 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 159 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 165 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 156 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 162 of file SiStripSpyEventMatcher.h.