#include <PatternGenerator.h>
Protected Member Functions | |
void | groupPatterns () |
void | initPatternGen () |
void | modifyClassProb (double step) |
void | reCalibratePt () |
void | saveHists (TFile &outfile) override |
void | upadatePdfs () |
void | updateStat () |
void | updateStatUsingMatcher2 () |
Protected Member Functions inherited from PatternOptimizerBase | |
virtual double | getEventRateWeight (double pt) |
void | printPatterns () |
void | savePatternsInRoot (std::string rootFileName) |
Protected Attributes | |
CandidateSimMuonMatcher * | candidateSimMuonMatcher = nullptr |
std::vector< unsigned int > | eventCntPerGp |
std::vector< std::vector< TH2I * > > | ptDeltaPhiHists |
std::function< void()> | updateStatFunction |
Protected Attributes inherited from PatternOptimizerBase | |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from PatternOptimizerBase | |
static double | vxIntegMuRate (double pt_GeV, double dpt, double etaFrom, double etaTo) |
static double | vxMuRate (double pt_GeV) |
Definition at line 14 of file PatternGenerator.h.
PatternGenerator::PatternGenerator | ( | const edm::ParameterSet & | edmCfg, |
const OMTFConfiguration * | omtfConfig, | ||
GoldenPatternVec< GoldenPatternWithStat > & | gps, | ||
CandidateSimMuonMatcher * | candidateSimMuonMatcher | ||
) |
Definition at line 16 of file PatternGenerator.cc.
References updateStat().
|
override |
Definition at line 45 of file PatternGenerator.cc.
|
overridevirtual |
Implements IOMTFEmulationObserver.
Definition at line 341 of file PatternGenerator.cc.
References EmulationObserverBase::edmCfg, PatternOptimizerBase::endJob(), eventCntPerGp, contentValuesFiles::fullPath, edm::ParameterSet::getParameter(), PatternOptimizerBase::goldenPatterns, runTauDisplay::gp, watchdog::group, groupPatterns(), testHGCalDigi_cfg::inFile, modifyClassProb(), reCalibratePt(), dtNoiseCalibration_cfi::rootFileName, AlCaHLTBitMon_QueryRunRegistry::string, upadatePdfs(), and PatternOptimizerBase::writeLayerStat.
|
protected |
Definition at line 806 of file PatternGenerator.cc.
References OMTFConfiguration::getPatternGroups(), OMTFConfiguration::getRefToLogicNumber(), PatternOptimizerBase::goldenPatterns, runTauDisplay::gp, watchdog::group, mps_fire::i, createfilelist::int, OMTFConfiguration::nPdfAddrBits(), EmulationObserverBase::omtfConfig, and edm::shift.
Referenced by endJob().
|
protected |
Definition at line 47 of file PatternGenerator.cc.
References EmulationObserverBase::edmCfg, Exception, edm::ParameterSet::getParameter(), PatternOptimizerBase::goldenPatterns, runTauDisplay::gp, mps_fire::i, OMTFConfiguration::nPhiBins(), OMTFConfiguration::nProcessors(), and EmulationObserverBase::omtfConfig.
|
protected |
Definition at line 676 of file PatternGenerator.cc.
References OMTFConfiguration::getPatternPtRange(), OMTFConfiguration::getRefToLogicNumber(), PatternOptimizerBase::goldenPatterns, runTauDisplay::gp, CrabHelper::log, OMTFConfiguration::minPdfVal(), OMTFConfiguration::nPdfBins(), EmulationObserverBase::omtfConfig, OMTFConfiguration::pdfMaxValue(), MuonErrorMatrixValues_cff::ptRange, groupFilesInBlocks::reverse, Validation_hcalonly_cfi::sign, and PatternOptimizerBase::vxIntegMuRate().
Referenced by endJob().
|
overridevirtual |
Reimplemented from IOMTFEmulationObserver.
Definition at line 326 of file PatternGenerator.cc.
References funct::abs(), iEvent, CoreSimTrack::momentum(), PatternOptimizerBase::observeEventEnd(), EmulationObserverBase::omtfCand, EmulationObserverBase::simMuon, and updateStatFunction.
|
protected |
Definition at line 762 of file PatternGenerator.cc.
References PatternOptimizerBase::goldenPatterns, runTauDisplay::gp, EmulationObserverBase::omtfConfig, and OMTFConfiguration::ptGevToHw().
Referenced by endJob().
|
overrideprotectedvirtual |
Reimplemented from PatternOptimizerBase.
Definition at line 664 of file PatternGenerator.cc.
References PixelBaryCentreAnalyzer_cfg::outfile.
|
protected |
weighted average, weight is 1/pt
Definition at line 438 of file PatternGenerator.cc.
References submitPVResolutionJobs::count, eventCntPerGp, OMTFConfiguration::getPatternGroups(), PatternOptimizerBase::goldenPatterns, runTauDisplay::gp, mps_fire::i, createfilelist::int, CrabHelper::log, OMTFConfiguration::minPdfVal(), EmulationObserverBase::omtfConfig, OMTFConfiguration::pdfMaxValue(), to_string(), and mps_merge::weight.
Referenced by endJob().
|
protected |
Definition at line 127 of file PatternGenerator.cc.
References funct::abs(), PatternOptimizerBase::candEta, EmulationObserverBase::candProcIndx, eventCntPerGp, OMTFConfiguration::getPatternNum(), GoldenPatternBase::getResults(), GoldenPatternWithStat::getStatistics(), PatternOptimizerBase::goldenPatterns, l1t::RegionalMuonCand::hwEta(), OMTFConfiguration::hwEtaToEta(), OMTFConfiguration::isBendingLayer(), GoldenPattern::meanDistPhiValue(), CoreSimTrack::momentum(), OMTFConfiguration::nPdfAddrBits(), EmulationObserverBase::omtfCand, EmulationObserverBase::omtfConfig, EmulationObserverBase::regionalMuonCand, PatternOptimizerBase::simMuEta, EmulationObserverBase::simMuon, CoreSimTrack::type(), and GoldenPatternWithStat::updateStat().
Referenced by PatternGenerator().
|
protected |
Definition at line 199 of file PatternGenerator.cc.
References funct::abs(), candidateSimMuonMatcher, EmulationObserverBase::candProcIndx, EmulationObserverBase::edmCfg, eventCntPerGp, CandidateSimMuonMatcher::getMatchingResults(), edm::ParameterSet::getParameter(), OMTFConfiguration::getPatternNum(), OMTFConfiguration::getProcIndx(), OMTFConfiguration::getRefToLogicNumber(), GoldenPatternBase::getResults(), GoldenPatternWithStat::getStatistics(), PatternOptimizerBase::goldenPatterns, OMTFConfiguration::isBendingLayer(), LogTrace, OMTFConfiguration::nPdfAddrBits(), EmulationObserverBase::omtfConfig, PatternOptimizerBase::simMuEta, PatternOptimizerBase::simMuPtVsDispl, PatternOptimizerBase::simMuPtVsRho, and GoldenPatternWithStat::updateStat().
|
protected |
Definition at line 47 of file PatternGenerator.h.
Referenced by updateStatUsingMatcher2().
|
protected |
Definition at line 52 of file PatternGenerator.h.
Referenced by endJob(), upadatePdfs(), updateStat(), and updateStatUsingMatcher2().
|
protected |
Definition at line 50 of file PatternGenerator.h.
|
protected |
Definition at line 35 of file PatternGenerator.h.
Referenced by observeEventEnd().