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 (const PFSimParticle &other)
 
 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)
 
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 (const PFTrack &other)
 
 PFTrack (double charge)
 
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) {}

◆ 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 
)

◆ 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_) {}

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.

44 { return daughterIds_; }

References daughterIds_.

◆ id()

unsigned reco::PFSimParticle::id ( ) const
inline
Returns
id

Definition at line 38 of file PFSimParticle.h.

38 { return id_; }

References id_.

◆ motherId()

int reco::PFSimParticle::motherId ( ) const
inline
Returns
mother id

Definition at line 41 of file PFSimParticle.h.

41 { return motherId_; }

References motherId_.

◆ pdgCode()

int reco::PFSimParticle::pdgCode ( ) const
inline
Returns
pdg code

Definition at line 35 of file PFSimParticle.h.

35 { return pdgCode_; }

References pdgCode_.

◆ recHitContrib()

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

Definition at line 48 of file PFSimParticle.h.

48 { return recHitContrib_; }

References recHitContrib_.

◆ recHitContribFrac()

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

Definition at line 49 of file PFSimParticle.h.

49 { return recHitContribFrac_; }

References recHitContribFrac_.

◆ rectrackId()

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

Definition at line 47 of file PFSimParticle.h.

47 { return rectrackId_; }

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

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