#include <HLTMuonMatchAndPlot.h>
Public Types | |
typedef dqm::legacy::DQMStore | DQMStore |
typedef dqm::legacy::MonitorElement | MonitorElement |
Public Member Functions | |
void | analyze (edm::Handle< reco::MuonCollection > &, edm::Handle< reco::BeamSpot > &, edm::Handle< reco::VertexCollection > &, edm::Handle< trigger::TriggerEvent > &, edm::Handle< edm::TriggerResults > &, const edm::TriggerNames &) |
void | beginRun (DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) |
void | endRun (const edm::Run &, const edm::EventSetup &) |
void | fillEdges (size_t &nBins, float *&edges, const std::vector< double > &binning) |
template<class T > | |
void | fillMapFromPSet (std::map< std::string, T > &, const edm::ParameterSet &, const std::string &) |
template<class T > | |
void | fillMapFromPSet (map< string, T > &m, const ParameterSet &pset, const string &target) |
HLTMuonMatchAndPlot (const edm::ParameterSet &, std::string, std::string, bool) | |
Constructor. More... | |
template<class T1 , class T2 > | |
std::vector< size_t > | matchByDeltaR (const std::vector< T1 > &, const std::vector< T2 > &, const double maxDeltaR=NOMATCH) |
template<class T1 , class T2 > | |
vector< size_t > | matchByDeltaR (const vector< T1 > &collection1, const vector< T2 > &collection2, const double maxDeltaR) |
Private Member Functions | |
void | book1D (DQMStore::IBooker &, std::string, const std::string &, std::string) |
void | book2D (DQMStore::IBooker &, const std::string &, const std::string &, const std::string &, const std::string &) |
reco::MuonCollection | selectedMuons (const reco::MuonCollection &, const reco::BeamSpot &, bool) |
trigger::TriggerObjectCollection | selectedTriggerObjects (const trigger::TriggerObjectCollection &, const trigger::TriggerEvent &) |
Private Attributes | |
std::map< std::string, std::vector< double > > | binParams_ |
unsigned int | cutMinPt_ |
std::string | destination_ |
std::map< std::string, MonitorElement * > | hists_ |
std::string | hltPath_ |
std::string | hltProcessName_ |
bool | isLastFilter_ |
std::string | moduleLabel_ |
std::map< std::string, double > | plotCuts_ |
double | probeD0Cut_ |
bool | probeIsMuonGlb_ |
double | probeMuonEtaMax_ |
double | probeMuonEtaMin_ |
edm::ParameterSet | probeParams_ |
double | probeZ0Cut_ |
std::vector< std::string > | requiredTriggers_ |
double | targetD0Cut_ |
bool | targetIsMuonGlb_ |
double | targetMuonEtaMax_ |
double | targetMuonEtaMin_ |
edm::ParameterSet | targetParams_ |
double | targetptCutJpsi_ |
double | targetptCutZ_ |
double | targetZ0Cut_ |
double | triggerEtaMaxCut_ |
double | triggerEtaMinCut_ |
std::string | triggerLevel_ |
Match reconstructed muons to HLT objects and plot efficiencies.
Note that this is not a true EDAnalyzer;
Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/MuonHLTOfflinePerformance
Contanier class to handle vector of reconstructed muons matched to HLT objects used to plot efficiencies.
Note that this is not a true EDAnalyzer; rather, the intent is that one EDAnalyzer would call an instance of HLTMuonMatchAndPlotContainer
Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/MuonHLTOfflinePerformance
Definition at line 55 of file HLTMuonMatchAndPlot.h.
Definition at line 57 of file HLTMuonMatchAndPlot.h.
Definition at line 58 of file HLTMuonMatchAndPlot.h.
HLTMuonMatchAndPlot::HLTMuonMatchAndPlot | ( | const edm::ParameterSet & | , |
std::string | , | ||
std::string | , | ||
bool | |||
) |
Constructor.
Definition at line 37 of file HLTMuonMatchAndPlot.cc.
References binParams_, reco::ceil(), cutMinPt_, fillMapFromPSet(), hltPath_, moduleLabel_, plotCuts_, muonDTDigis_cfi::pset, and triggerLevel_.
void HLTMuonMatchAndPlot::analyze | ( | edm::Handle< reco::MuonCollection > & | allMuons, |
edm::Handle< reco::BeamSpot > & | beamSpot, | ||
edm::Handle< reco::VertexCollection > & | vertices, | ||
edm::Handle< trigger::TriggerEvent > & | triggerSummary, | ||
edm::Handle< edm::TriggerResults > & | triggerResults, | ||
const edm::TriggerNames & | trigNames | ||
) |
Definition at line 129 of file HLTMuonMatchAndPlot.cc.
References allMuons_cfi::allMuons, pwdgSkimBPark_cfi::beamSpot, cutMinPt_, EFFICIENCY_SUFFIXES, hists_, HLT_2022v12_cff::hltMuons, hltPath_, mps_fire::i, isLastFilter_, matchByDeltaR(), oniaPATMuonsWithTrigger_cff::matches, plotCuts_, requiredTriggers_, selectedMuons(), selectedTriggerObjects(), makePlotsFromDump::suffix, HLT_2022v12_cff::track, triggerLevel_, triggerResults, HLTMuonOfflineAnalyzer_cfi::triggerSummary, and trigNames.
void HLTMuonMatchAndPlot::beginRun | ( | DQMStore::IBooker & | iBooker, |
const edm::Run & | iRun, | ||
const edm::EventSetup & | iSetup | ||
) |
Definition at line 87 of file HLTMuonMatchAndPlot.cc.
References ALCARECODTCalibSynchDQM_cff::baseDir, book1D(), destination_, EFFICIENCY_SUFFIXES, hltPath_, isLastFilter_, moduleLabel_, dqm::implementation::NavigatorBase::setCurrentFolder(), and makePlotsFromDump::suffix.
|
private |
Definition at line 419 of file HLTMuonMatchAndPlot.cc.
References binParams_, dqm::implementation::IBooker::book1D(), SelectiveReadoutTask_cfi::edges, fillEdges(), hists_, Skims_PA_cff::name, seedmultiplicitymonitor_newtracking_cfi::nBins, and runGCPTkAlMap::title.
Referenced by beginRun().
|
private |
Definition at line 438 of file HLTMuonMatchAndPlot.cc.
References binParams_, dqm::implementation::IBooker::book2D(), fillEdges(), hists_, Skims_PA_cff::name, and runGCPTkAlMap::title.
void HLTMuonMatchAndPlot::endRun | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 127 of file HLTMuonMatchAndPlot.cc.
void HLTMuonMatchAndPlot::fillEdges | ( | size_t & | nBins, |
float *& | edges, | ||
const std::vector< double > & | binning | ||
) |
Definition at line 285 of file HLTMuonMatchAndPlot.cc.
References pileupCalc::binning, SelectiveReadoutTask_cfi::edges, mps_fire::i, SiStripPI::min, and seedmultiplicitymonitor_newtracking_cfi::nBins.
Referenced by book1D(), and book2D().
void HLTMuonMatchAndPlot::fillMapFromPSet | ( | std::map< std::string, T > & | , |
const edm::ParameterSet & | , | ||
const std::string & | |||
) |
Referenced by HLTMuonMatchAndPlot().
void HLTMuonMatchAndPlot::fillMapFromPSet | ( | map< string, T > & | m, |
const ParameterSet & | pset, | ||
const string & | target | ||
) |
Definition at line 314 of file HLTMuonMatchAndPlot.cc.
References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), edm::ParameterSet::getUntrackedParameter(), visualization-live-secondInstance_cfg::m, names, muonDTDigis_cfi::pset, and filterCSVwithJSON::target.
std::vector<size_t> HLTMuonMatchAndPlot::matchByDeltaR | ( | const std::vector< T1 > & | , |
const std::vector< T2 > & | , | ||
const double | maxDeltaR = NOMATCH |
||
) |
Referenced by analyze().
vector<size_t> HLTMuonMatchAndPlot::matchByDeltaR | ( | const vector< T1 > & | collection1, |
const vector< T2 > & | collection2, | ||
const double | maxDeltaR | ||
) |
Definition at line 336 of file HLTMuonMatchAndPlot.cc.
References PbPb_ZMuSkimMuonDPG_cff::deltaR, mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, ewkMuLumiMonitorDQM_cfi::maxDeltaR, HLT_2022v12_cff::minDeltaR, NOMATCH, and mps_fire::result.
|
private |
Definition at line 375 of file HLTMuonMatchAndPlot.cc.
References funct::abs(), allMuons_cfi::allMuons, pwdgSkimBPark_cfi::beamSpot, TrackSplittingMonitor_cfi::d0Cut, amptDefaultParameters_cff::mu, probeD0Cut_, probeIsMuonGlb_, probeMuonEtaMax_, probeMuonEtaMin_, probeZ0Cut_, targetD0Cut_, targetIsMuonGlb_, targetMuonEtaMax_, targetMuonEtaMin_, targetZ0Cut_, HLT_2022v12_cff::track, and HLTMuonOfflineAnalyzer_cff::z0Cut.
Referenced by analyze().
|
private |
Definition at line 401 of file HLTMuonMatchAndPlot.cc.
References funct::abs(), trigger::TriggerObject::eta(), hltProcessName_, crabWrapper::key, relativeConstraints::keys, moduleLabel_, triggerEtaMaxCut_, triggerEtaMinCut_, triggerMatchMonitor_cfi::triggerObjects, and HLTMuonOfflineAnalyzer_cfi::triggerSummary.
Referenced by analyze().
|
private |
Definition at line 92 of file HLTMuonMatchAndPlot.h.
Referenced by book1D(), book2D(), and HLTMuonMatchAndPlot().
|
private |
Definition at line 99 of file HLTMuonMatchAndPlot.h.
Referenced by analyze(), and HLTMuonMatchAndPlot().
|
private |
Definition at line 90 of file HLTMuonMatchAndPlot.h.
Referenced by beginRun().
|
private |
Definition at line 103 of file HLTMuonMatchAndPlot.h.
|
private |
Definition at line 100 of file HLTMuonMatchAndPlot.h.
Referenced by analyze(), beginRun(), and HLTMuonMatchAndPlot().
|
private |
Definition at line 89 of file HLTMuonMatchAndPlot.h.
Referenced by selectedTriggerObjects().
|
private |
Definition at line 102 of file HLTMuonMatchAndPlot.h.
Referenced by analyze(), and beginRun().
|
private |
Definition at line 101 of file HLTMuonMatchAndPlot.h.
Referenced by beginRun(), HLTMuonMatchAndPlot(), ExternalGeneratorFilter.ExternalGeneratorFilter::insertInto(), Modules.SwitchProducer::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), and selectedTriggerObjects().
|
private |
Definition at line 93 of file HLTMuonMatchAndPlot.h.
Referenced by analyze(), and HLTMuonMatchAndPlot().
|
private |
Definition at line 116 of file HLTMuonMatchAndPlot.h.
Referenced by selectedMuons().
|
private |
Definition at line 114 of file HLTMuonMatchAndPlot.h.
Referenced by selectedMuons().
|
private |
Definition at line 112 of file HLTMuonMatchAndPlot.h.
Referenced by selectedMuons().
|
private |
Definition at line 113 of file HLTMuonMatchAndPlot.h.
Referenced by selectedMuons().
|
private |
Definition at line 95 of file HLTMuonMatchAndPlot.h.
|
private |
Definition at line 115 of file HLTMuonMatchAndPlot.h.
Referenced by selectedMuons().
|
private |
Definition at line 91 of file HLTMuonMatchAndPlot.h.
Referenced by analyze().
|
private |
Definition at line 109 of file HLTMuonMatchAndPlot.h.
Referenced by selectedMuons().
|
private |
Definition at line 107 of file HLTMuonMatchAndPlot.h.
Referenced by selectedMuons().
|
private |
Definition at line 105 of file HLTMuonMatchAndPlot.h.
Referenced by selectedMuons().
|
private |
Definition at line 106 of file HLTMuonMatchAndPlot.h.
Referenced by selectedMuons().
|
private |
Definition at line 94 of file HLTMuonMatchAndPlot.h.
|
private |
Definition at line 111 of file HLTMuonMatchAndPlot.h.
|
private |
Definition at line 110 of file HLTMuonMatchAndPlot.h.
|
private |
Definition at line 108 of file HLTMuonMatchAndPlot.h.
Referenced by selectedMuons().
|
private |
Definition at line 117 of file HLTMuonMatchAndPlot.h.
Referenced by selectedTriggerObjects().
|
private |
Definition at line 118 of file HLTMuonMatchAndPlot.h.
Referenced by selectedTriggerObjects().
|
private |
Definition at line 98 of file HLTMuonMatchAndPlot.h.
Referenced by analyze(), and HLTMuonMatchAndPlot().