CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
reco::PFSimParticle Class Reference

true particle for particle flow More...

#include <PFSimParticle.h>

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

Public Member Functions

const std::vector< int > & daughterIds () const
 
unsigned id () const
 
int motherId () const
 
int pdgCode () const
 
 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 (const PFSimParticle &other)
 
std::vector< unsigned > recHitContrib () const
 
std::vector< double > recHitContribFrac () const
 
unsigned rectrackId () const
 
- Public Member Functions inherited from reco::PFTrack
void addPoint (const reco::PFTrajectoryPoint &trajPt)
 
double charge () const
 
const reco::PFTrajectoryPointextrapolatedPoint (unsigned layerid) const
 
std::vector
< reco::PFTrajectoryPoint >
::const_iterator 
innermostMeasurement () const
 iterator on innermost tracker measurement More...
 
unsigned int nTrajectoryMeasurements () const
 
unsigned int nTrajectoryPoints () const
 
std::vector
< reco::PFTrajectoryPoint >
::const_iterator 
outermostMeasurement () const
 iterator on outermost tracker measurement More...
 
 PFTrack ()
 
 PFTrack (double charge)
 
 PFTrack (const PFTrack &other)
 
void setPoint (unsigned int index, const reco::PFTrajectoryPoint &measurement)
 set a trajectory point More...
 
const reco::PFTrajectoryPointtrajectoryPoint (unsigned index) const
 
const std::vector
< reco::PFTrajectoryPoint > & 
trajectoryPoints () const
 

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from reco::PFTrack
double charge_
 charge More...
 
unsigned int indexInnermost_
 index innermost tracker measurement More...
 
unsigned int indexOutermost_
 index outermost tracker measurement More...
 
std::vector
< reco::PFTrajectoryPoint
trajectoryPoints_
 vector of trajectory points More...
 
- Static Protected Attributes inherited from reco::PFTrack
static const unsigned int nMaxTrackingLayers_ = 17
 maximal number of tracking layers More...
 

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 7 of file PFSimParticle.cc.

7 : PFTrack(), pdgCode_(0), id_(0), motherId_(0) {}
int pdgCode_
pdg code
Definition: PFSimParticle.h:53
unsigned id_
position in particle vector
Definition: PFSimParticle.h:56
int motherId_
id of mother particle. -1 if no mother
Definition: PFSimParticle.h:59
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 
)

Definition at line 9 of file PFSimParticle.cc.

17  : PFTrack(charge),
19  id_(id),
const std::vector< int > & daughterIds() const
Definition: PFSimParticle.h:44
std::vector< int > daughterIds_
id of daughter particles (can be &gt; 2 in hadron showers)
Definition: PFSimParticle.h:62
int pdgCode_
pdg code
Definition: PFSimParticle.h:53
unsigned rectrackId() const
Definition: PFSimParticle.h:47
int pdgCode() const
Definition: PFSimParticle.h:35
unsigned id_
position in particle vector
Definition: PFSimParticle.h:56
int motherId_
id of mother particle. -1 if no mother
Definition: PFSimParticle.h:59
std::vector< double > recHitContribFrac() const
Definition: PFSimParticle.h:49
std::vector< unsigned > recHitContrib_
Definition: PFSimParticle.h:65
int motherId() const
Definition: PFSimParticle.h:41
std::vector< double > recHitContribFrac_
Definition: PFSimParticle.h:66
std::vector< unsigned > recHitContrib() const
Definition: PFSimParticle.h:48
double charge() const
Definition: PFTrack.h:81
PFSimParticle::PFSimParticle ( const PFSimParticle other)

Definition at line 26 of file PFSimParticle.cc.

27  : PFTrack(other),
28  pdgCode_(other.pdgCode_),
29  id_(other.id_),
30  motherId_(other.motherId_),
32  rectrackId_(other.rectrackId_),
std::vector< int > daughterIds_
id of daughter particles (can be &gt; 2 in hadron showers)
Definition: PFSimParticle.h:62
int pdgCode_
pdg code
Definition: PFSimParticle.h:53
unsigned id_
position in particle vector
Definition: PFSimParticle.h:56
int motherId_
id of mother particle. -1 if no mother
Definition: PFSimParticle.h:59
std::vector< unsigned > recHitContrib_
Definition: PFSimParticle.h:65
std::vector< double > recHitContribFrac_
Definition: PFSimParticle.h:66

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_.

44 { return daughterIds_; }
std::vector< int > daughterIds_
id of daughter particles (can be &gt; 2 in hadron showers)
Definition: PFSimParticle.h:62
unsigned reco::PFSimParticle::id ( ) const
inline
Returns
id

Definition at line 38 of file PFSimParticle.h.

References id_.

38 { return id_; }
unsigned id_
position in particle vector
Definition: PFSimParticle.h:56
int reco::PFSimParticle::motherId ( ) const
inline
Returns
mother id

Definition at line 41 of file PFSimParticle.h.

References motherId_.

41 { return motherId_; }
int motherId_
id of mother particle. -1 if no mother
Definition: PFSimParticle.h:59
int reco::PFSimParticle::pdgCode ( ) const
inline
Returns
pdg code

Definition at line 35 of file PFSimParticle.h.

References pdgCode_.

35 { return pdgCode_; }
int pdgCode_
pdg code
Definition: PFSimParticle.h:53
std::vector<unsigned> reco::PFSimParticle::recHitContrib ( ) const
inline

Definition at line 48 of file PFSimParticle.h.

References recHitContrib_.

48 { return recHitContrib_; }
std::vector< unsigned > recHitContrib_
Definition: PFSimParticle.h:65
std::vector<double> reco::PFSimParticle::recHitContribFrac ( ) const
inline

Definition at line 49 of file PFSimParticle.h.

References recHitContribFrac_.

49 { return recHitContribFrac_; }
std::vector< double > recHitContribFrac_
Definition: PFSimParticle.h:66
unsigned reco::PFSimParticle::rectrackId ( ) const
inline

Definition at line 47 of file PFSimParticle.h.

References rectrackId_.

47 { return rectrackId_; }

Member Data Documentation

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

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

Definition at line 62 of file PFSimParticle.h.

Referenced by daughterIds().

unsigned reco::PFSimParticle::id_
private

position in particle vector

Definition at line 56 of file PFSimParticle.h.

Referenced by id().

int reco::PFSimParticle::motherId_
private

id of mother particle. -1 if no mother

Definition at line 59 of file PFSimParticle.h.

Referenced by motherId().

int reco::PFSimParticle::pdgCode_
private

pdg code

Definition at line 53 of file PFSimParticle.h.

Referenced by pdgCode().

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

Definition at line 65 of file PFSimParticle.h.

Referenced by recHitContrib().

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

Definition at line 66 of file PFSimParticle.h.

Referenced by recHitContribFrac().

unsigned reco::PFSimParticle::rectrackId_
private

Definition at line 64 of file PFSimParticle.h.

Referenced by rectrackId().