#include <TopGenEventAnalyzer.h>
Definition at line 14 of file TopGenEventAnalyzer.h.
Definition at line 4 of file TopGenEventAnalyzer.cc.
References TFileDirectory::make(), nLep_, prodChan_, topBarEta_, topBarPhi_, topBarPt_, topEta_, topPhi_, topPt_, ttbarEta_, ttbarPhi_, and ttbarPt_.
8 nLep_ = fs->
make<TH1F>(
"nLep",
"N(Lepton)", 5, 0., 5.);
9 topPt_ = fs->make<TH1F>(
"topPt",
"pt (top)", 100, 0., 500.);
10 topEta_ = fs->make<TH1F>(
"topEta",
"eta(top)", 40, -5., 5.);
11 topPhi_ = fs->make<TH1F>(
"topPhi",
"phi(top)", 60, -3.5, 3.5);
12 topBarPt_ = fs->make<TH1F>(
"topBarPt",
"pt (topBar)", 100, 0., 500.);
13 topBarEta_ = fs->make<TH1F>(
"topBarEta",
"eta(topBar)", 40, -5., 5.);
14 topBarPhi_ = fs->make<TH1F>(
"topBarPhi",
"phi(topBar)", 60, -3.5, 3.5);
15 ttbarPt_ = fs->make<TH1F>(
"ttbarPt",
"pt (ttbar)", 100, 0., 500.);
16 ttbarEta_ = fs->make<TH1F>(
"ttbarEta",
"eta(ttbar)", 40, -5., 5.);
17 ttbarPhi_ = fs->make<TH1F>(
"ttbarPhi",
"phi(ttbar)", 60, -3.5, 3.5);
18 prodChan_ = fs->make<TH1F>(
"prodChan",
"production mode", 3, 0, 3);
19 prodChan_->GetXaxis()->SetBinLabel(1,
"gg" );
20 prodChan_->GetXaxis()->SetBinLabel(2,
"qqbar");
21 prodChan_->GetXaxis()->SetBinLabel(3,
"other");
T getParameter(std::string const &) const
edm::InputTag inputGenEvent_
T * make() const
make new ROOT object
TopGenEventAnalyzer::~TopGenEventAnalyzer |
( |
| ) |
|
Implements edm::EDAnalyzer.
Definition at line 29 of file TopGenEventAnalyzer.cc.
References MCTruth::genEvent, edm::Event::getByLabel(), inputGenEvent_, nLep_, prodChan_, topBarEta_, topBarPhi_, topBarPt_, topEta_, topPhi_, topPt_, ttbarEta_, ttbarPhi_, and ttbarPt_.
34 if(!genEvent->isTtBar())
37 if(genEvent->fromGluonFusion())
39 else if(genEvent->fromQuarkAnnihilation())
45 nLep_ ->Fill(genEvent->numberOfLeptons());
48 topPt_ ->Fill(genEvent->top ()->pt ());
49 topEta_ ->Fill(genEvent->top ()->eta());
50 topPhi_ ->Fill(genEvent->top ()->phi());
51 topBarPt_ ->Fill(genEvent->topBar()->pt ());
56 ttbarPt_ ->Fill(genEvent->topPair()->pt() );
57 ttbarEta_->Fill(genEvent->topPair()->eta());
58 ttbarPhi_->Fill(genEvent->topPair()->phi());
edm::InputTag inputGenEvent_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void TopGenEventAnalyzer::beginJob |
( |
void |
| ) |
|
|
privatevirtual |
void TopGenEventAnalyzer::endJob |
( |
void |
| ) |
|
|
privatevirtual |
TH1F* TopGenEventAnalyzer::nLep_ |
|
private |
TH1F* TopGenEventAnalyzer::prodChan_ |
|
private |
TH1F* TopGenEventAnalyzer::topBarEta_ |
|
private |
TH1F* TopGenEventAnalyzer::topBarPhi_ |
|
private |
TH1F* TopGenEventAnalyzer::topBarPt_ |
|
private |
TH1F* TopGenEventAnalyzer::topEta_ |
|
private |
TH1F* TopGenEventAnalyzer::topPhi_ |
|
private |
TH1F* TopGenEventAnalyzer::topPt_ |
|
private |
TH1F* TopGenEventAnalyzer::ttbarEta_ |
|
private |
TH1F* TopGenEventAnalyzer::ttbarPhi_ |
|
private |
TH1F* TopGenEventAnalyzer::ttbarPt_ |
|
private |