![]() |
![]() |
#include <BTagPerformanceAnalyzerMC.h>
Classes | |
struct | JetRefCompare |
Public Member Functions | |
void | analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) override |
BTagPerformanceAnalyzerMC (const edm::ParameterSet &pSet) | |
~BTagPerformanceAnalyzerMC () override | |
![]() | |
DQMEDAnalyzer ()=default | |
DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete | |
DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete | |
~DQMEDAnalyzer () override=default | |
Private Types | |
typedef std::map< edm::RefToBase< reco::Jet >, unsigned int, JetRefCompare > | FlavourMap |
typedef std::pair< reco::Jet, reco::JetFlavourInfo > | JetWithFlavour |
typedef std::map< edm::RefToBase< reco::Jet >, reco::JetFlavour::Leptons, JetRefCompare > | LeptonMap |
Private Member Functions | |
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
EtaPtBin | getEtaPtBin (const int &iEta, const int &iPt) |
bool | getJetWithFlavour (const edm::Event &iEvent, edm::RefToBase< reco::Jet > caloRef, const FlavourMap &_flavours, JetWithFlavour &jetWithFlavour, const reco::JetCorrector *corrector, edm::Handle< edm::Association< reco::GenJetCollection >> genJetsMatched) |
bool | getJetWithGenJet (edm::RefToBase< reco::Jet > jetRef, edm::Handle< edm::Association< reco::GenJetCollection >> genJetsMatched) |
Top level steering routine for b tag performance analysis.
Definition at line 27 of file BTagPerformanceAnalyzerMC.h.
|
private |
Definition at line 48 of file BTagPerformanceAnalyzerMC.h.
|
private |
Definition at line 47 of file BTagPerformanceAnalyzerMC.h.
|
private |
Definition at line 49 of file BTagPerformanceAnalyzerMC.h.
|
explicit |
Definition at line 13 of file BTagPerformanceAnalyzerMC.cc.
References binJetTagPlotters, binTagCorrelationPlotters, binTagInfoPlotters, caloJetToken, electronPlots, etaRanges, flavPlots_, genJetsMatchedToken, genToken, edm::ParameterSet::getParameter(), jecDataToken, jecMCToken, jetMatcher, jetTagInputTags, jetTagToken, jetToken, mcPlots_, moduleConfig, muonPlots, ptRanges, MatchJet::setThreshold(), slInfoToken, tagCorrelationInputTags, tagCorrelationToken, tagInfoInputTags, tagInfoToken, tauPlots, and tiDataFormatType.
|
override |
Definition at line 251 of file BTagPerformanceAnalyzerMC.cc.
|
override |
needed for lepton specific plots
needed for lepton specific plots
Definition at line 253 of file BTagPerformanceAnalyzerMC.cc.
References funct::abs(), edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >::begin(), binJetTagPlotters, binTagCorrelationPlotters, binTagInfoPlotters, caloJetToken, mitigatedMETSequence_cff::corrector, PFTauDiscriminatorLogicalAndProducer_cfi::discr2, doJEC, doPUid, reco::JetFlavour::Leptons::electron, metsig::electron, electronPlots, edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >::end(), eventInitialized, Exception, bTagAnalysis_cfi::genJetsMatched, genJetsMatchedToken, genToken, edm::Event::getByToken(), getJetWithFlavour(), mps_fire::i, edm::ProductID::id(), edm::HandleBase::isValid(), patTestJEC_cfi::jec, jecDataToken, jecMCToken, reco::BaseTagInfo::jet(), jets_cff::jetMC, jetSelector, jetTagInputTags, jetTagToken, jetToken, tablePrinter::labels, AK4GenJetFlavourInfos_cfi::leptons, LogDebug, reco::JetFlavour::Leptons::muon, muonPlots, common_cff::pdgId, edm::Handle< T >::product(), ptHatWeight, edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >::size(), edm::RefVector< C, T, F >::size(), findQualityFiles::size, slInfoToken, tagCorrelationInputTags, tagCorrelationToken, tagInfoInputTags, tagInfoToken, reco::JetFlavour::Leptons::tau, metsig::tau, tauPlots, tiDataFormatType, useOldFlavourTool, GenEventInfoProduct::weight(), and mps_merge::weight.
|
overrideprivate |
Definition at line 121 of file BTagPerformanceAnalyzerMC.cc.
References binJetTagPlotters, binTagCorrelationPlotters, binTagInfoPlotters, TagInfoPlotterFactory::buildPlotter(), etaRanges, getEtaPtBin(), edm::InputTag::label(), mcPlots_, moduleConfig, ptRanges, and plotscripts::setTDRStyle().
Referenced by BTagPerformanceAnalyzerMC::JetRefCompare::operator()().
|
private |
Definition at line 224 of file BTagPerformanceAnalyzerMC.cc.
References histoStyle::EtaPtBin, etaRanges, and ptRanges.
Referenced by bookHistograms(), and BTagPerformanceAnalyzerMC::JetRefCompare::operator()().
|
private |
Definition at line 511 of file BTagPerformanceAnalyzerMC.cc.
References DEFINE_FWK_MODULE, doPUid, eventInitialized, GenHFHadronMatcher_cff::flavour, bTagAnalysis_cfi::genJetsMatched, getJetWithGenJet(), mps_fire::i, edm::ProductID::id(), edm::RefToBase< T >::id(), edm::RefToBase< T >::isNull(), jetCorrector, jetMatcher, LogTrace, edm::makeRefToBaseProdFrom(), MatchJet::matchCollections(), edm::RefToBaseVector< T >::push_back(), CorrectJet::setCorrector(), and edm::View< T >::size().
Referenced by analyze().
|
private |
Definition at line 501 of file BTagPerformanceAnalyzerMC.cc.
References doPUid, edm::Ref< C, T, F >::isAvailable(), and edm::Ref< C, T, F >::isNonnull().
Referenced by getJetWithFlavour().
|
private |
Definition at line 72 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), bookHistograms(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 73 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), bookHistograms(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 74 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), bookHistograms(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 97 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 64 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze().
|
private |
Definition at line 87 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), getJetWithFlavour(), and getJetWithGenJet().
|
private |
Definition at line 89 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 62 of file BTagPerformanceAnalyzerMC.h.
Referenced by bookHistograms(), BTagPerformanceAnalyzerMC(), and getEtaPtBin().
|
private |
Definition at line 88 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and getJetWithFlavour().
|
private |
Definition at line 81 of file BTagPerformanceAnalyzerMC.h.
Referenced by BTagPerformanceAnalyzerMC().
|
private |
Definition at line 70 of file BTagPerformanceAnalyzerMC.h.
|
private |
Definition at line 93 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 92 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 95 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 94 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 84 of file BTagPerformanceAnalyzerMC.h.
Referenced by getJetWithFlavour().
|
private |
Definition at line 85 of file BTagPerformanceAnalyzerMC.h.
Referenced by BTagPerformanceAnalyzerMC(), and getJetWithFlavour().
|
private |
Definition at line 68 of file BTagPerformanceAnalyzerMC.h.
|
private |
Definition at line 61 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze().
|
private |
Definition at line 75 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 99 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 96 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 82 of file BTagPerformanceAnalyzerMC.h.
Referenced by bookHistograms(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 79 of file BTagPerformanceAnalyzerMC.h.
Referenced by bookHistograms(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 89 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 66 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze().
|
private |
Definition at line 62 of file BTagPerformanceAnalyzerMC.h.
Referenced by bookHistograms(), BTagPerformanceAnalyzerMC(), and getEtaPtBin().
|
private |
Definition at line 69 of file BTagPerformanceAnalyzerMC.h.
|
private |
Definition at line 98 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 76 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 101 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 77 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 102 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 89 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 60 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 63 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze().