CMS 3D CMS Logo

reco::PFSimParticle Class Reference

true particle for particle flow More...

#include <DataFormats/ParticleFlowReco/interface/PFSimParticle.h>

Inheritance diagram for reco::PFSimParticle:

reco::PFTrack

List of all members.

Public Member Functions

const std::vector< int > & daughterIds () const
 
Returns:
vector of daughter ids

unsigned id () const
 
Returns:
id

int motherId () const
 
Returns:
mother id

int pdgCode () const
 
Returns:
pdg code

 PFSimParticle (const PFSimParticle &other)
 PFSimParticle (double charge, int pdgCode, unsigned id, int motherId, const std::vector< int > &daughterIds, unsigned rectrackId, std::vector< unsigned > recHitContrib, std::vector< double > recHitContribFrac)
 PFSimParticle ()
std::vector< unsigned > recHitContrib () const
std::vector< double > recHitContribFrac () const
unsigned rectrackId () const

Private Attributes

std::vector< intdaughterIds_
 id of daughter particles (can be > 2 in hadron showers)
unsigned id_
 position in particle vector
int motherId_
 id of mother particle. -1 if no mother
int pdgCode_
 pdg code
std::vector< unsigned > recHitContrib_
std::vector< double > recHitContribFrac_
unsigned rectrackId_

Friends

std::ostream & operator<< (std::ostream &out, const PFSimParticle &track)


Detailed Description

true particle for particle flow

Additional information w/r to PFTrack:

Definition at line 19 of file PFSimParticle.h.


Constructor & Destructor Documentation

PFSimParticle::PFSimParticle (  ) 

Definition at line 8 of file PFSimParticle.cc.

00008                              :
00009   PFTrack(),
00010   pdgCode_(0), 
00011   id_(0),
00012   motherId_(0)
00013 {}

reco::PFSimParticle::PFSimParticle ( double  charge,
int  pdgCode,
unsigned  id,
int  motherId,
const std::vector< int > &  daughterIds,
unsigned  rectrackId,
std::vector< unsigned >  recHitContrib,
std::vector< double >  recHitContribFrac 
)

PFSimParticle::PFSimParticle ( const PFSimParticle other  ) 

Definition at line 33 of file PFSimParticle.cc.

00033                                                        :
00034   PFTrack(other), 
00035   pdgCode_(other.pdgCode_), 
00036   id_(other.id_), 
00037   motherId_(other.motherId_), 
00038   daughterIds_(other.daughterIds_),
00039   rectrackId_(other.rectrackId_),
00040   recHitContrib_(other.recHitContrib_),
00041   recHitContribFrac_(other.recHitContribFrac_)
00042 {}


Member Function Documentation

const std::vector<int>& reco::PFSimParticle::daughterIds (  )  const [inline]

Returns:
vector of daughter ids

Definition at line 44 of file PFSimParticle.h.

References daughterIds_.

Referenced by PFRootEventManager::countChargedAndPhotons(), PFRootEventManager::fillOutEventWithSimParticles(), PFRootEventManager::isHadronicTau(), PFRootEventManager::mcTruthMatching(), and PFRootEventManagerColin::processHIGH_E_TAUS().

00044 {return daughterIds_;}

unsigned reco::PFSimParticle::id ( void   )  const [inline]

Returns:
id

Definition at line 38 of file PFSimParticle.h.

References id_.

Referenced by reco::operator<<().

00038 { return id_; }

int reco::PFSimParticle::motherId (  )  const [inline]

Returns:
mother id

Definition at line 41 of file PFSimParticle.h.

References motherId_.

Referenced by DisplayManager::loadGSimParticles(), and reco::operator<<().

00041 { return motherId_; }

int reco::PFSimParticle::pdgCode (  )  const [inline]

Returns:
pdg code

Definition at line 35 of file PFSimParticle.h.

References pdgCode_.

Referenced by PFRootEventManager::countChargedAndPhotons(), PFRootEventManager::fillOutEventWithClusters(), PFRootEventManager::fillOutEventWithSimParticles(), PFRootEventManager::isHadronicTau(), DisplayManager::loadGSimParticles(), reco::operator<<(), PFRootEventManagerColin::processHIGH_E_TAUS(), and PFRootEventManager::tauBenchmark().

00035 {return pdgCode_; }

std::vector<unsigned> reco::PFSimParticle::recHitContrib (  )  const [inline]

Definition at line 49 of file PFSimParticle.h.

References recHitContrib_.

Referenced by PFRootEventManager::mcTruthMatching().

00050             {return recHitContrib_;} 

std::vector<double> reco::PFSimParticle::recHitContribFrac (  )  const [inline]

Definition at line 51 of file PFSimParticle.h.

References recHitContribFrac_.

Referenced by PFRootEventManager::mcTruthMatching().

00052             {return recHitContribFrac_;} 

unsigned reco::PFSimParticle::rectrackId (  )  const [inline]

Definition at line 47 of file PFSimParticle.h.

References rectrackId_.

Referenced by PFRootEventManager::mcTruthMatching().

00048             {return rectrackId_;} 


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const PFSimParticle track 
) [friend]


Member Data Documentation

std::vector<int> reco::PFSimParticle::daughterIds_ [private]

id of daughter particles (can be > 2 in hadron showers)

Definition at line 69 of file PFSimParticle.h.

Referenced by daughterIds(), and reco::operator<<().

unsigned reco::PFSimParticle::id_ [private]

position in particle vector

Definition at line 63 of file PFSimParticle.h.

Referenced by id().

int reco::PFSimParticle::motherId_ [private]

id of mother particle. -1 if no mother

Definition at line 66 of file PFSimParticle.h.

Referenced by motherId().

int reco::PFSimParticle::pdgCode_ [private]

pdg code

Definition at line 60 of file PFSimParticle.h.

Referenced by pdgCode().

std::vector<unsigned> reco::PFSimParticle::recHitContrib_ [private]

Definition at line 72 of file PFSimParticle.h.

Referenced by recHitContrib().

std::vector<double> reco::PFSimParticle::recHitContribFrac_ [private]

Definition at line 73 of file PFSimParticle.h.

Referenced by recHitContribFrac().

unsigned reco::PFSimParticle::rectrackId_ [private]

Definition at line 71 of file PFSimParticle.h.

Referenced by rectrackId().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:51:21 2009 for CMSSW by  doxygen 1.5.4