#include <EmulationObserverBase.h>
Public Member Functions | |
EmulationObserverBase (const edm::ParameterSet &edmCfg, const OMTFConfiguration *omtfConfig) | |
const std::vector< const reco::GenParticle * > | findGenMuon (const edm::Event &event) |
const SimTrack * | findSimMuon (const edm::Event &event, const SimTrack *previous=nullptr) |
void | observeEventBegin (const edm::Event &iEvent) override |
void | observeProcesorEmulation (unsigned int iProcessor, l1t::tftype mtfType, const std::shared_ptr< OMTFinput > &input, const AlgoMuons &algoCandidates, const AlgoMuons &gbCandidates, const std::vector< l1t::RegionalMuonCand > &candMuons) override |
~EmulationObserverBase () override | |
Public Member Functions inherited from IOMTFEmulationObserver | |
virtual void | addProcesorData (std::string key, boost::property_tree::ptree &procDataTree) |
virtual void | beginRun (edm::EventSetup const &eventSetup) |
virtual void | endJob ()=0 |
IOMTFEmulationObserver () | |
virtual void | observeEventEnd (const edm::Event &iEvent, std::unique_ptr< l1t::RegionalMuonCandBxCollection > &finalCandidates) |
virtual void | observeProcesorBegin (unsigned int iProcessor, l1t::tftype mtfType) |
virtual | ~IOMTFEmulationObserver () |
Protected Attributes | |
unsigned int | candProcIndx = 0 |
edm::ParameterSet | edmCfg |
AlgoMuons::value_type | omtfCand |
const OMTFConfiguration * | omtfConfig |
l1t::RegionalMuonCand | regionalMuonCand |
const SimTrack * | simMuon = nullptr |
Definition at line 19 of file EmulationObserverBase.h.
EmulationObserverBase::EmulationObserverBase | ( | const edm::ParameterSet & | edmCfg, |
const OMTFConfiguration * | omtfConfig | ||
) |
Definition at line 13 of file EmulationObserverBase.cc.
|
override |
Definition at line 16 of file EmulationObserverBase.cc.
const std::vector< const reco::GenParticle * > EmulationObserverBase::findGenMuon | ( | const edm::Event & | event | ) |
Definition at line 96 of file EmulationObserverBase.cc.
References funct::abs(), edmCfg, edm::ParameterSet::exists(), genparticles_cff::genPart, AJJGenJetFilter_cfi::genParticles, edm::ParameterSet::getParameter(), mps_fire::i, LogTrace, and DiMuonV_cfg::muons.
const SimTrack * EmulationObserverBase::findSimMuon | ( | const edm::Event & | event, |
const SimTrack * | previous = nullptr |
||
) |
Definition at line 75 of file EmulationObserverBase.cc.
References electronAnalyzer_cfi::DeltaR, edmCfg, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, CoreSimTrack::momentum(), callgraph::previous, mps_fire::result, and CoreSimTrack::type().
Referenced by observeEventBegin().
|
overridevirtual |
Reimplemented from IOMTFEmulationObserver.
Definition at line 67 of file EmulationObserverBase.cc.
References candProcIndx, findSimMuon(), iEvent, omtfCand, and simMuon.
|
overridevirtual |
Implements IOMTFEmulationObserver.
Definition at line 20 of file EmulationObserverBase.cc.
References candProcIndx, OMTFConfiguration::getProcIndx(), mps_fire::i, omtfCand, omtfConfig, and regionalMuonCand.
|
protected |
Definition at line 56 of file EmulationObserverBase.h.
Referenced by observeEventBegin(), observeProcesorEmulation(), PatternGenerator::updateStat(), and PatternGenerator::updateStatUsingMatcher2().
|
protected |
Definition at line 44 of file EmulationObserverBase.h.
Referenced by DataROOTDumper2::DataROOTDumper2(), PatternGenerator::endJob(), PatternOptimizerBase::endJob(), findGenMuon(), findSimMuon(), PatternGenerator::initPatternGen(), PatternOptimizerBase::PatternOptimizerBase(), PatternOptimizerBase::savePatternsInRoot(), and PatternGenerator::updateStatUsingMatcher2().
|
protected |
Definition at line 50 of file EmulationObserverBase.h.
Referenced by observeEventBegin(), PatternGenerator::observeEventEnd(), PatternOptimizerBase::observeEventEnd(), observeProcesorEmulation(), and PatternGenerator::updateStat().
|
protected |
Definition at line 45 of file EmulationObserverBase.h.
Referenced by DataROOTDumper2::DataROOTDumper2(), PatternOptimizerBase::endJob(), PatternGenerator::groupPatterns(), PatternGenerator::initPatternGen(), PatternGenerator::modifyClassProb(), PatternOptimizerBase::observeEventEnd(), DataROOTDumper2::observeEventEnd(), observeProcesorEmulation(), PatternOptimizerBase::printPatterns(), PatternGenerator::reCalibratePt(), PatternOptimizerBase::savePatternsInRoot(), PatternGenerator::upadatePdfs(), PatternGenerator::updateStat(), and PatternGenerator::updateStatUsingMatcher2().
|
protected |
Definition at line 52 of file EmulationObserverBase.h.
Referenced by observeProcesorEmulation().
|
protected |
Definition at line 47 of file EmulationObserverBase.h.
Referenced by observeEventBegin(), PatternGenerator::observeEventEnd(), PatternOptimizerBase::observeEventEnd(), and PatternGenerator::updateStat().