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

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::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::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:57
unsigned id_
position in particle vector
Definition: PFSimParticle.h:60
int motherId_
id of mother particle. -1 if no mother
Definition: PFSimParticle.h:63
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 > 2 in hadron showers)
Definition: PFSimParticle.h:66
int pdgCode_
pdg code
Definition: PFSimParticle.h:57
unsigned rectrackId() const
Definition: PFSimParticle.h:47
int pdgCode() const
Definition: PFSimParticle.h:35
unsigned id_
position in particle vector
Definition: PFSimParticle.h:60
int motherId_
id of mother particle. -1 if no mother
Definition: PFSimParticle.h:63
std::vector< double > recHitContribFrac() const
Definition: PFSimParticle.h:51
std::vector< unsigned > recHitContrib_
Definition: PFSimParticle.h:69
int motherId() const
Definition: PFSimParticle.h:41
std::vector< double > recHitContribFrac_
Definition: PFSimParticle.h:70
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.

References reco::PFTrack::charge(), reco::PFTrajectoryPoint::ClosestApproach, gather_cfg::cout, daughterIds(), alignBH_cfg::fixed, i, id(), reco::PFTrajectoryPoint::momentum(), motherId(), dataset::name, reco::operator<<(), MillePedeFileConverter_cfg::out, pdgCode(), AlCaHLTBitMon_QueryRunRegistry::string, and reco::PFTrack::trajectoryPoint().

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 > 2 in hadron showers)
Definition: PFSimParticle.h:66
int pdgCode_
pdg code
Definition: PFSimParticle.h:57
unsigned id_
position in particle vector
Definition: PFSimParticle.h:60
int motherId_
id of mother particle. -1 if no mother
Definition: PFSimParticle.h:63
std::vector< unsigned > recHitContrib_
Definition: PFSimParticle.h:69
std::vector< double > recHitContribFrac_
Definition: PFSimParticle.h:70

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(), and PFSimParticle().

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

Definition at line 38 of file PFSimParticle.h.

References id_.

Referenced by PFSimParticle().

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

Definition at line 41 of file PFSimParticle.h.

References motherId_.

Referenced by CalibratableTest::findPrimarySimParticles(), and PFSimParticle().

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

Definition at line 35 of file PFSimParticle.h.

References pdgCode_.

Referenced by CalibratableTest::findPrimarySimParticles(), and PFSimParticle().

35 {return pdgCode_; }
int pdgCode_
pdg code
Definition: PFSimParticle.h:57
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:69
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:70
unsigned reco::PFSimParticle::rectrackId ( ) const
inline

Definition at line 47 of file PFSimParticle.h.

References rectrackId_.

48  {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 66 of file PFSimParticle.h.

Referenced by daughterIds().

unsigned reco::PFSimParticle::id_
private

position in particle vector

Definition at line 60 of file PFSimParticle.h.

Referenced by id().

int reco::PFSimParticle::motherId_
private

id of mother particle. -1 if no mother

Definition at line 63 of file PFSimParticle.h.

Referenced by motherId().

int reco::PFSimParticle::pdgCode_
private

pdg code

Definition at line 57 of file PFSimParticle.h.

Referenced by pdgCode().

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

Definition at line 69 of file PFSimParticle.h.

Referenced by recHitContrib().

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

Definition at line 70 of file PFSimParticle.h.

Referenced by recHitContribFrac().

unsigned reco::PFSimParticle::rectrackId_
private

Definition at line 68 of file PFSimParticle.h.

Referenced by rectrackId().