CMS 3D CMS Logo

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

#include <PFMETDQMAnalyzer.h>

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

Public Member Functions

 PFMETDQMAnalyzer (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 hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () 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_
 
std::string eventInfoFolder_
 
edm::InputTag inputLabel_
 
edm::InputTag matchLabel_
 
edm::EDGetTokenT< edm::View< reco::MET > > myMatchedMET_
 
edm::EDGetTokenT< edm::View< reco::MET > > myMET_
 
int nBadEvents_
 
PFMETMonitor pfMETMonitor_
 
edm::ParameterSet pSet_
 
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 PFMETDQMAnalyzer.h.

Constructor & Destructor Documentation

◆ PFMETDQMAnalyzer()

PFMETDQMAnalyzer::PFMETDQMAnalyzer ( const edm::ParameterSet parameterSet)

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 58 of file PFMETDQMAnalyzer.cc.

58  {
60  iEvent.getByToken(myMET_, metCollection);
61 
62  edm::Handle<edm::View<reco::MET>> matchedMetCollection;
63  iEvent.getByToken(myMatchedMET_, matchedMetCollection);
64 
65  if (metCollection.isValid() && matchedMetCollection.isValid()) {
66  float maxRes = 0.0;
67  float minRes = 99.99;
68  pfMETMonitor_.fillOne((*metCollection)[0], (*matchedMetCollection)[0], minRes, maxRes);
69  }
70 }

References PFMETMonitor::fillOne(), iEvent, edm::HandleBase::isValid(), susyDQM_cfi::metCollection, myMatchedMET_, myMET_, and pfMETMonitor_.

◆ bookHistograms()

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

Implements DQMEDAnalyzer.

Definition at line 44 of file PFMETDQMAnalyzer.cc.

46  {
47  ibooker.setCurrentFolder(eventInfoFolder_);
48 
49  edm::LogInfo("PFMETDQMAnalyzer") << " PFMETDQMAnalyzer::bookHistograms "
50  << "Histogram Folder path set to " << eventInfoFolder_;
51 
52  pfMETMonitor_.setup(ibooker, pSet_);
53 }

References eventInfoFolder_, pfMETMonitor_, pSet_, dqm::implementation::NavigatorBase::setCurrentFolder(), and PFMETMonitor::setup().

Member Data Documentation

◆ benchmarkLabel_

std::string PFMETDQMAnalyzer::benchmarkLabel_
private

Definition at line 28 of file PFMETDQMAnalyzer.h.

Referenced by PFMETDQMAnalyzer().

◆ eventInfoFolder_

std::string PFMETDQMAnalyzer::eventInfoFolder_
private

Definition at line 33 of file PFMETDQMAnalyzer.h.

Referenced by bookHistograms(), and PFMETDQMAnalyzer().

◆ inputLabel_

edm::InputTag PFMETDQMAnalyzer::inputLabel_
private

Definition at line 27 of file PFMETDQMAnalyzer.h.

Referenced by PFMETDQMAnalyzer().

◆ matchLabel_

edm::InputTag PFMETDQMAnalyzer::matchLabel_
private

Definition at line 26 of file PFMETDQMAnalyzer.h.

Referenced by PFMETDQMAnalyzer().

◆ myMatchedMET_

edm::EDGetTokenT<edm::View<reco::MET> > PFMETDQMAnalyzer::myMatchedMET_
private

Definition at line 25 of file PFMETDQMAnalyzer.h.

Referenced by analyze(), and PFMETDQMAnalyzer().

◆ myMET_

edm::EDGetTokenT<edm::View<reco::MET> > PFMETDQMAnalyzer::myMET_
private

Definition at line 24 of file PFMETDQMAnalyzer.h.

Referenced by analyze(), and PFMETDQMAnalyzer().

◆ nBadEvents_

int PFMETDQMAnalyzer::nBadEvents_
private

Definition at line 36 of file PFMETDQMAnalyzer.h.

Referenced by PFMETDQMAnalyzer().

◆ pfMETMonitor_

PFMETMonitor PFMETDQMAnalyzer::pfMETMonitor_
private

Definition at line 30 of file PFMETDQMAnalyzer.h.

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

◆ pSet_

edm::ParameterSet PFMETDQMAnalyzer::pSet_
private

Definition at line 32 of file PFMETDQMAnalyzer.h.

Referenced by bookHistograms(), and PFMETDQMAnalyzer().

◆ subsystemname_

std::string PFMETDQMAnalyzer::subsystemname_
private

Definition at line 34 of file PFMETDQMAnalyzer.h.

Referenced by PFMETDQMAnalyzer().

PFMETDQMAnalyzer::pfMETMonitor_
PFMETMonitor pfMETMonitor_
Definition: PFMETDQMAnalyzer.h:30
PFMETDQMAnalyzer::eventInfoFolder_
std::string eventInfoFolder_
Definition: PFMETDQMAnalyzer.h:33
susyDQM_cfi.metCollection
metCollection
Definition: susyDQM_cfi.py:11
printsummarytable.folder
folder
Definition: printsummarytable.py:7
edm::LogInfo
Definition: MessageLogger.h:254
edm::Handle
Definition: AssociativeIterator.h:50
PFMETDQMAnalyzer::myMET_
edm::EDGetTokenT< edm::View< reco::MET > > myMET_
Definition: PFMETDQMAnalyzer.h:24
PFMETDQMAnalyzer::subsystemname_
std::string subsystemname_
Definition: PFMETDQMAnalyzer.h:34
PFMETDQMAnalyzer::benchmarkLabel_
std::string benchmarkLabel_
Definition: PFMETDQMAnalyzer.h:28
PFMETMonitor::fillOne
void fillOne(const reco::MET &met, const reco::MET &matchedMet, float &minVal, float &maxVal)
Definition: PFMETMonitor.cc:330
PFMETDQMAnalyzer::matchLabel_
edm::InputTag matchLabel_
Definition: PFMETDQMAnalyzer.h:26
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PFMETDQMAnalyzer::myMatchedMET_
edm::EDGetTokenT< edm::View< reco::MET > > myMatchedMET_
Definition: PFMETDQMAnalyzer.h:25
iEvent
int iEvent
Definition: GenABIO.cc:224
PFMETDQMAnalyzer::pSet_
edm::ParameterSet pSet_
Definition: PFMETDQMAnalyzer.h:32
PFMETMonitor::setParameters
void setParameters(Benchmark::Mode mode, float ptmin, float ptmax, float etamin, float etamax, float phimin, float phimax, bool metSpHistos)
set the parameters locally
Definition: PFMETMonitor.cc:63
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::parameterSet
ParameterSet const & parameterSet(Provenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
PFMETMonitor::setup
void setup(DQMStore::IBooker &b)
book histograms
Definition: PFMETMonitor.cc:222
PFMETDQMAnalyzer::inputLabel_
edm::InputTag inputLabel_
Definition: PFMETDQMAnalyzer.h:27
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
PFMETDQMAnalyzer::nBadEvents_
int nBadEvents_
Definition: PFMETDQMAnalyzer.h:36
edm::InputTag
Definition: InputTag.h:15