#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 std::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 *const | mlLabel_ = "SpyEventMatcher" |
Definition at line 33 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 103 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 121 of file SiStripSpyEventMatcher.h.
Definition at line 69 of file SiStripSpyEventMatcher.h.
|
private |
Definition at line 124 of file SiStripSpyEventMatcher.h.
typedef std::set<EventID> sistrip::SpyEventMatcher::SpyEventList |
Definition at line 70 of file SiStripSpyEventMatcher.h.
sistrip::SpyEventMatcher::SpyEventMatcher | ( | const edm::ParameterSet & | config | ) |
Definition at line 47 of file SiStripSpyEventMatcher.cc.
References edm::ParameterSet::emptyParameterSetID(), eventPrincipal_, processConfiguration_, productRegistry_, and source_.
|
virtual |
Definition at line 45 of file SiStripSpyEventMatcher.cc.
|
private |
Definition at line 104 of file SiStripSpyEventMatcher.cc.
References apvAddressesTag_, counterDiffMax_, edm::EventID::event(), eventMatches_, PixelSLinkDataInputSource_cfi::fedid, getCounters(), edm::EventPrincipal::id(), submitPVResolutionJobs::key, l1aCountersTag_, LogDebug, mlLabel_, contentValuesCheck::ss, and totalEventCountersTag_.
Referenced by initialize().
|
private |
Definition at line 73 of file SiStripSpyEventMatcher.cc.
References makeListRunsInFiles::description, edm::VectorInputSourceFactory::get(), edm::VectorInputSourceFactory::makeVectorInputSource(), and productRegistry_.
|
staticprivate |
Definition at line 277 of file SiStripSpyEventMatcher.cc.
Referenced by getCollections().
void sistrip::SpyEventMatcher::getCollections | ( | const edm::EventPrincipal & | event, |
const uint32_t | eventId, | ||
const uint8_t | apvAddress, | ||
const SiStripFedCabling & | cabling, | ||
MatchingOutput & | matchingOutput | ||
) |
Definition at line 171 of file SiStripSpyEventMatcher.cc.
References sistrip::SpyEventMatcher::MatchingOutput::alreadyMergedFeds_, apvAddressesTag_, edmPickEvents::event, Exception, findMatchingFeds(), getCounters(), l1aCountersTag_, LogDebug, mergeMatchingData(), SiStripPI::min, mlLabel_, sistrip::SpyEventMatcher::MatchingOutput::outputAPVAddresses_, sistrip::SpyEventMatcher::MatchingOutput::outputL1ACounters_, sistrip::SpyEventMatcher::MatchingOutput::outputPayloadDigisVector_, sistrip::SpyEventMatcher::MatchingOutput::outputRawData_, sistrip::SpyEventMatcher::MatchingOutput::outputReorderedDigisVector_, sistrip::SpyEventMatcher::MatchingOutput::outputScopeDigisVector_, sistrip::SpyEventMatcher::MatchingOutput::outputTotalEventCounters_, sistrip::SpyEventMatcher::MatchingOutput::outputVirginRawDigisVector_, payloadDigisTag_, rawDataTag_, reorderedDigisTag_, scopeDigisTag_, DBoxMetadataHelper::set_intersection(), contentValuesCheck::ss, totalEventCountersTag_, trackerHitRTTI::vector, and virginRawDigisTag_.
Referenced by getMatchedCollections().
|
staticprivate |
Definition at line 391 of file SiStripSpyEventMatcher.cc.
References edmPickEvents::event, Exception, sistrip::FED_ID_MAX, sistrip::SpyUtilities::fillFEDMajorities(), mlLabel_, and makeGlobalPositionRcd_cfg::tag.
Referenced by addNextEventToMap(), and getCollections().
void sistrip::SpyEventMatcher::getMatchedCollections | ( | const uint32_t | eventId, |
const uint8_t | apvAddress, | ||
const SpyEventList * | matchingEvents, | ||
const SiStripFedCabling & | cabling, | ||
SpyDataCollections & | collectionsToCreate | ||
) |
Definition at line 251 of file SiStripSpyEventMatcher.cc.
References eventPrincipal_, getCollections(), sistrip::SpyEventMatcher::MatchingOutput::outputAPVAddresses_, sistrip::SpyEventMatcher::MatchingOutput::outputL1ACounters_, sistrip::SpyEventMatcher::MatchingOutput::outputPayloadDigisVector_, sistrip::SpyEventMatcher::MatchingOutput::outputRawData_, sistrip::SpyEventMatcher::MatchingOutput::outputReorderedDigisVector_, sistrip::SpyEventMatcher::MatchingOutput::outputScopeDigisVector_, sistrip::SpyEventMatcher::MatchingOutput::outputTotalEventCounters_, sistrip::SpyEventMatcher::MatchingOutput::outputVirginRawDigisVector_, source_, and mitigatedMETSequence_cff::U.
|
staticprivate |
Definition at line 178 of file SiStripSpyEventMatcher.h.
References edmPickEvents::event, LogDebug, mlLabel_, and makeGlobalPositionRcd_cfg::tag.
void sistrip::SpyEventMatcher::initialize | ( | ) |
Definition at line 79 of file SiStripSpyEventMatcher.cc.
References addNextEventToMap(), eventMatches_, eventPrincipal_, LogDebug, SiStripPI::max, mlLabel_, source_, contentValuesCheck::ss, and mitigatedMETSequence_cff::U.
const SpyEventMatcher::SpyEventList * sistrip::SpyEventMatcher::matchesForEvent | ( | const uint32_t | eventId, |
const uint8_t | apvAddress | ||
) | const |
Definition at line 151 of file SiStripSpyEventMatcher.cc.
References eventMatches_, LogDebug, mlLabel_, and contentValuesCheck::ss.
|
staticprivate |
Definition at line 299 of file SiStripSpyEventMatcher.cc.
References officialStyle::chan, FEDRawData::data(), hcalRecHitTable_cff::detId, edm::DetSetVector< T >::end(), sistrip::FEDCH_PER_FED, SiStripFedCabling::fedConnections(), FEDRawDataCollection::FEDData(), l1tstage2_dqm_sourceclient-live_cfg::fedId, stripgpu::fedIndex(), edm::DetSetVector< T >::find(), sistrip::invalid_, LogDebug, mlLabel_, and FEDRawData::size().
Referenced by getCollections().
|
private |
|
private |
Definition at line 164 of file SiStripSpyEventMatcher.h.
Referenced by addNextEventToMap(), and getCollections().
|
private |
Definition at line 169 of file SiStripSpyEventMatcher.h.
Referenced by addNextEventToMap().
|
private |
Definition at line 160 of file SiStripSpyEventMatcher.h.
Referenced by addNextEventToMap(), initialize(), and matchesForEvent().
|
private |
Definition at line 173 of file SiStripSpyEventMatcher.h.
Referenced by getMatchedCollections(), initialize(), and SpyEventMatcher().
|
private |
Definition at line 163 of file SiStripSpyEventMatcher.h.
Referenced by addNextEventToMap(), and getCollections().
|
staticprivate |
Definition at line 174 of file SiStripSpyEventMatcher.h.
Referenced by addNextEventToMap(), getCollections(), getCounters(), getProduct(), initialize(), matchesForEvent(), and mergeMatchingData().
|
private |
Definition at line 166 of file SiStripSpyEventMatcher.h.
Referenced by getCollections().
|
private |
Definition at line 172 of file SiStripSpyEventMatcher.h.
Referenced by SpyEventMatcher().
|
private |
Definition at line 170 of file SiStripSpyEventMatcher.h.
Referenced by constructSource(), and SpyEventMatcher().
|
private |
Definition at line 161 of file SiStripSpyEventMatcher.h.
Referenced by getCollections().
|
private |
Definition at line 167 of file SiStripSpyEventMatcher.h.
Referenced by getCollections().
|
private |
Definition at line 165 of file SiStripSpyEventMatcher.h.
Referenced by getCollections().
|
private |
Definition at line 171 of file SiStripSpyEventMatcher.h.
Referenced by Config.Process::dumpConfig(), Config.Process::dumpPython(), getMatchedCollections(), initialize(), Config.Process::splitPython(), and SpyEventMatcher().
|
private |
Definition at line 162 of file SiStripSpyEventMatcher.h.
Referenced by addNextEventToMap(), and getCollections().
|
private |
Definition at line 168 of file SiStripSpyEventMatcher.h.
Referenced by getCollections().