#include <HLTMuonMatchAndPlot.h>
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
void | beginRun (const edm::Run &, const edm::EventSetup &) |
void | endRun (const edm::Run &, const edm::EventSetup &) |
void | fillEdges (size_t &nBins, float *&edges, std::vector< double > binning) |
template<class T > | |
void | fillMapFromPSet (std::map< std::string, T > &, edm::ParameterSet, std::string) |
template<class T > | |
void | fillMapFromPSet (map< string, T > &m, ParameterSet pset, string target) |
HLTMuonMatchAndPlot (const edm::ParameterSet &, std::string, std::vector< std::string >) | |
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 (std::string, std::string, std::string) |
void | book2D (std::string, std::string, std::string, std::string) |
reco::MuonCollection | selectedMuons (const reco::MuonCollection &, const reco::BeamSpot &, bool, const StringCutObjectSelector< reco::Muon > &, double, double) |
trigger::TriggerObjectCollection | selectedTriggerObjects (const trigger::TriggerObjectCollection &, const trigger::TriggerEvent &, const edm::ParameterSet &) |
Private Attributes | |
std::map< std::string, std::vector< double > > | binParams_ |
unsigned int | cutMinPt_ |
DQMStore * | dbe_ |
std::string | destination_ |
bool | hasProbeRecoCuts |
bool | hasTargetRecoCuts |
std::map< std::string, MonitorElement * > | hists_ |
std::string | hltPath_ |
std::string | hltProcessName_ |
std::map< std::string, edm::InputTag > | inputTags_ |
std::vector< std::string > | moduleLabels_ |
std::map< std::string, double > | plotCuts_ |
double | probeD0Cut_ |
StringCutObjectSelector < reco::Muon > | probeMuonSelector_ |
edm::ParameterSet | probeParams_ |
double | probeZ0Cut_ |
std::vector< std::string > | requiredTriggers_ |
double | targetD0Cut_ |
StringCutObjectSelector < reco::Muon > | targetMuonSelector_ |
edm::ParameterSet | targetParams_ |
double | targetZ0Cut_ |
std::string | triggerLevel_ |
Match reconstructed muons to HLT objects and plot efficiencies.
Note that this is not a true EDAnalyzer; rather, the intent is that one EDAnalyzer would call a separate instantiation of HLTMuonMatchAndPlot for each HLT path under consideration.
Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/MuonHLTOfflinePerformance
Definition at line 66 of file HLTMuonMatchAndPlot.h.
HLTMuonMatchAndPlot::HLTMuonMatchAndPlot | ( | const edm::ParameterSet & | , |
std::string | , | ||
std::vector< std::string > | |||
) |
Constructor.
Definition at line 44 of file HLTMuonMatchAndPlot.cc.
References binParams_, gather_cfg::cout, cutMinPt_, dbe_, fillMapFromPSet(), hltPath_, hltProcessName_, inputTags_, edm::InputTag::instance(), edm::InputTag::label(), moduleLabels_, cppFunctionSkipper::operator, plotCuts_, and triggerLevel_.
void HLTMuonMatchAndPlot::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 166 of file HLTMuonMatchAndPlot.cc.
References allMuons_cfi::allMuons, SiPixelRawToDigiRegional_cfi::beamSpot, reco::LeafCandidate::charge(), cutMinPt_, deltaR(), reco::TrackBase::dxy(), reco::TrackBase::dz(), EFFICIENCY_SUFFIXES, trigger::TriggerObject::eta(), reco::LeafCandidate::eta(), eta(), edm::Event::getByLabel(), hasProbeRecoCuts, hasTargetRecoCuts, hists_, HLT_2011_cff::hltMuons, i, reco::Muon::innerTrack(), inputTags_, reco::Muon::isStandAloneMuon(), reco::Muon::isTrackerMuon(), edm::HandleBase::isValid(), j, gen::k, scaleCards::mass, matchByDeltaR(), metsig::muon, reco::Muon::outerTrack(), reco::LeafCandidate::p4(), phi, trigger::TriggerObject::phi(), reco::LeafCandidate::phi(), plotCuts_, probeD0Cut_, probeMuonSelector_, probeZ0Cut_, trigger::TriggerObject::pt(), reco::LeafCandidate::pt(), requiredTriggers_, selectedMuons(), selectedTriggerObjects(), findQualityFiles::size, createPayload::suffix, targetD0Cut_, targetMuonSelector_, targetParams_, targetZ0Cut_, triggerLevel_, and patRefSel_triggerSelection_cff::triggerResults.
void HLTMuonMatchAndPlot::beginRun | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 102 of file HLTMuonMatchAndPlot.cc.
References book1D(), book2D(), dbe_, destination_, EFFICIENCY_SUFFIXES, hltPath_, i, DQMStore::setCurrentFolder(), and createPayload::suffix.
|
private |
Definition at line 555 of file HLTMuonMatchAndPlot.cc.
References binParams_, DQMStore::book1D(), dbe_, prof2calltree::edges, fillEdges(), getTH1F(), hists_, and mergeVDriftHistosByStation::name.
Referenced by beginRun().
|
private |
Definition at line 579 of file HLTMuonMatchAndPlot.cc.
References binParams_, DQMStore::book2D(), dbe_, fillEdges(), getTH2F(), hists_, and mergeVDriftHistosByStation::name.
Referenced by beginRun().
void HLTMuonMatchAndPlot::endRun | ( | const edm::Run & | iRun, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 159 of file HLTMuonMatchAndPlot.cc.
void HLTMuonMatchAndPlot::fillEdges | ( | size_t & | nBins, |
float *& | edges, | ||
std::vector< double > | binning | ||
) |
Definition at line 386 of file HLTMuonMatchAndPlot.cc.
Referenced by book1D(), and book2D().
void HLTMuonMatchAndPlot::fillMapFromPSet | ( | std::map< std::string, T > & | , |
edm::ParameterSet | , | ||
std::string | |||
) |
Referenced by HLTMuonMatchAndPlot().
void HLTMuonMatchAndPlot::fillMapFromPSet | ( | map< string, T > & | m, |
ParameterSet | pset, | ||
string | target | ||
) |
Definition at line 419 of file HLTMuonMatchAndPlot.cc.
References edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), edm::ParameterSet::getParameterSet(), edm::ParameterSet::getUntrackedParameter(), edm::ParameterSet::getUntrackedParameterSet(), and cscdqm::h::names.
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 447 of file HLTMuonMatchAndPlot.cc.
References deltaR(), i, j, gen::k, NOMATCH, and query::result.
|
private |
Definition at line 491 of file HLTMuonMatchAndPlot.cc.
References reco::TrackBase::dxy(), reco::TrackBase::dz(), and reco::BeamSpot::position().
Referenced by analyze().
|
private |
Definition at line 521 of file HLTMuonMatchAndPlot.cc.
References edm::ParameterSet::exists(), trigger::TriggerEvent::filterIndex(), trigger::TriggerEvent::filterKeys(), edm::ParameterSet::getUntrackedParameter(), hltProcessName_, j, relativeConstraints::keys, moduleLabels_, and trigger::TriggerEvent::sizeFilters().
Referenced by analyze().
|
private |
Definition at line 108 of file HLTMuonMatchAndPlot.h.
Referenced by book1D(), book2D(), and HLTMuonMatchAndPlot().
|
private |
Definition at line 115 of file HLTMuonMatchAndPlot.h.
Referenced by analyze(), and HLTMuonMatchAndPlot().
|
private |
Definition at line 118 of file HLTMuonMatchAndPlot.h.
Referenced by beginRun(), book1D(), book2D(), and HLTMuonMatchAndPlot().
|
private |
Definition at line 105 of file HLTMuonMatchAndPlot.h.
Referenced by beginRun().
|
private |
Definition at line 123 of file HLTMuonMatchAndPlot.h.
Referenced by analyze().
|
private |
Definition at line 122 of file HLTMuonMatchAndPlot.h.
Referenced by analyze().
|
private |
Definition at line 119 of file HLTMuonMatchAndPlot.h.
|
private |
Definition at line 116 of file HLTMuonMatchAndPlot.h.
Referenced by beginRun(), and HLTMuonMatchAndPlot().
|
private |
Definition at line 104 of file HLTMuonMatchAndPlot.h.
Referenced by HLTMuonMatchAndPlot(), and selectedTriggerObjects().
|
private |
Definition at line 107 of file HLTMuonMatchAndPlot.h.
Referenced by analyze(), and HLTMuonMatchAndPlot().
|
private |
Definition at line 117 of file HLTMuonMatchAndPlot.h.
Referenced by HLTMuonMatchAndPlot(), and selectedTriggerObjects().
|
private |
Definition at line 109 of file HLTMuonMatchAndPlot.h.
Referenced by analyze(), and HLTMuonMatchAndPlot().
|
private |
Definition at line 130 of file HLTMuonMatchAndPlot.h.
Referenced by analyze().
|
private |
Definition at line 128 of file HLTMuonMatchAndPlot.h.
Referenced by analyze().
|
private |
Definition at line 111 of file HLTMuonMatchAndPlot.h.
|
private |
Definition at line 129 of file HLTMuonMatchAndPlot.h.
Referenced by analyze().
|
private |
Definition at line 106 of file HLTMuonMatchAndPlot.h.
Referenced by analyze().
|
private |
Definition at line 127 of file HLTMuonMatchAndPlot.h.
Referenced by analyze().
|
private |
Definition at line 125 of file HLTMuonMatchAndPlot.h.
Referenced by analyze().
|
private |
Definition at line 110 of file HLTMuonMatchAndPlot.h.
Referenced by analyze().
|
private |
Definition at line 126 of file HLTMuonMatchAndPlot.h.
Referenced by analyze().
|
private |
Definition at line 114 of file HLTMuonMatchAndPlot.h.
Referenced by analyze(), and HLTMuonMatchAndPlot().