PhysicsTools
PatExamples
interface
AnalysisTasksAnalyzerJEC.h
Go to the documentation of this file.
1
#include <map>
2
#include <string>
3
4
#include "TH2.h"
5
#include "
PhysicsTools/UtilAlgos/interface/BasicAnalyzer.h
"
6
#include "
PhysicsTools/Heppy/interface/JetUtils.h
"
19
class
AnalysisTasksAnalyzerJEC
:
public
edm::BasicAnalyzer
{
20
public
:
22
AnalysisTasksAnalyzerJEC
(
const
edm::ParameterSet
&
cfg
,
TFileDirectory
& fs);
23
AnalysisTasksAnalyzerJEC
(
const
edm::ParameterSet
&
cfg
,
TFileDirectory
& fs,
edm::ConsumesCollector
&& iC);
25
~AnalysisTasksAnalyzerJEC
()
override
;
27
void
beginJob
()
override
{};
29
void
endJob
()
override
{};
31
void
analyze
(
const
edm::EventBase
&
event
)
override
;
32
33
private
:
35
edm::InputTag
Jets_
;
36
edm::EDGetTokenT<std::vector<pat::Jet>
>
JetsToken_
;
37
std::string
jecLevel_
;
38
std::string
patJetCorrFactors_
;
39
bool
help_
;
40
unsigned
int
jetInEvents_
;
42
std::map<std::string, TH2*>
hists_
;
43
};
edm::EDGetTokenT
Definition:
EDGetToken.h:33
JetUtils.h
TFileDirectory
Definition:
TFileDirectory.h:24
AnalysisTasksAnalyzerJEC::AnalysisTasksAnalyzerJEC
AnalysisTasksAnalyzerJEC(const edm::ParameterSet &cfg, TFileDirectory &fs)
default constructor
Definition:
AnalysisTasksAnalyzerJEC.cc:8
AnalysisTasksAnalyzerJEC::jecLevel_
std::string jecLevel_
Definition:
AnalysisTasksAnalyzerJEC.h:37
BasicAnalyzer.h
AnalysisTasksAnalyzerJEC::endJob
void endJob() override
everything that needs to be done after the event loop
Definition:
AnalysisTasksAnalyzerJEC.h:29
AnalysisTasksAnalyzerJEC::~AnalysisTasksAnalyzerJEC
~AnalysisTasksAnalyzerJEC() override
default destructor
Definition:
AnalysisTasksAnalyzerJEC.cc:30
edm::ParameterSet
Definition:
ParameterSet.h:47
AnalysisTasksAnalyzerJEC::help_
bool help_
Definition:
AnalysisTasksAnalyzerJEC.h:39
AnalysisTasksAnalyzerJEC
Example class that can be used both within FWLite and within the full framework.
Definition:
AnalysisTasksAnalyzerJEC.h:19
AnalysisTasksAnalyzerJEC::hists_
std::map< std::string, TH2 * > hists_
histograms
Definition:
AnalysisTasksAnalyzerJEC.h:42
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
looper.cfg
cfg
Definition:
looper.py:296
AnalysisTasksAnalyzerJEC::JetsToken_
edm::EDGetTokenT< std::vector< pat::Jet > > JetsToken_
Definition:
AnalysisTasksAnalyzerJEC.h:36
AnalysisTasksAnalyzerJEC::jetInEvents_
unsigned int jetInEvents_
Definition:
AnalysisTasksAnalyzerJEC.h:40
AnalysisTasksAnalyzerJEC::patJetCorrFactors_
std::string patJetCorrFactors_
Definition:
AnalysisTasksAnalyzerJEC.h:38
AnalysisTasksAnalyzerJEC::analyze
void analyze(const edm::EventBase &event) override
everything that needs to be done during the event loop
Definition:
AnalysisTasksAnalyzerJEC.cc:39
edm::BasicAnalyzer
Definition:
BasicAnalyzer.h:42
edm::EventBase
Definition:
EventBase.h:46
AnalysisTasksAnalyzerJEC::Jets_
edm::InputTag Jets_
input tag for mouns
Definition:
AnalysisTasksAnalyzerJEC.h:35
event
Definition:
event.py:1
edm::InputTag
Definition:
InputTag.h:15
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
AnalysisTasksAnalyzerJEC::beginJob
void beginJob() override
everything that needs to be done before the event loop
Definition:
AnalysisTasksAnalyzerJEC.h:27
Generated for CMSSW Reference Manual by
1.8.16