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 |
empty constructor
Definition at line 46 of file TopGenEvent.h.
References TopDecaySubset_cfi::decaySubset.
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, and TopDecayID::tID.
Referenced by TtDilepEvtSolution::getGenB(), TtHadEvtSolution::getGenHadb(), TtDilepLRSignalSelObservables::operator()(), TtHadEvtSolutionMaker::produce(), 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, and TopDecayID::tID.
Referenced by TtDilepEvtSolution::getGenBbar(), TtHadEvtSolution::getGenHadbbar(), TtDilepLRSignalSelObservables::operator()(), TtHadEvtSolutionMaker::produce(), 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 funct::abs(), i, hcalTTPDigis_cfi::id, createfilelist::int, parts_, and cosmictrackingParticleSelector_cfi::pdgId.
|
inline |
return anti-quark daughter of anti-W boson
Definition at line 79 of file TopGenEvent.h.
Referenced by TtFullHadHypGenMatch::buildHypo(), TtHadEvtSolution::getGenHadk(), TtHadEvtSolutionMaker::produce(), and TtFullHadEvtPartons::vec().
|
inline |
return anti-quark daughter of W boson
Definition at line 77 of file TopGenEvent.h.
Referenced by TtFullHadHypGenMatch::buildHypo(), TtHadEvtSolution::getGenHadq(), TtHadEvtSolutionMaker::produce(), and 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 funct::abs(), reco::Candidate::begin(), TopDecayID::bID, reco::Candidate::end(), Exception, edm::errors::InvalidReference, parts_, reco::LeafCandidate::pdgId(), TopDecayID::tID, and top().
|
inline |
return daughter quark of anti-top quark (which can have flavor b, s or d)
Definition at line 71 of file TopGenEvent.h.
|
inline |
return quark daughter of anti-W boson
Definition at line 75 of file TopGenEvent.h.
Referenced by TtFullHadHypGenMatch::buildHypo(), TtHadEvtSolution::getGenHadj(), TtHadEvtSolutionMaker::produce(), and 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 funct::abs(), TopDecayID::bID, reco::flavour(), i, parts_, cosmictrackingParticleSelector_cfi::pdgId, and TopDecayID::WID.
Referenced by TtFullHadHypGenMatch::buildHypo(), TtHadEvtSolution::getGenHadp(), TtHadEvtSolutionMaker::produce(), and TtFullHadEvtPartons::vec().
|
inline |
return electron if available; 0 else
Definition at line 84 of file TopGenEvent.h.
References TopDecayID::elecID, and TopDecayID::WID.
|
inline |
return positron if available; 0 else
Definition at line 86 of file TopGenEvent.h.
References TopDecayID::elecID, and TopDecayID::WID.
|
inline |
return particles of initial partons
Definition at line 55 of file TopGenEvent.h.
References cosmictrackingParticleSelector_cfi::pdgId.
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 funct::abs(), TopDecayID::bID, Exception, edm::errors::InvalidReference, and parts_.
|
inline |
return muon if available; 0 else
Definition at line 88 of file TopGenEvent.h.
References TopDecayID::muonID, and TopDecayID::WID.
|
inline |
return anti-muon if available; 0 else
Definition at line 90 of file TopGenEvent.h.
References 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 funct::abs(), TopDecayID::bID, i, parts_, cosmictrackingParticleSelector_cfi::pdgId, and TopDecayID::tID.
Referenced by TtDilepLRSignalSelObservables::operator()(), TtSemiLRJetCombObservables::operator()(), and TtSemiEvtSolutionMaker::produce().
int TopGenEvent::numberOfLeptons | ( | bool | fromWBoson = true | ) | const |
return number of leptons in the decay chain
Definition at line 48 of file TopGenEvent.cc.
References funct::abs(), i, reco::isLepton(), parts_, cosmictrackingParticleSelector_cfi::pdgId, and TopDecayID::WID.
Referenced by TopGenEventAnalyzer::analyze(), TtGenEvent::isNumberOfLeptons(), and TtSemiEvtSolutionMaker::produce().
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 funct::abs(), TopDecayID::elecID, i, reco::isLepton(), WDecay::kElec, WDecay::kMuon, WDecay::kNone, WDecay::kTau, objects.autophobj::leptonType, TopDecayID::muonID, parts_, cosmictrackingParticleSelector_cfi::pdgId, TopDecayID::tauID, and TopDecayID::WID.
|
inline |
return particles of decay chain
Definition at line 53 of file TopGenEvent.h.
Referenced by ResolutionCreator::analyze(), and TopDecayChannelFilter< S >::filter().
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 cmsBatch::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 Exception, TopDecayID::glueID, edm::errors::InvalidReference, parts_, and cosmictrackingParticleSelector_cfi::pdgId.
Referenced by TtGenEvent::hadronicDecayTopRadiation(), and TtGenEvent::leptonicDecayTopRadiation().
|
inline |
return tau if available; 0 else
Definition at line 92 of file TopGenEvent.h.
References TopDecayID::tauID, and TopDecayID::WID.
|
inline |
return anti-tau if available; 0 else
Definition at line 94 of file TopGenEvent.h.
References TopDecayID::tauID, and TopDecayID::WID.
|
inline |
return top if available; 0 else
Definition at line 104 of file TopGenEvent.h.
References TopDecayID::tID.
Referenced by TopGenEventAnalyzer::analyze(), daughterQuarkOfTop(), TtDilepEvtSolution::getGenT(), TtGenEvent::isTtBar(), and TtGenEvent::TtGenEvent().
|
inline |
return anti-top if available; 0 else
Definition at line 106 of file TopGenEvent.h.
References reco::print(), and TopDecayID::tID.
Referenced by TopGenEventAnalyzer::analyze(), 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 133 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 96 of file TopGenEvent.h.
References TopDecayID::tID, and TopDecayID::WID.
Referenced by TtDilepEvtSolution::getGenWm().
|
inline |
return W plus if available; 0 else
Definition at line 98 of file TopGenEvent.h.
References 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 117 of file TopGenEvent.h.
Referenced by TtGenEvent::fromGluonFusion(), TtGenEvent::fromQuarkAnnihilation(), 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(), print(), radiatedGluons(), StGenEvent::singleLepton(), TtGenEvent::singleLepton(), StGenEvent::singleNeutrino(), TtGenEvent::singleNeutrino(), StGenEvent::singleTop(), StGenEvent::singleW(), StGenEvent::StGenEvent(), TopGenEvent(), topSisters(), and TtGenEvent::TtGenEvent().