CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

reco::PFSimParticle Class Reference

true particle for particle flow More...

#include <PFSimParticle.h>

Inheritance diagram for reco::PFSimParticle:
reco::PFTrack

List of all members.

Public Member Functions

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

Private Attributes

std::vector< int > daughterIds_
 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.

                             :
  PFTrack(),
  pdgCode_(0), 
  id_(0),
  motherId_(0)
{}
reco::PFSimParticle::PFSimParticle ( double  charge,
int  pdgCode,
unsigned  id,
int  motherId,
const std::vector< int > &  daughterIds,
unsigned  rectrackId,
const std::vector< unsigned > &  recHitContrib,
const std::vector< double > &  recHitContribFrac 
)
PFSimParticle::PFSimParticle ( const PFSimParticle other)

Member Function Documentation

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

Definition at line 38 of file PFSimParticle.h.

References id_.

{ return id_; }
int reco::PFSimParticle::motherId ( ) const [inline]
Returns:
mother id

Definition at line 41 of file PFSimParticle.h.

References motherId_.

Referenced by CalibratableTest::findPrimarySimParticles(), and DisplayManager::loadGSimParticles().

{ return motherId_; }
int reco::PFSimParticle::pdgCode ( ) const [inline]
std::vector<unsigned> reco::PFSimParticle::recHitContrib ( ) const [inline]

Definition at line 49 of file PFSimParticle.h.

References recHitContrib_.

Referenced by PFRootEventManager::mcTruthMatching().

            {return recHitContrib_;} 
std::vector<double> reco::PFSimParticle::recHitContribFrac ( ) const [inline]

Definition at line 51 of file PFSimParticle.h.

References recHitContribFrac_.

Referenced by PFRootEventManager::mcTruthMatching().

            {return recHitContribFrac_;} 
unsigned reco::PFSimParticle::rectrackId ( ) const [inline]

Definition at line 47 of file PFSimParticle.h.

References rectrackId_.

Referenced by PFRootEventManager::mcTruthMatching().

            {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().

unsigned reco::PFSimParticle::id_ [private]

position in particle vector

Definition at line 63 of file PFSimParticle.h.

Referenced by id().

id of mother particle. -1 if no mother

Definition at line 66 of file PFSimParticle.h.

Referenced by motherId().

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().

Definition at line 71 of file PFSimParticle.h.

Referenced by rectrackId().