#include <PatternOptimizerBase.h>
Public Member Functions | |
void | endJob () override |
void | observeEventEnd (const edm::Event &iEvent, std::unique_ptr< l1t::RegionalMuonCandBxCollection > &finalCandidates) override |
PatternOptimizerBase (const edm::ParameterSet &edmCfg, const OMTFConfiguration *omtfConfig, GoldenPatternVec< GoldenPatternWithStat > &gps) | |
~PatternOptimizerBase () override | |
Public Member Functions inherited from EmulationObserverBase | |
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) |
IOMTFEmulationObserver () | |
virtual void | observeProcesorBegin (unsigned int iProcessor, l1t::tftype mtfType) |
virtual | ~IOMTFEmulationObserver () |
Static Public Member Functions | |
static double | vxIntegMuRate (double pt_GeV, double dpt, double etaFrom, double etaTo) |
static double | vxMuRate (double pt_GeV) |
Protected Member Functions | |
virtual double | getEventRateWeight (double pt) |
void | printPatterns () |
virtual void | saveHists (TFile &outfile) |
void | savePatternsInRoot (std::string rootFileName) |
Protected Attributes | |
TH1I * | candEta = nullptr |
GoldenPatternVec< GoldenPatternWithStat > & | goldenPatterns |
TH1I * | simMuEta = nullptr |
TH1I * | simMuFoundByOmtfPt = nullptr |
TH1I * | simMuPt = nullptr |
TH1F * | simMuPtSpectrum = nullptr |
TH2I * | simMuPtVsDispl = nullptr |
TH2I * | simMuPtVsRho = nullptr |
bool | writeLayerStat = false |
Protected Attributes inherited from EmulationObserverBase | |
unsigned int | candProcIndx = 0 |
edm::ParameterSet | edmCfg |
AlgoMuons::value_type | omtfCand |
const OMTFConfiguration * | omtfConfig |
l1t::RegionalMuonCand | regionalMuonCand |
const SimTrack * | simMuon = nullptr |
Definition at line 25 of file PatternOptimizerBase.h.
PatternOptimizerBase::PatternOptimizerBase | ( | const edm::ParameterSet & | edmCfg, |
const OMTFConfiguration * | omtfConfig, | ||
GoldenPatternVec< GoldenPatternWithStat > & | gps | ||
) |
Definition at line 66 of file PatternOptimizerBase.cc.
References candEta, EmulationObserverBase::edmCfg, edm::ParameterSet::exists(), goldenPatterns, simMuEta, simMuFoundByOmtfPt, simMuPt, simMuPtSpectrum, simMuPtVsDispl, and simMuPtVsRho.
|
override |
Definition at line 88 of file PatternOptimizerBase.cc.
|
overridevirtual |
Implements IOMTFEmulationObserver.
Definition at line 125 of file PatternOptimizerBase.cc.
References EmulationObserverBase::edmCfg, fileCollector2::fName, edm::ParameterSet::getParameter(), goldenPatterns, EmulationObserverBase::omtfConfig, savePatternsInRoot(), AlCaHLTBitMon_QueryRunRegistry::string, and XMLConfigWriter::writeGPs().
Referenced by PatternGenerator::endJob().
|
inlineprotectedvirtual |
Definition at line 46 of file PatternOptimizerBase.h.
Referenced by observeEventEnd().
|
overridevirtual |
Reimplemented from IOMTFEmulationObserver.
Definition at line 108 of file PatternOptimizerBase.cc.
References funct::abs(), getEventRateWeight(), OMTFConfiguration::getPatternNum(), goldenPatterns, GoldenPattern::key(), CoreSimTrack::momentum(), EmulationObserverBase::omtfCand, EmulationObserverBase::omtfConfig, simMuFoundByOmtfPt, EmulationObserverBase::simMuon, simMuPtSpectrum, Key::theNumber, and CoreSimTrack::type().
Referenced by PatternGenerator::observeEventEnd().
|
protected |
Definition at line 90 of file PatternOptimizerBase.cc.
References OMTFConfiguration::getPatternPtRange(), goldenPatterns, RPCConst::iptFromPt(), submitPVResolutionJobs::key, EmulationObserverBase::omtfConfig, DiDispStaMuonMonitor_cfi::pt, and OMTFConfiguration::PatternPt::ptFrom.
|
inlineprotectedvirtual |
Reimplemented in PatternGenerator.
Definition at line 48 of file PatternOptimizerBase.h.
Referenced by savePatternsInRoot().
|
protected |
Definition at line 135 of file PatternOptimizerBase.cc.
References candEta, svgfig::canvas(), EmulationObserverBase::edmCfg, edm::ParameterSet::getParameter(), OMTFConfiguration::getPatternPtRange(), OMTFConfiguration::getRefToLogicNumber(), goldenPatterns, runTauDisplay::gp, compareTotals::hist, createfilelist::int, OMTFConfiguration::nPdfBins(), EmulationObserverBase::omtfConfig, das-up-to-nevents::outfile, OMTFConfiguration::pdfMaxValue(), OMTFConfiguration::PatternPt::ptFrom, OMTFConfiguration::PatternPt::ptTo, CSCSkim_cfi::rootFileName, saveHists(), edm::shift, simMuEta, simMuFoundByOmtfPt, simMuPtSpectrum, simMuPtVsDispl, simMuPtVsRho, writeLayerStat, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
Referenced by endJob().
|
static |
Definition at line 57 of file PatternOptimizerBase.cc.
References RPCpg::rate(), and vxMuRate().
Referenced by PatternGenerator::modifyClassProb().
|
static |
Definition at line 37 of file PatternOptimizerBase.cc.
References a, JetChargeProducer_cfi::exp, amptDefaultParameters_cff::mu, and RPCpg::rate().
Referenced by vxIntegMuRate().
|
protected |
Definition at line 56 of file PatternOptimizerBase.h.
Referenced by PatternOptimizerBase(), savePatternsInRoot(), and PatternGenerator::updateStat().
|
protected |
Definition at line 48 of file PatternOptimizerBase.h.
Referenced by PatternGenerator::endJob(), endJob(), PatternGenerator::groupPatterns(), PatternGenerator::initPatternGen(), PatternGenerator::modifyClassProb(), observeEventEnd(), PatternOptimizerBase(), printPatterns(), PatternGenerator::reCalibratePt(), savePatternsInRoot(), PatternGenerator::upadatePdfs(), PatternGenerator::updateStat(), and PatternGenerator::updateStatUsingMatcher2().
|
protected |
Definition at line 54 of file PatternOptimizerBase.h.
Referenced by PatternOptimizerBase(), savePatternsInRoot(), PatternGenerator::updateStat(), and PatternGenerator::updateStatUsingMatcher2().
|
protected |
Definition at line 53 of file PatternOptimizerBase.h.
Referenced by observeEventEnd(), PatternOptimizerBase(), and savePatternsInRoot().
|
protected |
Definition at line 52 of file PatternOptimizerBase.h.
Referenced by PatternOptimizerBase().
|
protected |
Definition at line 58 of file PatternOptimizerBase.h.
Referenced by observeEventEnd(), PatternOptimizerBase(), and savePatternsInRoot().
|
protected |
Definition at line 59 of file PatternOptimizerBase.h.
Referenced by PatternOptimizerBase(), savePatternsInRoot(), and PatternGenerator::updateStatUsingMatcher2().
|
protected |
Definition at line 60 of file PatternOptimizerBase.h.
Referenced by PatternOptimizerBase(), savePatternsInRoot(), and PatternGenerator::updateStatUsingMatcher2().
|
protected |
Definition at line 62 of file PatternOptimizerBase.h.
Referenced by PatternGenerator::endJob(), and savePatternsInRoot().