#include <AnalysisDataFormats/TopObjects/interface/TtEventPartons.h>
Public Member Functions | |
TtSemiLepEventPartons () | |
empty constructor | |
std::vector< const reco::Candidate * > | vec (const TtGenEvent &genEvt) |
return vector of partons in the order defined in TtGenEvent | |
~TtSemiLepEventPartons () | |
default destructor |
Definition at line 45 of file TtEventPartons.h.
TtSemiLepEventPartons::TtSemiLepEventPartons | ( | ) | [inline] |
TtSemiLepEventPartons::~TtSemiLepEventPartons | ( | ) | [inline] |
std::vector<const reco::Candidate*> TtSemiLepEventPartons::vec | ( | const TtGenEvent & | genEvt | ) | [inline] |
return vector of partons in the order defined in TtGenEvent
Definition at line 55 of file TtEventPartons.h.
References TtGenEvent::hadronicDecayB(), TtGenEvent::hadronicDecayQuark(), TtGenEvent::hadronicDecayQuarkBar(), TtGenEvent::isSemiLeptonic(), and TtGenEvent::leptonicDecayB().
00056 { 00057 std::vector<const reco::Candidate*> vec; 00058 vec.push_back( (genEvt.isSemiLeptonic() && genEvt.hadronicDecayQuark() ) ? genEvt.hadronicDecayQuark() : new reco::GenParticle(0, reco::Particle::LorentzVector(), reco::Particle::Point(), 0, 0, false) ); 00059 vec.push_back( (genEvt.isSemiLeptonic() && genEvt.hadronicDecayQuarkBar()) ? genEvt.hadronicDecayQuarkBar() : new reco::GenParticle(0, reco::Particle::LorentzVector(), reco::Particle::Point(), 0, 0, false)); 00060 vec.push_back( (genEvt.isSemiLeptonic() && genEvt.hadronicDecayB() ) ? genEvt.hadronicDecayB() : new reco::GenParticle(0, reco::Particle::LorentzVector(), reco::Particle::Point(), 0, 0, false) ); 00061 vec.push_back( (genEvt.isSemiLeptonic() && genEvt.leptonicDecayB() ) ? genEvt.leptonicDecayB() : new reco::GenParticle(0, reco::Particle::LorentzVector(), reco::Particle::Point(), 0, 0, false) ); 00062 return vec; 00063 };