Base class to hold information for reduced top generator information. More...
#include "AnalysisDataFormats/TopObjects/interface/TopGenEvent.h"
Public Member Functions | |
const reco::GenParticle * | b () const |
return b quark if available; 0 else More... | |
const reco::GenParticle * | bBar () const |
return anti-b quark if available; 0 else More... | |
const reco::GenParticle * | candidate (int id, unsigned int parentId=0) const |
get candidate with given pdg id if available; 0 else More... | |
const reco::GenParticle * | daughterQuarkBarOfWMinus () const |
return anti-quark daughter of anti-W boson More... | |
const reco::GenParticle * | daughterQuarkBarOfWPlus () const |
return anti-quark daughter of W boson More... | |
const reco::GenParticle * | daughterQuarkOfTop (bool invertCharge=false) const |
return daughter quark of top quark (which can have flavor b, s or d) More... | |
const reco::GenParticle * | daughterQuarkOfTopBar () const |
return daughter quark of anti-top quark (which can have flavor b, s or d) More... | |
const reco::GenParticle * | daughterQuarkOfWMinus () const |
return quark daughter of anti-W boson More... | |
const reco::GenParticle * | daughterQuarkOfWPlus (bool invertQuarkCharge=false, bool invertBosonCharge=false) const |
return quark daughter quark of W boson More... | |
const reco::GenParticle * | eMinus () const |
return electron if available; 0 else More... | |
const reco::GenParticle * | ePlus () const |
return positron if available; 0 else More... | |
const reco::GenParticleCollection & | initialPartons () const |
return particles of initial partons More... | |
std::vector< const reco::GenParticle * > | lightQuarks (bool includingBQuarks=false) const |
return all light quarks or all quarks including b's More... | |
const reco::GenParticle * | muMinus () const |
return muon if available; 0 else More... | |
const reco::GenParticle * | muPlus () const |
return anti-muon if available; 0 else More... | |
int | numberOfBQuarks (bool fromTopQuark=true) const |
return number of b quarks in the decay chain More... | |
int | numberOfLeptons (bool fromWBoson=true) const |
return number of leptons in the decay chain More... | |
int | numberOfLeptons (WDecay::LeptonType type, bool fromWBoson=true) const |
return number of leptons in the decay chain More... | |
const reco::GenParticleCollection & | particles () const |
return particles of decay chain More... | |
void | print () const |
std::vector< const reco::GenParticle * > | radiatedGluons (int pdgId) const |
return radiated gluons from particle with pdgId More... | |
const reco::GenParticle * | tauMinus () const |
return tau if available; 0 else More... | |
const reco::GenParticle * | tauPlus () const |
return anti-tau if available; 0 else More... | |
const reco::GenParticle * | top () const |
return top if available; 0 else More... | |
const reco::GenParticle * | topBar () const |
return anti-top if available; 0 else More... | |
TopGenEvent () | |
empty constructor More... | |
TopGenEvent (reco::GenParticleRefProd &decaySubset, reco::GenParticleRefProd &iniSubset) | |
default constructor More... | |
std::vector< const reco::GenParticle * > | topSisters () const |
return number of top anti-top sisters More... | |
const reco::GenParticle * | wMinus () const |
return W minus if available; 0 else More... | |
const reco::GenParticle * | wPlus () const |
return W plus if available; 0 else More... | |
virtual | ~TopGenEvent () |
default destructor More... | |
Protected Attributes | |
reco::GenParticleRefProd | initPartons_ |
reference to the list of initial partons (has to be kept in the event!) More... | |
reco::GenParticleRefProd | parts_ |
reference to the top decay chain (has to be kept in the event!) More... | |
Base class to hold information for reduced top generator information.
The structure holds reference information to the generator particles of the decay chains for each top quark and of the initial partons. It provides access and administration.
Definition at line 41 of file TopGenEvent.h.
|
inline |
TopGenEvent::TopGenEvent | ( | reco::GenParticleRefProd & | decaySubset, |
reco::GenParticleRefProd & | iniSubset | ||
) |
default constructor
default contructor
Definition at line 9 of file TopGenEvent.cc.
References TopDecaySubset_cfi::decaySubset, initPartons_, TopInitSubset_cfi::initSubset, and parts_.
|
inlinevirtual |
|
inline |
return b quark if available; 0 else
Definition at line 100 of file TopGenEvent.h.
References TopDecayID::bID, candidate(), and TopDecayID::tID.
Referenced by TtFullHadEvtPartons::vec(), and TtFullLepEvtPartons::vec().
|
inline |
return anti-b quark if available; 0 else
Definition at line 102 of file TopGenEvent.h.
References TopDecayID::bID, candidate(), and TopDecayID::tID.
Referenced by TtFullHadEvtPartons::vec(), and TtFullLepEvtPartons::vec().
const reco::GenParticle * TopGenEvent::candidate | ( | int | id, |
unsigned int | parentId = 0 |
||
) | const |
get candidate with given pdg id if available; 0 else
Definition at line 16 of file TopGenEvent.cc.
References abs, i, errorMatrix2Lands_multiChannel::id, parts_, and benchmark_cfg::pdgId.
Referenced by b(), bBar(), eMinus(), ePlus(), muMinus(), muPlus(), tauMinus(), tauPlus(), top(), topBar(), wMinus(), and wPlus().
|
inline |
return anti-quark daughter of anti-W boson
Definition at line 79 of file TopGenEvent.h.
References daughterQuarkOfWPlus().
Referenced by TtFullHadEvtPartons::vec().
|
inline |
return anti-quark daughter of W boson
Definition at line 77 of file TopGenEvent.h.
References daughterQuarkOfWPlus().
Referenced by TtFullHadEvtPartons::vec().
const reco::GenParticle * TopGenEvent::daughterQuarkOfTop | ( | bool | invertCharge = false | ) | const |
return daughter quark of top quark (which can have flavor b, s or d)
Definition at line 150 of file TopGenEvent.cc.
References abs, reco::CompositeRefCandidateT< D >::begin(), TopDecayID::bID, reco::CompositeRefCandidateT< D >::end(), edm::hlt::Exception, edm::errors::InvalidReference, parts_, reco::LeafCandidate::pdgId(), TopDecayID::tID, and top().
Referenced by daughterQuarkOfTopBar().
|
inline |
return daughter quark of anti-top quark (which can have flavor b, s or d)
Definition at line 71 of file TopGenEvent.h.
References daughterQuarkOfTop().
|
inline |
return quark daughter of anti-W boson
Definition at line 75 of file TopGenEvent.h.
References daughterQuarkOfWPlus().
Referenced by TtFullHadEvtPartons::vec().
const reco::GenParticle * TopGenEvent::daughterQuarkOfWPlus | ( | bool | invertQuarkCharge = false , |
bool | invertBosonCharge = false |
||
) | const |
return quark daughter quark of W boson
Definition at line 170 of file TopGenEvent.cc.
References abs, TopDecayID::bID, reco::flavour(), i, parts_, benchmark_cfg::pdgId, and TopDecayID::WID.
Referenced by daughterQuarkBarOfWMinus(), daughterQuarkBarOfWPlus(), daughterQuarkOfWMinus(), and TtFullHadEvtPartons::vec().
|
inline |
return electron if available; 0 else
Definition at line 84 of file TopGenEvent.h.
References candidate(), TopDecayID::elecID, and TopDecayID::WID.
|
inline |
return positron if available; 0 else
Definition at line 86 of file TopGenEvent.h.
References candidate(), TopDecayID::elecID, and TopDecayID::WID.
|
inline |
return particles of initial partons
Definition at line 55 of file TopGenEvent.h.
References initPartons_.
std::vector< const reco::GenParticle * > TopGenEvent::lightQuarks | ( | bool | includingBQuarks = false | ) | const |
return all light quarks or all quarks including b's
Definition at line 184 of file TopGenEvent.cc.
References abs, TopDecayID::bID, edm::hlt::Exception, edm::errors::InvalidReference, and parts_.
|
inline |
return muon if available; 0 else
Definition at line 88 of file TopGenEvent.h.
References candidate(), TopDecayID::muonID, and TopDecayID::WID.
|
inline |
return anti-muon if available; 0 else
Definition at line 90 of file TopGenEvent.h.
References candidate(), TopDecayID::muonID, and TopDecayID::WID.
int TopGenEvent::numberOfBQuarks | ( | bool | fromTopQuark = true | ) | const |
return number of b quarks in the decay chain
Definition at line 112 of file TopGenEvent.cc.
References abs, TopDecayID::bID, i, parts_, benchmark_cfg::pdgId, and TopDecayID::tID.
int TopGenEvent::numberOfLeptons | ( | bool | fromWBoson = true | ) | const |
return number of leptons in the decay chain
Definition at line 48 of file TopGenEvent.cc.
References abs, i, reco::isLepton(), parts_, benchmark_cfg::pdgId, and TopDecayID::WID.
Referenced by TtGenEvent::isNumberOfLeptons().
int TopGenEvent::numberOfLeptons | ( | WDecay::LeptonType | type, |
bool | fromWBoson = true |
||
) | const |
return number of leptons in the decay chain
Definition at line 68 of file TopGenEvent.cc.
References abs, TopDecayID::elecID, i, reco::isLepton(), WDecay::kElec, WDecay::kMuon, WDecay::kNone, WDecay::kTau, TopDecayID::muonID, parts_, benchmark_cfg::pdgId, TopDecayID::tauID, and TopDecayID::WID.
|
inline |
return particles of decay chain
Definition at line 53 of file TopGenEvent.h.
References parts_.
void TopGenEvent::print | ( | void | ) | const |
print content of the top decay chain as formated LogInfo to the MessageLogger output for debugging
Definition at line 31 of file TopGenEvent.cc.
References create_public_lumi_plots::log, and parts_.
std::vector< const reco::GenParticle * > TopGenEvent::radiatedGluons | ( | int | pdgId | ) | const |
return radiated gluons from particle with pdgId
Definition at line 199 of file TopGenEvent.cc.
References edm::hlt::Exception, TopDecayID::glueID, edm::errors::InvalidReference, parts_, and benchmark_cfg::pdgId.
Referenced by TtGenEvent::hadronicDecayTopRadiation(), and TtGenEvent::leptonicDecayTopRadiation().
|
inline |
return tau if available; 0 else
Definition at line 92 of file TopGenEvent.h.
References candidate(), TopDecayID::tauID, and TopDecayID::WID.
|
inline |
return anti-tau if available; 0 else
Definition at line 94 of file TopGenEvent.h.
References candidate(), TopDecayID::tauID, and TopDecayID::WID.
|
inline |
return top if available; 0 else
Definition at line 104 of file TopGenEvent.h.
References candidate(), and TopDecayID::tID.
Referenced by daughterQuarkOfTop(), TtGenEvent::isTtBar(), and TtGenEvent::TtGenEvent().
|
inline |
return anti-top if available; 0 else
Definition at line 106 of file TopGenEvent.h.
References candidate(), and TopDecayID::tID.
Referenced by TtGenEvent::isTtBar(), and TtGenEvent::TtGenEvent().
std::vector< const reco::GenParticle * > TopGenEvent::topSisters | ( | ) | const |
return number of top anti-top sisters
Definition at line 133 of file TopGenEvent.cc.
References abs, edm::hlt::Exception, edm::errors::InvalidReference, parts_, and TopDecayID::tID.
|
inline |
return W minus if available; 0 else
Definition at line 96 of file TopGenEvent.h.
References candidate(), TopDecayID::tID, and TopDecayID::WID.
|
inline |
return W plus if available; 0 else
Definition at line 98 of file TopGenEvent.h.
References candidate(), TopDecayID::tID, and TopDecayID::WID.
|
protected |
reference to the list of initial partons (has to be kept in the event!)
Definition at line 117 of file TopGenEvent.h.
Referenced by TtGenEvent::fromGluonFusion(), TtGenEvent::fromQuarkAnnihilation(), initialPartons(), StGenEvent::StGenEvent(), TopGenEvent(), and TtGenEvent::TtGenEvent().
|
protected |
reference to the top decay chain (has to be kept in the event!)
Definition at line 115 of file TopGenEvent.h.
Referenced by StGenEvent::associatedB(), candidate(), daughterQuarkOfTop(), daughterQuarkOfWPlus(), StGenEvent::decayB(), TtGenEvent::hadronicDecayB(), TtGenEvent::hadronicDecayQuark(), TtGenEvent::hadronicDecayTop(), TtGenEvent::hadronicDecayW(), TtGenEvent::lepton(), TtGenEvent::leptonBar(), TtGenEvent::leptonicDecayB(), TtGenEvent::leptonicDecayTop(), TtGenEvent::leptonicDecayW(), lightQuarks(), TtGenEvent::neutrino(), TtGenEvent::neutrinoBar(), numberOfBQuarks(), numberOfLeptons(), particles(), print(), radiatedGluons(), StGenEvent::singleLepton(), TtGenEvent::singleLepton(), StGenEvent::singleNeutrino(), TtGenEvent::singleNeutrino(), StGenEvent::singleTop(), StGenEvent::singleW(), StGenEvent::StGenEvent(), TopGenEvent(), topSisters(), and TtGenEvent::TtGenEvent().