Base class for particle flow input reconstructed tracks and simulated particles. More...
#include <PFTrack.h>
Public Member Functions | |
void | addPoint (const reco::PFTrajectoryPoint &trajPt) |
double | charge () const |
const reco::PFTrajectoryPoint & | extrapolatedPoint (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::PFTrajectoryPoint & | trajectoryPoint (unsigned index) const |
const std::vector< reco::PFTrajectoryPoint > & | trajectoryPoints () const |
Protected Attributes | |
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 | |
static const unsigned int | nMaxTrackingLayers_ = 17 |
maximal number of tracking layers More... | |
Base class for particle flow input reconstructed tracks and simulated particles.
A PFTrack contains a vector of PFTrajectoryPoint objects. These points are stored in a vector to benefit from the random access. One must take care of storing the points in the right order, and it might even be necessary to insert dummy points.
For a PFRecTrack, the ordering of the points is the following:
For a PFSimParticle, the ordering of the points is the following.
PFRecTracks and PFSimParticles are created in the PFTrackProducer module.
PFTrack::PFTrack | ( | ) |
Definition at line 12 of file PFTrack.cc.
References reco::PFTrajectoryPoint::NLayers, nMaxTrackingLayers_, and trajectoryPoints_.
PFTrack::PFTrack | ( | double | charge | ) |
Definition at line 17 of file PFTrack.cc.
References reco::PFTrajectoryPoint::NLayers, nMaxTrackingLayers_, and trajectoryPoints_.
PFTrack::PFTrack | ( | const PFTrack & | other | ) |
Definition at line 22 of file PFTrack.cc.
void PFTrack::addPoint | ( | const reco::PFTrajectoryPoint & | trajPt | ) |
add a trajectory measurement
Definition at line 28 of file PFTrack.cc.
References reco::PFTrajectoryPoint::BeamPipeOrEndVertex, indexInnermost_, indexOutermost_, reco::PFTrajectoryPoint::isTrackerLayer(), and trajectoryPoints_.
Referenced by PFTrackTransformer::addPoints(), and PFTrackTransformer::addPointsAndBrems().
|
inline |
const reco::PFTrajectoryPoint & PFTrack::extrapolatedPoint | ( | unsigned | layerid | ) | const |
Definition at line 46 of file PFTrack.cc.
References Exception, indexInnermost_, reco::PFTrajectoryPoint::NLayers, nTrajectoryMeasurements(), and trajectoryPoints_.
Referenced by PFElecTkProducer::isSharingEcalEnergyWithEgSC(), and ConvBremPFTrackFinder::runConvBremFinder().
|
inline |
iterator on innermost tracker measurement
Definition at line 102 of file PFTrack.h.
References indexInnermost_, and trajectoryPoints_.
|
inline |
Definition at line 87 of file PFTrack.h.
References indexInnermost_, and indexOutermost_.
Referenced by extrapolatedPoint().
|
inline |
Definition at line 84 of file PFTrack.h.
References trajectoryPoints_.
|
inline |
iterator on outermost tracker measurement
Definition at line 107 of file PFTrack.h.
References indexOutermost_, and trajectoryPoints_.
|
inline |
set a trajectory point
Definition at line 76 of file PFTrack.h.
References trajectoryPoints_.
|
inline |
Definition at line 95 of file PFTrack.h.
References trajectoryPoints_.
|
inline |
Definition at line 92 of file PFTrack.h.
References trajectoryPoints_.
|
protected |
|
protected |
index innermost tracker measurement
Definition at line 122 of file PFTrack.h.
Referenced by addPoint(), extrapolatedPoint(), innermostMeasurement(), and nTrajectoryMeasurements().
|
protected |
index outermost tracker measurement
Definition at line 125 of file PFTrack.h.
Referenced by addPoint(), nTrajectoryMeasurements(), and outermostMeasurement().
|
staticprotected |
|
protected |
vector of trajectory points
Definition at line 119 of file PFTrack.h.
Referenced by addPoint(), extrapolatedPoint(), innermostMeasurement(), nTrajectoryPoints(), outermostMeasurement(), PFTrack(), setPoint(), trajectoryPoint(), and trajectoryPoints().