Example class that can be used both within FWLite and within the full framework. More...
#include "PhysicsTools/UtilAlgos/interface/AnalysisTasksAnalyzerJEC.h"
Public Member Functions | |
AnalysisTasksAnalyzerJEC (const edm::ParameterSet &cfg, TFileDirectory &fs) | |
default constructor More... | |
AnalysisTasksAnalyzerJEC (const edm::ParameterSet &cfg, TFileDirectory &fs, edm::ConsumesCollector &&iC) | |
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... | |
~AnalysisTasksAnalyzerJEC () 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 | |
bool | help_ |
std::map< std::string, TH2 * > | hists_ |
histograms More... | |
std::string | jecLevel_ |
unsigned int | jetInEvents_ |
edm::InputTag | Jets_ |
input tag for mouns More... | |
edm::EDGetTokenT< std::vector< pat::Jet > > | JetsToken_ |
std::string | patJetCorrFactors_ |
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 19 of file AnalysisTasksAnalyzerJEC.h.
AnalysisTasksAnalyzerJEC::AnalysisTasksAnalyzerJEC | ( | const edm::ParameterSet & | cfg, |
TFileDirectory & | fs | ||
) |
default constructor
Definition at line 8 of file AnalysisTasksAnalyzerJEC.cc.
References hists_, jetInEvents_, and TFileDirectory::make().
AnalysisTasksAnalyzerJEC::AnalysisTasksAnalyzerJEC | ( | const edm::ParameterSet & | cfg, |
TFileDirectory & | fs, | ||
edm::ConsumesCollector && | iC | ||
) |
Definition at line 17 of file AnalysisTasksAnalyzerJEC.cc.
References hists_, jetInEvents_, and TFileDirectory::make().
|
override |
default destructor
deconstructor
A Response function is nicer in a TProfile:
Definition at line 30 of file AnalysisTasksAnalyzerJEC.cc.
References FrontierConditions_GlobalTag_cff::file, hists_, and jecLevel_.
|
overridevirtual |
everything that needs to be done during the event loop
Implements edm::BasicAnalyzer.
Definition at line 39 of file AnalysisTasksAnalyzerJEC.cc.
References gather_cfg::cout, help_, hists_, jecLevel_, L1TRate_cfi::Jet, jetInEvents_, METSkim_cff::Jets, Jets_, dqmdumpme::k, and patJetCorrFactors_.
|
inlineoverridevirtual |
everything that needs to be done before the event loop
Implements edm::BasicAnalyzer.
Definition at line 27 of file AnalysisTasksAnalyzerJEC.h.
|
inlineoverridevirtual |
everything that needs to be done after the event loop
Implements edm::BasicAnalyzer.
Definition at line 29 of file AnalysisTasksAnalyzerJEC.h.
|
private |
Definition at line 39 of file AnalysisTasksAnalyzerJEC.h.
Referenced by analyze().
|
private |
histograms
Definition at line 42 of file AnalysisTasksAnalyzerJEC.h.
Referenced by AnalysisTasksAnalyzerJEC(), analyze(), and ~AnalysisTasksAnalyzerJEC().
|
private |
Definition at line 37 of file AnalysisTasksAnalyzerJEC.h.
Referenced by analyze(), and ~AnalysisTasksAnalyzerJEC().
|
private |
Definition at line 40 of file AnalysisTasksAnalyzerJEC.h.
Referenced by AnalysisTasksAnalyzerJEC(), and analyze().
|
private |
input tag for mouns
Definition at line 35 of file AnalysisTasksAnalyzerJEC.h.
Referenced by analyze().
|
private |
Definition at line 36 of file AnalysisTasksAnalyzerJEC.h.
|
private |
Definition at line 38 of file AnalysisTasksAnalyzerJEC.h.
Referenced by analyze().