Example class that can be used both within FWLite and within the full framework. More...
#include "PhysicsTools/UtilAlgos/interface/BasicMuonAnalyzer.h"
Public Member Functions | |
void | analyze (const edm::EventBase &event) |
everything that needs to be done during the event loop More... | |
BasicMuonAnalyzer (const edm::ParameterSet &cfg, TFileDirectory &fs) | |
default constructor More... | |
BasicMuonAnalyzer (const edm::ParameterSet &cfg, TFileDirectory &fs, edm::ConsumesCollector &&iC) | |
void | beginJob () |
everything that needs to be done before the event loop More... | |
void | endJob () |
everything that needs to be done after the event loop More... | |
virtual | ~BasicMuonAnalyzer () |
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 < reco::Muon > > | muonsToken_ |
Example class that can be used 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. The latter provides basic configuration file reading and event looping equivalent to the FWLiteHistograms executable of this package. You can see the FWLiteAnalyzerWrapper class at work in the FWLiteWithBasicAnalyzer executable of this package.
Definition at line 20 of file BasicMuonAnalyzer.h.
BasicMuonAnalyzer::BasicMuonAnalyzer | ( | const edm::ParameterSet & | cfg, |
TFileDirectory & | fs | ||
) |
default constructor
Definition at line 7 of file BasicMuonAnalyzer.cc.
References hists_, and TFileDirectory::make().
BasicMuonAnalyzer::BasicMuonAnalyzer | ( | const edm::ParameterSet & | cfg, |
TFileDirectory & | fs, | ||
edm::ConsumesCollector && | iC | ||
) |
Definition at line 16 of file BasicMuonAnalyzer.cc.
References hists_, and TFileDirectory::make().
|
inlinevirtual |
|
virtual |
everything that needs to be done during the event loop
Implements edm::BasicAnalyzer.
Definition at line 29 of file BasicMuonAnalyzer.cc.
References hists_, ResonanceBuilder::mass, configurableAnalysis::Muon, patZpeak::muons, and muons_.
|
inlinevirtual |
everything that needs to be done before the event loop
Implements edm::BasicAnalyzer.
Definition at line 29 of file BasicMuonAnalyzer.h.
|
inlinevirtual |
everything that needs to be done after the event loop
Implements edm::BasicAnalyzer.
Definition at line 31 of file BasicMuonAnalyzer.h.
|
private |
histograms
Definition at line 40 of file BasicMuonAnalyzer.h.
Referenced by analyze(), and BasicMuonAnalyzer().
|
private |
|
private |
Definition at line 38 of file BasicMuonAnalyzer.h.