TopQuarkAnalysis
Examples
plugins
TopGenEventAnalyzer.h
Go to the documentation of this file.
1
#ifndef TopGenEventAnalyzer_h
2
#define TopGenEventAnalyzer_h
3
4
#include "TH1.h"
5
6
#include "
FWCore/Framework/interface/Event.h
"
7
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
8
#include "
FWCore/Utilities/interface/InputTag.h
"
9
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
10
#include "
FWCore/ServiceRegistry/interface/Service.h
"
11
#include "
CommonTools/UtilAlgos/interface/TFileService.h
"
12
13
#include "
AnalysisDataFormats/TopObjects/interface/TtGenEvent.h
"
14
15
class
TopGenEventAnalyzer
:
public
edm::EDAnalyzer
{
16
public
:
17
explicit
TopGenEventAnalyzer
(
const
edm::ParameterSet
&);
18
~TopGenEventAnalyzer
()
override
;
19
20
private
:
21
void
beginJob
()
override
;
22
void
analyze
(
const
edm::Event
&,
const
edm::EventSetup
&)
override
;
23
void
endJob
()
override
;
24
25
edm::EDGetTokenT<TtGenEvent>
inputGenEventToken_
;
26
27
TH1F *
nLep_
;
28
TH1F *
topPt_
;
29
TH1F *
topEta_
;
30
TH1F *
topPhi_
;
31
TH1F *
topBarPt_
;
32
TH1F *
topBarEta_
;
33
TH1F *
topBarPhi_
;
34
TH1F *
ttbarPt_
;
35
TH1F *
ttbarEta_
;
36
TH1F *
ttbarPhi_
;
37
TH1F *
prodChan_
;
38
};
39
40
#endif
TopGenEventAnalyzer::topPt_
TH1F * topPt_
Definition:
TopGenEventAnalyzer.h:28
TopGenEventAnalyzer::topEta_
TH1F * topEta_
Definition:
TopGenEventAnalyzer.h:29
edm::EDGetTokenT< TtGenEvent >
TopGenEventAnalyzer::inputGenEventToken_
edm::EDGetTokenT< TtGenEvent > inputGenEventToken_
Definition:
TopGenEventAnalyzer.h:25
EDAnalyzer.h
TopGenEventAnalyzer::topBarPhi_
TH1F * topBarPhi_
Definition:
TopGenEventAnalyzer.h:33
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
Service.h
TopGenEventAnalyzer::topPhi_
TH1F * topPhi_
Definition:
TopGenEventAnalyzer.h:30
TopGenEventAnalyzer
Definition:
TopGenEventAnalyzer.h:15
TopGenEventAnalyzer::~TopGenEventAnalyzer
~TopGenEventAnalyzer() override
Definition:
TopGenEventAnalyzer.cc:22
TopGenEventAnalyzer::beginJob
void beginJob() override
Definition:
TopGenEventAnalyzer.cc:55
TFileService.h
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
TtGenEvent.h
TopGenEventAnalyzer::topBarPt_
TH1F * topBarPt_
Definition:
TopGenEventAnalyzer.h:31
TopGenEventAnalyzer::topBarEta_
TH1F * topBarEta_
Definition:
TopGenEventAnalyzer.h:32
TopGenEventAnalyzer::TopGenEventAnalyzer
TopGenEventAnalyzer(const edm::ParameterSet &)
Definition:
TopGenEventAnalyzer.cc:3
TopGenEventAnalyzer::ttbarEta_
TH1F * ttbarEta_
Definition:
TopGenEventAnalyzer.h:35
edm::EventSetup
Definition:
EventSetup.h:57
TopGenEventAnalyzer::ttbarPt_
TH1F * ttbarPt_
Definition:
TopGenEventAnalyzer.h:34
InputTag.h
TopGenEventAnalyzer::endJob
void endJob() override
Definition:
TopGenEventAnalyzer.cc:57
TopGenEventAnalyzer::ttbarPhi_
TH1F * ttbarPhi_
Definition:
TopGenEventAnalyzer.h:36
TopGenEventAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition:
TopGenEventAnalyzer.cc:24
TopGenEventAnalyzer::prodChan_
TH1F * prodChan_
Definition:
TopGenEventAnalyzer.h:37
ParameterSet.h
edm::Event
Definition:
Event.h:73
TopGenEventAnalyzer::nLep_
TH1F * nLep_
Definition:
TopGenEventAnalyzer.h:27
Generated for CMSSW Reference Manual by
1.8.16