Class derived from the TopGenEvent for single-top events. More...
#include "AnalysisDataFormats/TopObjects/interface/StGenEvent.h"
Public Member Functions | |
const reco::GenParticle * | associatedB () const |
return associated b More... | |
const reco::GenParticle * | decayB () const |
return decay b More... | |
const reco::GenParticle * | singleLepton () const |
return single lepton if available; 0 else More... | |
const reco::GenParticle * | singleNeutrino () const |
return single neutrino if available; 0 else More... | |
const reco::GenParticle * | singleTop () const |
return single Top More... | |
const reco::GenParticle * | singleW () const |
return single W More... | |
StGenEvent () | |
empty constructor More... | |
StGenEvent (reco::GenParticleRefProd &, reco::GenParticleRefProd &) | |
default constructor More... | |
virtual | ~StGenEvent () |
default destructor More... | |
Public Member Functions inherited from TopGenEvent | |
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... | |
Additional Inherited Members | |
Protected Attributes inherited from TopGenEvent | |
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... | |
Class derived from the TopGenEvent for single-top events.
The structure holds reference information to the generator particles of the decay chains for each top quark and of the initial partons and provides access and administration. The derived class contains a few additional getters with respect to its base class.
Definition at line 17 of file StGenEvent.h.
StGenEvent::StGenEvent | ( | ) |
StGenEvent::StGenEvent | ( | reco::GenParticleRefProd & | parts, |
reco::GenParticleRefProd & | inits | ||
) |
default constructor
Definition at line 13 of file StGenEvent.cc.
References TopGenEvent::initPartons_, contentValuesFiles::parts, and TopGenEvent::parts_.
|
virtual |
const reco::GenParticle * StGenEvent::associatedB | ( | ) | const |
return associated b
Definition at line 42 of file StGenEvent.cc.
References funct::abs(), TopDecayID::bID, reco::flavour(), i, TopGenEvent::parts_, benchmark_cfg::pdgId, and singleLepton().
const reco::GenParticle * StGenEvent::decayB | ( | ) | const |
return decay b
Definition at line 24 of file StGenEvent.cc.
References funct::abs(), TopDecayID::bID, reco::flavour(), i, TopGenEvent::parts_, benchmark_cfg::pdgId, and singleLepton().
const reco::GenParticle * StGenEvent::singleLepton | ( | ) | const |
return single lepton if available; 0 else
Definition at line 60 of file StGenEvent.cc.
References funct::abs(), i, reco::isLepton(), TopGenEvent::parts_, benchmark_cfg::pdgId, and TopDecayID::WID.
Referenced by associatedB(), decayB(), singleTop(), and singleW().
const reco::GenParticle * StGenEvent::singleNeutrino | ( | ) | const |
return single neutrino if available; 0 else
Definition at line 74 of file StGenEvent.cc.
References funct::abs(), i, reco::isNeutrino(), TopGenEvent::parts_, benchmark_cfg::pdgId, and TopDecayID::WID.
const reco::GenParticle * StGenEvent::singleTop | ( | ) | const |
return single Top
Definition at line 106 of file StGenEvent.cc.
References funct::abs(), reco::flavour(), i, TopGenEvent::parts_, benchmark_cfg::pdgId, singleLepton(), and TopDecayID::tID.
const reco::GenParticle * StGenEvent::singleW | ( | ) | const |
return single W
Definition at line 88 of file StGenEvent.cc.
References funct::abs(), reco::flavour(), i, TopGenEvent::parts_, benchmark_cfg::pdgId, singleLepton(), and TopDecayID::WID.