CMS 3D CMS Logo

TtSemiLepEventPartons Class Reference

#include <AnalysisDataFormats/TopObjects/interface/TtEventPartons.h>

List of all members.

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


Detailed Description

Definition at line 45 of file TtEventPartons.h.


Constructor & Destructor Documentation

TtSemiLepEventPartons::TtSemiLepEventPartons (  )  [inline]

empty constructor

Definition at line 50 of file TtEventPartons.h.

00050 {};

TtSemiLepEventPartons::~TtSemiLepEventPartons (  )  [inline]

default destructor

Definition at line 52 of file TtEventPartons.h.

00052 {};


Member Function Documentation

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   };


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:34:45 2009 for CMSSW by  doxygen 1.5.4