Base class for particle flow input reconstructed tracks and simulated particles. More...
#include <PFTrack.h>
Public Member Functions | |
void | addPoint (const reco::PFTrajectoryPoint &trajPt) |
void | calculatePositionREP () |
double | charge () const |
int | color () 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 (const PFTrack &other) | |
PFTrack (double charge) | |
void | setColor (int color) |
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... | |
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 | |
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 11 of file PFTrack.cc.
References reco::PFTrajectoryPoint::NLayers, nMaxTrackingLayers_, and trajectoryPoints_.
PFTrack::PFTrack | ( | double | charge | ) |
Definition at line 16 of file PFTrack.cc.
References reco::PFTrajectoryPoint::NLayers, nMaxTrackingLayers_, and trajectoryPoints_.
PFTrack::PFTrack | ( | const PFTrack & | other | ) |
Definition at line 21 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().
void PFTrack::calculatePositionREP | ( | ) |
calculate posrep_ once and for all for each point
Definition at line 52 of file PFTrack.cc.
Referenced by PFTrackTransformer::addPointsAndBrems(), reco::GsfPFRecTrack::calculateBremPositionREP(), and ConvBremPFTrackFinder::runConvBremFinder().
|
inline |
|
inline |
const reco::PFTrajectoryPoint & PFTrack::extrapolatedPoint | ( | unsigned | layerid | ) | const |
Definition at line 58 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 106 of file PFTrack.h.
References indexInnermost_, and trajectoryPoints_.
|
inline |
Definition at line 91 of file PFTrack.h.
References indexInnermost_, and indexOutermost_.
Referenced by extrapolatedPoint().
|
inline |
Definition at line 88 of file PFTrack.h.
References trajectoryPoints_.
|
inline |
iterator on outermost tracker measurement
Definition at line 111 of file PFTrack.h.
References indexOutermost_, and trajectoryPoints_.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 96 of file PFTrack.h.
References trajectoryPoints_.
|
protected |
|
protected |
|
protected |
index innermost tracker measurement
Definition at line 130 of file PFTrack.h.
Referenced by addPoint(), extrapolatedPoint(), innermostMeasurement(), and nTrajectoryMeasurements().
|
protected |
index outermost tracker measurement
Definition at line 133 of file PFTrack.h.
Referenced by addPoint(), nTrajectoryMeasurements(), and outermostMeasurement().
|
staticprotected |
|
protected |
vector of trajectory points
Definition at line 127 of file PFTrack.h.
Referenced by addPoint(), extrapolatedPoint(), innermostMeasurement(), nTrajectoryPoints(), outermostMeasurement(), PFTrack(), setPoint(), trajectoryPoint(), and trajectoryPoints().