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 40 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 97 of file TopGenEvent.h.
References TopDecayID::bID, candidate(), and TopDecayID::tID.
Referenced by TtDilepEvtSolution::getGenB(), and TtHadEvtSolution::getGenHadb().
|
inline |
return anti-b quark if available; 0 else
Definition at line 99 of file TopGenEvent.h.
References TopDecayID::bID, candidate(), and TopDecayID::tID.
Referenced by TtDilepEvtSolution::getGenBbar(), and TtHadEvtSolution::getGenHadbbar().
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 14 of file TopGenEvent.cc.
References funct::abs(), mps_fire::i, triggerObjects_cff::id, createfilelist::int, parts_, and EgammaValidation_cff::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 76 of file TopGenEvent.h.
References daughterQuarkOfWPlus().
Referenced by TtHadEvtSolution::getGenHadk().
|
inline |
return anti-quark daughter of W boson
Definition at line 74 of file TopGenEvent.h.
References daughterQuarkOfWPlus().
Referenced by TtHadEvtSolution::getGenHadq().
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 132 of file TopGenEvent.cc.
References funct::abs(), reco::Candidate::begin(), TopDecayID::bID, reco::Candidate::end(), 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 68 of file TopGenEvent.h.
References daughterQuarkOfTop().
|
inline |
return quark daughter of anti-W boson
Definition at line 72 of file TopGenEvent.h.
References daughterQuarkOfWPlus().
Referenced by TtHadEvtSolution::getGenHadj().
const reco::GenParticle * TopGenEvent::daughterQuarkOfWPlus | ( | bool | invertQuarkCharge = false , |
bool | invertBosonCharge = false |
||
) | const |
return quark daughter quark of W boson
Definition at line 150 of file TopGenEvent.cc.
References funct::abs(), TopDecayID::bID, reco::flavour(), mps_fire::i, parts_, EgammaValidation_cff::pdgId, and TopDecayID::WID.
Referenced by daughterQuarkBarOfWMinus(), daughterQuarkBarOfWPlus(), daughterQuarkOfWMinus(), and TtHadEvtSolution::getGenHadp().
|
inline |
return electron if available; 0 else
Definition at line 81 of file TopGenEvent.h.
References candidate(), TopDecayID::elecID, and TopDecayID::WID.
|
inline |
return positron if available; 0 else
Definition at line 83 of file TopGenEvent.h.
References candidate(), TopDecayID::elecID, and TopDecayID::WID.
|
inline |
return particles of initial partons
Definition at line 52 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 164 of file TopGenEvent.cc.
References funct::abs(), TopDecayID::bID, Exception, edm::errors::InvalidReference, and parts_.
|
inline |
return muon if available; 0 else
Definition at line 85 of file TopGenEvent.h.
References candidate(), TopDecayID::muonID, and TopDecayID::WID.
|
inline |
return anti-muon if available; 0 else
Definition at line 87 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 99 of file TopGenEvent.cc.
References funct::abs(), TopDecayID::bID, mps_fire::i, parts_, EgammaValidation_cff::pdgId, and TopDecayID::tID.
int TopGenEvent::numberOfLeptons | ( | bool | fromWBoson = true | ) | const |
return number of leptons in the decay chain
Definition at line 41 of file TopGenEvent.cc.
References funct::abs(), mps_fire::i, reco::isLepton(), parts_, EgammaValidation_cff::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 58 of file TopGenEvent.cc.
References funct::abs(), TopDecayID::elecID, mps_fire::i, reco::isLepton(), WDecay::kElec, WDecay::kMuon, WDecay::kNone, WDecay::kTau, objects.autophobj::leptonType, TopDecayID::muonID, parts_, EgammaValidation_cff::pdgId, TopDecayID::tauID, and TopDecayID::WID.
|
inline |
return particles of decay chain
Definition at line 50 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 27 of file TopGenEvent.cc.
References dqm-mbProfile::log, and parts_.
std::vector< const reco::GenParticle * > TopGenEvent::radiatedGluons | ( | int | pdgId | ) | const |
return radiated gluons from particle with pdgId
Definition at line 177 of file TopGenEvent.cc.
References Exception, TopDecayID::glueID, edm::errors::InvalidReference, parts_, and EgammaValidation_cff::pdgId.
Referenced by TtGenEvent::hadronicDecayTopRadiation(), and TtGenEvent::leptonicDecayTopRadiation().
|
inline |
return tau if available; 0 else
Definition at line 89 of file TopGenEvent.h.
References candidate(), TopDecayID::tauID, and TopDecayID::WID.
|
inline |
return anti-tau if available; 0 else
Definition at line 91 of file TopGenEvent.h.
References candidate(), TopDecayID::tauID, and TopDecayID::WID.
|
inline |
return top if available; 0 else
Definition at line 101 of file TopGenEvent.h.
References candidate(), and TopDecayID::tID.
Referenced by daughterQuarkOfTop(), TtDilepEvtSolution::getGenT(), TtGenEvent::isTtBar(), and TtGenEvent::TtGenEvent().
|
inline |
return anti-top if available; 0 else
Definition at line 103 of file TopGenEvent.h.
References candidate(), and TopDecayID::tID.
Referenced by TtDilepEvtSolution::getGenTbar(), TtGenEvent::isTtBar(), and TtGenEvent::TtGenEvent().
std::vector< const reco::GenParticle * > TopGenEvent::topSisters | ( | ) | const |
return number of top anti-top sisters
Definition at line 117 of file TopGenEvent.cc.
References funct::abs(), Exception, edm::errors::InvalidReference, parts_, and TopDecayID::tID.
|
inline |
return W minus if available; 0 else
Definition at line 93 of file TopGenEvent.h.
References candidate(), TopDecayID::tID, and TopDecayID::WID.
Referenced by TtDilepEvtSolution::getGenWm().
|
inline |
return W plus if available; 0 else
Definition at line 95 of file TopGenEvent.h.
References candidate(), TopDecayID::tID, and TopDecayID::WID.
Referenced by TtDilepEvtSolution::getGenWp().
|
protected |
reference to the list of initial partons (has to be kept in the event!)
Definition at line 113 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 111 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().