#include <BTagPerformanceAnalyzerMC.h>
Classes | |
struct | JetRefCompare |
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) |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > | |
typedef CacheContexts< T...> | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T...> | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT < LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDAnalyzerBase | |
typedef EDAnalyzerAdaptorBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from DQMEDAnalyzer | |
static std::shared_ptr < dqmDetails::NoCache > | globalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *) |
static std::shared_ptr < dqmDetails::NoCache > | globalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *) |
static void | globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *) |
static void | globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *) |
Static Public Member Functions inherited from edm::stream::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Top level steering routine for b tag performance analysis.
Definition at line 27 of file BTagPerformanceAnalyzerMC.h.
|
private |
Definition at line 50 of file BTagPerformanceAnalyzerMC.h.
|
private |
Definition at line 49 of file BTagPerformanceAnalyzerMC.h.
|
private |
Definition at line 51 of file BTagPerformanceAnalyzerMC.h.
|
explicit |
Definition at line 13 of file BTagPerformanceAnalyzerMC.cc.
References binJetTagPlotters, binTagCorrelationPlotters, binTagInfoPlotters, caloJetToken, edm::EDConsumerBase::consumes(), electronPlots, flavPlots_, genJetsMatchedToken, genToken, edm::ParameterSet::getParameter(), HLT_25ns14e33_v1_cff::InputTag, jecDataToken, jecMCToken, jetMatcher, jetTagInputTags, jetTagToken, jetToken, mcPlots_, moduleConfig, muonPlots, MatchJet::setThreshold(), slInfoToken, tagCorrelationInputTags, tagCorrelationToken, tagInfoInputTags, tagInfoToken, tauPlots, and tiDataFormatType.
BTagPerformanceAnalyzerMC::~BTagPerformanceAnalyzerMC | ( | ) |
Definition at line 209 of file BTagPerformanceAnalyzerMC.cc.
References binJetTagPlotters, binTagCorrelationPlotters, and binTagInfoPlotters.
|
virtual |
needed for lepton specific plots
needed for lepton specific plots
Implements edm::stream::EDAnalyzerBase.
Definition at line 228 of file BTagPerformanceAnalyzerMC.cc.
References funct::abs(), edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >::begin(), binJetTagPlotters, binTagCorrelationPlotters, binTagInfoPlotters, binTagInfoPlottersToModuleConfig, caloJetToken, reco::JetCorrector::correction(), mvaPFMET_cff::corrector, doJEC, doPUid, reco::JetFlavour::Leptons::electron, metsig::electron, electronPlots, edm::AssociationVector< KeyRefProd, CVal, KeyRef, SizeType, KeyReferenceHelper >::end(), eventInitialized, Exception, genJetsMatchedToken, genToken, edm::Event::getByToken(), getJetWithFlavour(), i, edm::ProductID::id(), beam_dqm_sourceclient-live_cfg::inputTag, edm::HandleBase::isValid(), patTestJEC_cfi::jec, jecDataToken, jecMCToken, reco::BaseTagInfo::jet(), jetSelector, jetTagInputTags, jetTagToken, jetToken, HLT_25ns14e33_v1_cff::labels, HLT_25ns14e33_v1_cff::leptons, LogDebug, moduleConfig, reco::JetFlavour::Leptons::muon, metsig::muon, muonPlots, benchmark_cfg::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, BaseTagInfoPlotter::tagInfoRequirements(), tagInfoToken, reco::JetFlavour::Leptons::tau, metsig::tau, tauPlots, tiDataFormatType, useOldFlavourTool, and puppiForMET_cff::weight.
|
overrideprivatevirtual |
Implements DQMEDAnalyzer.
Definition at line 98 of file BTagPerformanceAnalyzerMC.cc.
References binJetTagPlotters, binTagCorrelationPlotters, binTagInfoPlotters, binTagInfoPlottersToModuleConfig, TagInfoPlotterFactory::buildPlotter(), etaRanges, getEtaPtBin(), edm::InputTag::label(), mcPlots_, moduleConfig, ptRanges, and setTDRStyle().
|
private |
Definition at line 178 of file BTagPerformanceAnalyzerMC.cc.
References histoStyle::EtaPtBin, etaRanges, edm::false, ptRanges, and funct::true.
Referenced by bookHistograms().
|
private |
Definition at line 490 of file BTagPerformanceAnalyzerMC.cc.
References doPUid, eventInitialized, reco::flavour(), getJetWithGenJet(), 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 482 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(), BTagPerformanceAnalyzerMC(), and ~BTagPerformanceAnalyzerMC().
|
private |
Definition at line 73 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), bookHistograms(), BTagPerformanceAnalyzerMC(), and ~BTagPerformanceAnalyzerMC().
|
private |
Definition at line 74 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), bookHistograms(), BTagPerformanceAnalyzerMC(), and ~BTagPerformanceAnalyzerMC().
|
private |
Definition at line 80 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and bookHistograms().
|
private |
Definition at line 98 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 88 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), getJetWithFlavour(), and getJetWithGenJet().
|
private |
Definition at line 90 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 62 of file BTagPerformanceAnalyzerMC.h.
Referenced by bookHistograms(), and getEtaPtBin().
|
private |
Definition at line 89 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and getJetWithFlavour().
|
private |
Definition at line 82 of file BTagPerformanceAnalyzerMC.h.
Referenced by BTagPerformanceAnalyzerMC().
|
private |
Definition at line 70 of file BTagPerformanceAnalyzerMC.h.
|
private |
Definition at line 94 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 93 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 95 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 85 of file BTagPerformanceAnalyzerMC.h.
Referenced by getJetWithFlavour().
|
private |
Definition at line 86 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 100 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 97 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 83 of file BTagPerformanceAnalyzerMC.h.
Referenced by bookHistograms(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 79 of file BTagPerformanceAnalyzerMC.h.
Referenced by analyze(), bookHistograms(), and BTagPerformanceAnalyzerMC().
|
private |
Definition at line 90 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(), and getEtaPtBin().
|
private |
Definition at line 69 of file BTagPerformanceAnalyzerMC.h.
|
private |
Definition at line 99 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 90 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().