CMS 3D CMS Logo

reco::PFRecTrack Class Reference

reconstructed track used as an input to particle flow More...

#include <DataFormats/ParticleFlowReco/interface/PFRecTrack.h>

Inheritance diagram for reco::PFRecTrack:

reco::PFTrack reco::GsfPFRecTrack reco::PFBrem

List of all members.

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
 
Returns:
type of algorithm

 PFRecTrack (double charge, AlgoType_t algoType)
 PFRecTrack (double charge, AlgoType_t algoType, int trackId, const reco::TrackRef &trackref)
 PFRecTrack ()
int trackId () const
 
Returns:
id

const reco::TrackReftrackRef () const
 
Returns:
reference to corresponding track

 ~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)


Detailed Description

reconstructed track used as an input to particle flow

Additional information w/r to PFTrack:

Author:
Renaud Bruneliere, Michele Pioppi
Date:
July 2006

Definition at line 22 of file PFRecTrack.h.


Member Enumeration Documentation

enum reco::PFRecTrack::AlgoType_t

different types of fitting algorithms

Enumerator:
Unknown 
KF 
GSF 
KF_ELCAND 

Definition at line 27 of file PFRecTrack.h.

00027                     {
00028       Unknown = 0,
00029       KF = 1, // Kalman filter 
00030       GSF = 2,
00031       KF_ELCAND=3// Gaussian sum filter
00032     };


Constructor & Destructor Documentation

PFRecTrack::PFRecTrack (  ) 

Definition at line 9 of file PFRecTrack.cc.

00009                        :
00010   PFTrack(),
00011   algoType_(PFRecTrack::Unknown)
00012 {}

reco::PFRecTrack::~PFRecTrack (  )  [inline]

Definition at line 35 of file PFRecTrack.h.

00035 {};  

PFRecTrack::PFRecTrack ( double  charge,
AlgoType_t  algoType,
int  trackId,
const reco::TrackRef trackref 
)

Definition at line 16 of file PFRecTrack.cc.

00019                                                       : 
00020   PFTrack(charge), 
00021   algoType_(algoType),
00022   trackId_(trackId), 
00023   trackRef_(trackRef)
00024 {}

PFRecTrack::PFRecTrack ( double  charge,
AlgoType_t  algoType 
)

Definition at line 28 of file PFRecTrack.cc.

00028                                                          : 
00029   PFTrack(charge), 
00030   algoType_(algoType),
00031   trackId_(-1)
00032 {}


Member Function Documentation

unsigned int reco::PFRecTrack::algoType (  )  const [inline]

Returns:
type of algorithm

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]

Returns:
id

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]

Returns:
reference to corresponding track

Definition at line 54 of file PFRecTrack.h.

References trackRef_.

Referenced by PFSimParticleProducer::getSimIDs().

00054 {return trackRef_;}


Friends And Related Function Documentation

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 }


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:51:21 2009 for CMSSW by  doxygen 1.5.4