CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | 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

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)
 
void calculatePositionREP ()
 
double charge () const
 
int color () 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 setColor (int color)
 
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_
 

Friends

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

Additional Inherited Members

- Protected Attributes inherited from reco::PFTrack
double charge_
 charge More...
 
int color_
 color (transient) 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 8 of file PFSimParticle.cc.

8  :
9  PFTrack(),
10  pdgCode_(0),
11  id_(0),
12  motherId_(0)
13 {}
int pdgCode_
pdg code
Definition: PFSimParticle.h:60
unsigned id_
position in particle vector
Definition: PFSimParticle.h:63
int motherId_
id of mother particle. -1 if no mother
Definition: PFSimParticle.h:66
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 16 of file PFSimParticle.cc.

21  :
22  PFTrack(charge),
23  pdgCode_(pdgCode),
24  id_(id),
30 {}
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:69
int pdgCode_
pdg code
Definition: PFSimParticle.h:60
unsigned rectrackId() const
Definition: PFSimParticle.h:47
int pdgCode() const
Definition: PFSimParticle.h:35
unsigned id_
position in particle vector
Definition: PFSimParticle.h:63
int motherId_
id of mother particle. -1 if no mother
Definition: PFSimParticle.h:66
std::vector< double > recHitContribFrac() const
Definition: PFSimParticle.h:51
std::vector< unsigned > recHitContrib_
Definition: PFSimParticle.h:72
int motherId() const
Definition: PFSimParticle.h:41
std::vector< double > recHitContribFrac_
Definition: PFSimParticle.h:73
std::vector< unsigned > recHitContrib() const
Definition: PFSimParticle.h:49
double charge() const
Definition: PFTrack.h:87
PFSimParticle::PFSimParticle ( const PFSimParticle other)

Definition at line 33 of file PFSimParticle.cc.

33  :
34  PFTrack(other),
35  pdgCode_(other.pdgCode_),
36  id_(other.id_),
37  motherId_(other.motherId_),
39  rectrackId_(other.rectrackId_),
42 {}
std::vector< int > daughterIds_
id of daughter particles (can be &gt; 2 in hadron showers)
Definition: PFSimParticle.h:69
int pdgCode_
pdg code
Definition: PFSimParticle.h:60
unsigned id_
position in particle vector
Definition: PFSimParticle.h:63
int motherId_
id of mother particle. -1 if no mother
Definition: PFSimParticle.h:66
std::vector< unsigned > recHitContrib_
Definition: PFSimParticle.h:72
std::vector< double > recHitContribFrac_
Definition: PFSimParticle.h:73

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 CalibratableTest::findPrimarySimParticles().

44 {return daughterIds_;}
std::vector< int > daughterIds_
id of daughter particles (can be &gt; 2 in hadron showers)
Definition: PFSimParticle.h:69
unsigned reco::PFSimParticle::id ( void  ) 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:63
int reco::PFSimParticle::motherId ( ) const
inline
Returns
mother id

Definition at line 41 of file PFSimParticle.h.

References motherId_.

Referenced by CalibratableTest::findPrimarySimParticles().

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

Definition at line 35 of file PFSimParticle.h.

References pdgCode_.

Referenced by CalibratableTest::findPrimarySimParticles().

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

Definition at line 49 of file PFSimParticle.h.

References recHitContrib_.

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

Definition at line 51 of file PFSimParticle.h.

References recHitContribFrac_.

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

Definition at line 47 of file PFSimParticle.h.

References rectrackId_.

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

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