#include <TopGenEventAnalyzer.h>
|
| TopGenEventAnalyzer (const edm::ParameterSet &) |
|
| ~TopGenEventAnalyzer () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 16 of file TopGenEventAnalyzer.h.
Definition at line 3 of file TopGenEventAnalyzer.cc.
References TFileService::make(), nLep_, prodChan_, topBarEta_, topBarPhi_, topBarPt_, topEta_, topPhi_, topPt_, ttbarEta_, ttbarPhi_, and ttbarPt_.
7 nLep_ = fs->
make<TH1F>(
"nLep",
"N(Lepton)", 5, 0., 5.);
8 topPt_ = fs->make<TH1F>(
"topPt",
"pt (top)", 100, 0., 500.);
9 topEta_ = fs->make<TH1F>(
"topEta",
"eta(top)", 40, -5., 5.);
10 topPhi_ = fs->make<TH1F>(
"topPhi",
"phi(top)", 60, -3.5, 3.5);
11 topBarPt_ = fs->make<TH1F>(
"topBarPt",
"pt (topBar)", 100, 0., 500.);
12 topBarEta_ = fs->make<TH1F>(
"topBarEta",
"eta(topBar)", 40, -5., 5.);
13 topBarPhi_ = fs->make<TH1F>(
"topBarPhi",
"phi(topBar)", 60, -3.5, 3.5);
14 ttbarPt_ = fs->make<TH1F>(
"ttbarPt",
"pt (ttbar)", 100, 0., 500.);
15 ttbarEta_ = fs->make<TH1F>(
"ttbarEta",
"eta(ttbar)", 40, -5., 5.);
16 ttbarPhi_ = fs->make<TH1F>(
"ttbarPhi",
"phi(ttbar)", 60, -3.5, 3.5);
17 prodChan_ = fs->make<TH1F>(
"prodChan",
"production mode", 3, 0, 3);
18 prodChan_->GetXaxis()->SetBinLabel(1,
"gg" );
19 prodChan_->GetXaxis()->SetBinLabel(2,
"qqbar");
20 prodChan_->GetXaxis()->SetBinLabel(3,
"other");
T getParameter(std::string const &) const
T * make(const Args &...args) const
make new ROOT object
edm::EDGetTokenT< TtGenEvent > inputGenEventToken_
TopGenEventAnalyzer::~TopGenEventAnalyzer |
( |
| ) |
|
Definition at line 28 of file TopGenEventAnalyzer.cc.
References reco::LeafCandidate::eta(), TtGenEvent::fromGluonFusion(), TtGenEvent::fromQuarkAnnihilation(), MCTruth::genEvent, edm::Event::getByToken(), inputGenEventToken_, TtGenEvent::isTtBar(), nLep_, TopGenEvent::numberOfLeptons(), reco::LeafCandidate::phi(), prodChan_, reco::LeafCandidate::pt(), TopGenEvent::top(), TopGenEvent::topBar(), topBarEta_, topBarPhi_, topBarPt_, topEta_, TtGenEvent::topPair(), topPhi_, topPt_, ttbarEta_, ttbarPhi_, and ttbarPt_.
virtual double pt() const final
transverse momentum
virtual double eta() const final
momentum pseudorapidity
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool fromQuarkAnnihilation() const
check if the tops were produced from qqbar
const reco::GenParticle * top() const
return top if available; 0 else
virtual double phi() const final
momentum azimuthal angle
bool fromGluonFusion() const
check if the tops were produced from a pair of gluons
edm::EDGetTokenT< TtGenEvent > inputGenEventToken_
const math::XYZTLorentzVector * topPair() const
return combined 4-vector of top and topBar
const reco::GenParticle * topBar() const
return anti-top if available; 0 else
bool isTtBar() const
check if the event can be classified as ttbar
int numberOfLeptons(bool fromWBoson=true) const
return number of leptons in the decay chain
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 |