CMS 3D CMS Logo

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::PFTrajectoryPointtrajectoryPoints_
 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() [1/3]

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() [2/3]

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),
int pdgCode() const
Definition: PFSimParticle.h:35
std::vector< int > daughterIds_
id of daughter particles (can be > 2 in hadron showers)
Definition: PFSimParticle.h:62
int pdgCode_
pdg code
Definition: PFSimParticle.h:53
unsigned rectrackId() const
Definition: PFSimParticle.h:47
double charge() const
Definition: PFTrack.h:81
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() const
Definition: PFSimParticle.h:48
std::vector< unsigned > recHitContrib_
Definition: PFSimParticle.h:65
int motherId() const
Definition: PFSimParticle.h:41
const std::vector< int > & daughterIds() const
Definition: PFSimParticle.h:44
std::vector< double > recHitContribFrac_
Definition: PFSimParticle.h:66
std::vector< double > recHitContribFrac() const
Definition: PFSimParticle.h:49

◆ PFSimParticle() [3/3]

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_),
31  daughterIds_(other.daughterIds_),
32  rectrackId_(other.rectrackId_),
33  recHitContrib_(other.recHitContrib_),
34  recHitContribFrac_(other.recHitContribFrac_) {}
std::vector< int > daughterIds_
id of daughter particles (can be > 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

◆ daughterIds()

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 > 2 in hadron showers)
Definition: PFSimParticle.h:62

◆ id()

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

◆ motherId()

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

◆ pdgCode()

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

◆ recHitContrib()

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

◆ recHitContribFrac()

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

◆ rectrackId()

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

Definition at line 47 of file PFSimParticle.h.

References rectrackId_.

47 { return rectrackId_; }

Member Data Documentation

◆ daughterIds_

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

◆ id_

unsigned reco::PFSimParticle::id_
private

position in particle vector

Definition at line 56 of file PFSimParticle.h.

Referenced by id().

◆ motherId_

int reco::PFSimParticle::motherId_
private

id of mother particle. -1 if no mother

Definition at line 59 of file PFSimParticle.h.

Referenced by motherId().

◆ pdgCode_

int reco::PFSimParticle::pdgCode_
private

pdg code

Definition at line 53 of file PFSimParticle.h.

Referenced by pdgCode().

◆ recHitContrib_

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

Definition at line 65 of file PFSimParticle.h.

Referenced by recHitContrib().

◆ recHitContribFrac_

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

Definition at line 66 of file PFSimParticle.h.

Referenced by recHitContribFrac().

◆ rectrackId_

unsigned reco::PFSimParticle::rectrackId_
private

Definition at line 64 of file PFSimParticle.h.

Referenced by rectrackId().