CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
PFMuonDQMAnalyzer Class Reference

#include <PFMuonDQMAnalyzer.h>

Inheritance diagram for PFMuonDQMAnalyzer:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

 PFMuonDQMAnalyzer (const edm::ParameterSet &parameterSet)
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Private Member Functions

void analyze (edm::Event const &, edm::EventSetup const &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 

Private Attributes

std::string benchmarkLabel_
 
bool createEfficiencyHistos_
 
std::string eventInfoFolder_
 
edm::InputTag inputLabel_
 
edm::InputTag matchLabel_
 
edm::EDGetTokenT< edm::View< reco::Muon > > myCand_
 
edm::EDGetTokenT< edm::View< reco::Muon > > myMatchedCand_
 
int nBadEvents_
 
PFCandidateMonitor pfCandidateMonitor_
 
edm::ParameterSet pSet_
 
double ptBase_
 
double ptNotPF_
 
std::string subsystemname_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

Detailed Description

Definition at line 15 of file PFMuonDQMAnalyzer.h.

Constructor & Destructor Documentation

◆ PFMuonDQMAnalyzer()

PFMuonDQMAnalyzer::PFMuonDQMAnalyzer ( const edm::ParameterSet parameterSet)

Member Function Documentation

◆ analyze()

void PFMuonDQMAnalyzer::analyze ( edm::Event const &  iEvent,
edm::EventSetup const &  iSetup 
)
overrideprivatevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 58 of file PFMuonDQMAnalyzer.cc.

58  {
59  edm::Handle<edm::View<reco::Muon>> candCollection;
60  edm::Handle<edm::View<reco::Muon>> matchedCandCollection;
62  iEvent.getByToken(myCand_, candCollection);
63  iEvent.getByToken(myMatchedCand_, matchedCandCollection);
64  } else {
65  iEvent.getByToken(myMatchedCand_, candCollection);
66  iEvent.getByToken(myCand_, matchedCandCollection);
67  }
68 
69  float maxRes = 0.0;
70  float minRes = 99.99;
71  if (candCollection.isValid() && matchedCandCollection.isValid()) {
72  pfCandidateMonitor_.fill(*candCollection, *matchedCandCollection, minRes, maxRes, pSet_, *matchedCandCollection);
73  }
74 }

References createEfficiencyHistos_, PFCandidateMonitor::fill(), iEvent, edm::HandleBase::isValid(), myCand_, myMatchedCand_, pfCandidateMonitor_, and pSet_.

◆ bookHistograms()

void PFMuonDQMAnalyzer::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivatevirtual

Implements DQMEDAnalyzer.

Definition at line 44 of file PFMuonDQMAnalyzer.cc.

46  {
48 
49  edm::LogInfo("PFMuonDQMAnalyzer") << " PFMuonDQMAnalyzer::bookHistograms "
50  << "Histogram Folder path set to " << eventInfoFolder_;
51 
53 }

References eventInfoFolder_, pfCandidateMonitor_, pSet_, dqm::implementation::NavigatorBase::setCurrentFolder(), and PFCandidateMonitor::setup().

Member Data Documentation

◆ benchmarkLabel_

std::string PFMuonDQMAnalyzer::benchmarkLabel_
private

Definition at line 28 of file PFMuonDQMAnalyzer.h.

Referenced by PFMuonDQMAnalyzer().

◆ createEfficiencyHistos_

bool PFMuonDQMAnalyzer::createEfficiencyHistos_
private

Definition at line 29 of file PFMuonDQMAnalyzer.h.

Referenced by analyze(), and PFMuonDQMAnalyzer().

◆ eventInfoFolder_

std::string PFMuonDQMAnalyzer::eventInfoFolder_
private

Definition at line 37 of file PFMuonDQMAnalyzer.h.

Referenced by bookHistograms(), and PFMuonDQMAnalyzer().

◆ inputLabel_

edm::InputTag PFMuonDQMAnalyzer::inputLabel_
private

Definition at line 27 of file PFMuonDQMAnalyzer.h.

Referenced by PFMuonDQMAnalyzer().

◆ matchLabel_

edm::InputTag PFMuonDQMAnalyzer::matchLabel_
private

Definition at line 26 of file PFMuonDQMAnalyzer.h.

Referenced by PFMuonDQMAnalyzer().

◆ myCand_

edm::EDGetTokenT<edm::View<reco::Muon> > PFMuonDQMAnalyzer::myCand_
private

