Example class that can be used to analyze pat::Muons both within FWLite and within the full framework. More...
#include "PhysicsTools/PatExamples/interface/PatMuonAnalyzer.h"
Public Member Functions | |
void | analyze (const edm::EventBase &event) override |
everything that needs to be done during the event loop More... | |
void | beginJob () override |
everything that needs to be done before the event loop More... | |
void | endJob () override |
everything that needs to be done after the event loop More... | |
PatMuonAnalyzer (const edm::ParameterSet &cfg, TFileDirectory &fs) | |
default constructor More... | |
PatMuonAnalyzer (const edm::ParameterSet &cfg, TFileDirectory &fs, edm::ConsumesCollector &&iC) | |
~PatMuonAnalyzer () override | |
default destructor More... | |
Public Member Functions inherited from edm::BasicAnalyzer | |
BasicAnalyzer (const edm::ParameterSet &cfg, TFileDirectory &fileService) | |
default constructor More... | |
BasicAnalyzer (const edm::ParameterSet &cfg, TFileDirectory &fileService, edm::ConsumesCollector &&iC) | |
virtual | ~BasicAnalyzer () |
default destructor More... | |
Private Attributes | |
std::map< std::string, TH1 * > | hists_ |
histograms More... | |
edm::InputTag | muons_ |
input tag for mouns More... | |
edm::EDGetTokenT< std::vector< pat::Muon > > | muonsToken_ |
Example class that can be used to analyze pat::Muons both within FWLite and within the full framework.
This is an example for keeping classes that can be used both within FWLite and within the full framework. The class is derived from the BasicAnalyzer base class, which is an interface for the two wrapper classes EDAnalyzerWrapper and FWLiteAnalyzerWrapper. You can fin more information on this on WorkBookFWLiteExamples::ExampleFive.
Definition at line 18 of file PatMuonAnalyzer.h.
PatMuonAnalyzer::PatMuonAnalyzer | ( | const edm::ParameterSet & | cfg, |
TFileDirectory & | fs | ||
) |
default constructor
Definition at line 6 of file PatMuonAnalyzer.cc.
References hists_, and TFileDirectory::make().
PatMuonAnalyzer::PatMuonAnalyzer | ( | const edm::ParameterSet & | cfg, |
TFileDirectory & | fs, | ||
edm::ConsumesCollector && | iC | ||
) |
|
inlineoverride |
|
overridevirtual |
everything that needs to be done during the event loop
Implements edm::BasicAnalyzer.
Definition at line 22 of file PatMuonAnalyzer.cc.
References hists_, dumpRecoGeometry_cfg::Muon, PDWG_BPHSkim_cff::muons, and muons_.
|
inlineoverridevirtual |
everything that needs to be done before the event loop
Implements edm::BasicAnalyzer.
Definition at line 26 of file PatMuonAnalyzer.h.
|
inlineoverridevirtual |
everything that needs to be done after the event loop
Implements edm::BasicAnalyzer.
Definition at line 28 of file PatMuonAnalyzer.h.
|
private |
histograms
Definition at line 37 of file PatMuonAnalyzer.h.
Referenced by analyze(), and PatMuonAnalyzer().
|
private |
|
private |
Definition at line 35 of file PatMuonAnalyzer.h.