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 (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::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... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const PFTrack &track) |
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 22 of file PFTrack.cc.
References reco::PFTrajectoryPoint::NLayers, nMaxTrackingLayers_, and trajectoryPoints_.
PFTrack::PFTrack | ( | const PFTrack & | other | ) |
Definition at line 33 of file PFTrack.cc.
void PFTrack::addPoint | ( | const reco::PFTrajectoryPoint & | trajPt | ) |
add a trajectory measurement
Definition at line 42 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 68 of file PFTrack.cc.
Referenced by PFTrackTransformer::addPointsAndBrems(), reco::GsfPFRecTrack::calculateBremPositionREP(), and ConvBremPFTrackFinder::runConvBremFinder().
|
inline |
|
inline |
Definition at line 122 of file PFTrack.h.
References color_.
Referenced by cuy.plotElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), and setColor().
const reco::PFTrajectoryPoint & PFTrack::extrapolatedPoint | ( | unsigned | layerid | ) | const |
Definition at line 76 of file PFTrack.cc.
References Exception, indexInnermost_, reco::PFTrajectoryPoint::NLayers, nTrajectoryMeasurements(), and trajectoryPoints_.
Referenced by PFElecTkProducer::isSharingEcalEnergyWithEgSC(), ConvBremPFTrackFinder::runConvBremFinder(), GSFAndECALLinker::testLink(), HCALAndBREMLinker::testLink(), GSFAndHCALLinker::testLink(), ECALAndBREMLinker::testLink(), and LinkByRecHit::testTrackAndClusterByRecHit().
|
inline |
iterator on innermost tracker measurement
Definition at line 111 of file PFTrack.h.
References indexInnermost_, and trajectoryPoints_.
|
inline |
Definition at line 94 of file PFTrack.h.
References indexInnermost_, and indexOutermost_.
Referenced by extrapolatedPoint().
|
inline |
Definition at line 90 of file PFTrack.h.
References trajectoryPoints_.
Referenced by CalibratableTest::analyze().
|
inline |
iterator on outermost tracker measurement
Definition at line 116 of file PFTrack.h.
References indexOutermost_, and trajectoryPoints_.
|
inline |
|
inline |
set a trajectory point
Definition at line 78 of file PFTrack.h.
References cmsHarvester::index, and trajectoryPoints_.
|
inline |
Definition at line 102 of file PFTrack.h.
References cmsHarvester::index, and trajectoryPoints_.
Referenced by CalibratableTest::analyze(), and CalibratableTest::findCandidatesInDeltaR().
|
inline |
Definition at line 98 of file PFTrack.h.
References trajectoryPoints_.
|
friend |
|
protected |
|
protected |
|
protected |
index innermost tracker measurement
Definition at line 139 of file PFTrack.h.
Referenced by addPoint(), extrapolatedPoint(), innermostMeasurement(), and nTrajectoryMeasurements().
|
protected |
index outermost tracker measurement
Definition at line 142 of file PFTrack.h.
Referenced by addPoint(), nTrajectoryMeasurements(), and outermostMeasurement().
|
staticprotected |
|
protected |
vector of trajectory points
Definition at line 136 of file PFTrack.h.
Referenced by addPoint(), extrapolatedPoint(), innermostMeasurement(), nTrajectoryPoints(), outermostMeasurement(), PFTrack(), setPoint(), trajectoryPoint(), and trajectoryPoints().