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... | |
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(), ConvBremPFTrackFinder::runConvBremFinder(), and setPoint().
|
inline |
Definition at line 87 of file PFTrack.h.
References charge_.
Referenced by extrapolatedPoint(), reco::GsfPFRecTrack::GsfPFRecTrack(), reco::operator<<(), reco::PFSimParticle::PFSimParticle(), and reco::PFRecTrack::~PFRecTrack().
|
inline |
const reco::PFTrajectoryPoint & PFTrack::extrapolatedPoint | ( | unsigned | layerid | ) | const |
Definition at line 76 of file PFTrack.cc.
References charge(), reco::PFTrajectoryPoint::ClosestApproach, Exception, mps_fire::i, indexInnermost_, reco::PFTrajectoryPoint::momentum(), reco::PFTrajectoryPoint::NLayers, nTrajectoryMeasurements(), reco::operator<<(), MillePedeFileConverter_cfg::out, reco::PFTrajectoryPoint::position(), HiIsolationCommonParameters_cff::track, trajectoryPoint(), trajectoryPoints(), and trajectoryPoints_.
Referenced by PFElecTkProducer::isSharingEcalEnergyWithEgSC(), ConvBremPFTrackFinder::runConvBremFinder(), HGCalAndBREMLinker::testLink(), GSFAndHCALLinker::testLink(), HCALAndBREMLinker::testLink(), GSFAndECALLinker::testLink(), ECALAndBREMLinker::testLink(), GSFAndHGCalLinker::testLink(), LinkByRecHit::testTrackAndClusterByRecHit(), and trajectoryPoint().
|
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(), and reco::operator<<().
|
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 calculatePositionREP(), diffTreeTool::index, and trajectoryPoints_.
|
inline |
Definition at line 102 of file PFTrack.h.
References extrapolatedPoint(), diffTreeTool::index, and trajectoryPoints_.
Referenced by CalibratableTest::analyze(), extrapolatedPoint(), CalibratableTest::findCandidatesInDeltaR(), reco::operator<<(), and reco::PFSimParticle::PFSimParticle().
|
inline |
Definition at line 98 of file PFTrack.h.
References trajectoryPoints_.
Referenced by extrapolatedPoint(), and reco::operator<<().
|
protected |
|
protected |
|
protected |
index innermost tracker measurement
Definition at line 136 of file PFTrack.h.
Referenced by addPoint(), extrapolatedPoint(), innermostMeasurement(), and nTrajectoryMeasurements().
|
protected |
index outermost tracker measurement
Definition at line 139 of file PFTrack.h.
Referenced by addPoint(), nTrajectoryMeasurements(), and outermostMeasurement().
|
staticprotected |
|
protected |
vector of trajectory points
Definition at line 133 of file PFTrack.h.
Referenced by addPoint(), extrapolatedPoint(), innermostMeasurement(), nTrajectoryPoints(), outermostMeasurement(), PFTrack(), setPoint(), trajectoryPoint(), and trajectoryPoints().