Definition at line 24 of file PFMuonDQMAnalyzer.h.

Referenced by analyze(), and PFMuonDQMAnalyzer().

◆ myMatchedCand_

edm::EDGetTokenT<edm::View<reco::Muon> > PFMuonDQMAnalyzer::myMatchedCand_
private

Definition at line 25 of file PFMuonDQMAnalyzer.h.

Referenced by analyze(), and PFMuonDQMAnalyzer().

◆ nBadEvents_

int PFMuonDQMAnalyzer::nBadEvents_
private

Definition at line 40 of file PFMuonDQMAnalyzer.h.

Referenced by PFMuonDQMAnalyzer().

◆ pfCandidateMonitor_

PFCandidateMonitor PFMuonDQMAnalyzer::pfCandidateMonitor_
private

Definition at line 34 of file PFMuonDQMAnalyzer.h.

Referenced by analyze(), bookHistograms(), and PFMuonDQMAnalyzer().

◆ pSet_

edm::ParameterSet PFMuonDQMAnalyzer::pSet_
private

Definition at line 36 of file PFMuonDQMAnalyzer.h.

Referenced by analyze(), bookHistograms(), and PFMuonDQMAnalyzer().

◆ ptBase_

double PFMuonDQMAnalyzer::ptBase_
private

Definition at line 31 of file PFMuonDQMAnalyzer.h.

◆ ptNotPF_

double PFMuonDQMAnalyzer::ptNotPF_
private

Definition at line 32 of file PFMuonDQMAnalyzer.h.

◆ subsystemname_

std::string PFMuonDQMAnalyzer::subsystemname_
private

Definition at line 38 of file PFMuonDQMAnalyzer.h.

Referenced by PFMuonDQMAnalyzer().

PFMuonDQMAnalyzer::myCand_
edm::EDGetTokenT< edm::View< reco::Muon > > myCand_
Definition: PFMuonDQMAnalyzer.h:24
PFMuonDQMAnalyzer::inputLabel_
edm::InputTag inputLabel_
Definition: PFMuonDQMAnalyzer.h:27
printsummarytable.folder
folder
Definition: printsummarytable.py:7
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
PFMuonDQMAnalyzer::pSet_
edm::ParameterSet pSet_
Definition: PFMuonDQMAnalyzer.h:36
PFCandidateMonitor::setParameters
void setParameters(float dRMax, bool matchCharge, Benchmark::Mode mode, float ptmin, float ptmax, float etamin, float etamax, float phimin, float phimax, bool refHistoFlag)
set the parameters locally
Definition: PFCandidateMonitor.cc:62
edm::Handle
Definition: AssociativeIterator.h:50
PFCandidateMonitor::fill
void fill(const T &candidateCollection, const C &matchedCandCollection, float &minVal, float &maxVal, const edm::ParameterSet &parameterSet)
fill histograms with all particle
Definition: PFCandidateMonitor.h:87
PFMuonDQMAnalyzer::pfCandidateMonitor_
PFCandidateMonitor pfCandidateMonitor_
Definition: PFMuonDQMAnalyzer.h:34
edm::parameterSet
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
PFMuonDQMAnalyzer::myMatchedCand_
edm::EDGetTokenT< edm::View< reco::Muon > > myMatchedCand_
Definition: PFMuonDQMAnalyzer.h:25
PFMuonDQMAnalyzer::eventInfoFolder_
std::string eventInfoFolder_
Definition: PFMuonDQMAnalyzer.h:37
PFMuonDQMAnalyzer::subsystemname_
std::string subsystemname_
Definition: PFMuonDQMAnalyzer.h:38
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PFMuonDQMAnalyzer::benchmarkLabel_
std::string benchmarkLabel_
Definition: PFMuonDQMAnalyzer.h:28
iEvent
int iEvent
Definition: GenABIO.cc:224
PFCandidateMonitor::setup
void setup(DQMStore::IBooker &b)
book histograms
Definition: PFCandidateMonitor.cc:164
PFMuonDQMAnalyzer::matchLabel_
edm::InputTag matchLabel_
Definition: PFMuonDQMAnalyzer.h:26
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
PFMuonDQMAnalyzer::nBadEvents_
int nBadEvents_
Definition: PFMuonDQMAnalyzer.h:40
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
edm::InputTag
Definition: InputTag.h:15
PFMuonDQMAnalyzer::createEfficiencyHistos_
bool createEfficiencyHistos_
Definition: PFMuonDQMAnalyzer.h:29