#include <DataFormats/ParticleFlowReco/interface/PFRecTrack.h>
Public Types | |
enum | AlgoType_t { Unknown = 0, KF = 1, GSF = 2, KF_ELCAND = 3 } |
different types of fitting algorithms More... | |
Public Member Functions | |
unsigned int | algoType () const |
| |
PFRecTrack (double charge, AlgoType_t algoType) | |
PFRecTrack (double charge, AlgoType_t algoType, int trackId, const reco::TrackRef &trackref) | |
PFRecTrack () | |
int | trackId () const |
| |
const reco::TrackRef & | trackRef () const |
| |
~PFRecTrack () | |
Private Attributes | |
AlgoType_t | algoType_ |
type of fitting algorithm used to reconstruct the track | |
int | trackId_ |
track id | |
reco::TrackRef | trackRef_ |
reference to corresponding track | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const PFRecTrack &track) |
Additional information w/r to PFTrack:
Definition at line 22 of file PFRecTrack.h.
PFRecTrack::PFRecTrack | ( | ) |
Definition at line 9 of file PFRecTrack.cc.
00009 : 00010 PFTrack(), 00011 algoType_(PFRecTrack::Unknown) 00012 {}
reco::PFRecTrack::~PFRecTrack | ( | ) | [inline] |
PFRecTrack::PFRecTrack | ( | double | charge, | |
AlgoType_t | algoType, | |||
int | trackId, | |||
const reco::TrackRef & | trackref | |||
) |
PFRecTrack::PFRecTrack | ( | double | charge, | |
AlgoType_t | algoType | |||
) |
unsigned int reco::PFRecTrack::algoType | ( | ) | const [inline] |
Definition at line 47 of file PFRecTrack.h.
References algoType_.
Referenced by PFTrackTransformer::addPoints(), PFTrackTransformer::addPointsAndBrems(), reco::operator<<(), and PFBlockAlgo::testTrackAndECAL().
00047 { return algoType_; }
int reco::PFRecTrack::trackId | ( | ) | const [inline] |
Reimplemented in reco::GsfPFRecTrack.
Definition at line 50 of file PFRecTrack.h.
References trackId_.
00050 {return trackId_;}
const reco::TrackRef& reco::PFRecTrack::trackRef | ( | ) | const [inline] |
Definition at line 54 of file PFRecTrack.h.
References trackRef_.
Referenced by PFSimParticleProducer::getSimIDs().
00054 {return trackRef_;}
std::ostream& operator<< | ( | std::ostream & | out, | |
const PFRecTrack & | track | |||
) | [friend] |
Definition at line 35 of file PFRecTrack.cc.
00036 { 00037 if (!out) return out; 00038 00039 const reco::PFTrajectoryPoint& closestApproach = 00040 track.trajectoryPoint(reco::PFTrajectoryPoint::ClosestApproach); 00041 00042 out << "Reco track charge = " << track.charge() 00043 << ", type = " << track.algoType() 00044 << ", Pt = " << closestApproach.momentum().Pt() 00045 << ", P = " << closestApproach.momentum().P() << std::endl 00046 << "\tR0 = " << closestApproach.position().Rho() 00047 <<" Z0 = " << closestApproach.position().Z() << std::endl 00048 << "\tnumber of tracker measurements = " 00049 << track.nTrajectoryMeasurements() << std::endl 00050 <<"\tnumber of points total = " 00051 << track.trajectoryPoints_.size()<< std::endl; 00052 00053 for(unsigned i=0; i<track.trajectoryPoints_.size(); i++) 00054 out<<track.trajectoryPoints_[i]<<std::endl; 00055 00056 00057 return out; 00058 }
AlgoType_t reco::PFRecTrack::algoType_ [private] |
type of fitting algorithm used to reconstruct the track
Definition at line 64 of file PFRecTrack.h.
Referenced by algoType().
int reco::PFRecTrack::trackId_ [private] |
track id
Reimplemented in reco::GsfPFRecTrack.
Definition at line 67 of file PFRecTrack.h.
Referenced by trackId().
reco::TrackRef reco::PFRecTrack::trackRef_ [private] |
reference to corresponding track
Definition at line 70 of file PFRecTrack.h.
Referenced by trackRef().