CMS 3D CMS Logo

reco::TrackExtra Class Reference

Additional information about a reconstructed track. More...

#include <DataFormats/TrackReco/interface/TrackExtra.h>

Inheritance diagram for reco::TrackExtra:

reco::TrackExtraBase

List of all members.

Public Types

enum  { dimension = 5 }
 tracker parameter dimension More...
enum  { covarianceSize = dimension * ( dimension + 1 ) / 2 }
 track error matrix size More...
typedef math::Error< 5 >::type CovarianceMatrix
 5 parameter covariance matrix
typedef unsigned int index
 index type
typedef math::XYZPoint Point
 point in the space
typedef math::XYZVector Vector
 spatial vector

Public Member Functions

CovarianceMatrixfillInner (CovarianceMatrix &v) const
 fill outermost trajectory state curvilinear errors
CovarianceMatrixfillOuter (CovarianceMatrix &v) const
 fill outermost trajectory state curvilinear errors
unsigned int innerDetId () const
 DetId of the detector on which surface the innermost state is located.
const VectorinnerMomentum () const
 momentum vector at innermost hit position
bool innerOk () const
 returns true if the innermost hit is valid
const PointinnerPosition () const
 innermost hit position
CovarianceMatrix innerStateCovariance () const
 innermost trajectory state curvilinear errors
unsigned int outerDetId () const
 DetId of the detector on which surface the outermost state is located.
double outerEta () const
 pseudorapidity the momentum vector at the outermost hit position
const VectorouterMomentum () const
 momentum vector at outermost hit position
bool outerOk () const
 returns true if the outermost hit is valid
double outerP () const
 magnitude of momentum vector at the outermost hit position
double outerPhi () const
 azimuthal angle of the momentum vector at the outermost hit position
const PointouterPosition () const
 outermost hit position
double outerPt () const
 transverse momentum at the outermost hit position
double outerPx () const
 x coordinate of momentum vector at the outermost hit position
double outerPy () const
 y coordinate of momentum vector at the outermost hit position
double outerPz () const
 z coordinate of momentum vector at the outermost hit position
double outerRadius () const
 polar radius of the outermost hit position
CovarianceMatrix outerStateCovariance () const
 outermost trajectory state curvilinear errors
double outerTheta () const
 polar angle of the momentum vector at the outermost hit position
double outerX () const
 x coordinate the outermost hit position
double outerY () const
 y coordinate the outermost hit position
double outerZ () const
 z coordinate the outermost hit position
const TrackResidualsresiduals () const
 get the residuals
PropagationDirection seedDirection () const
edm::RefToBase< TrajectorySeedseedRef () const
 return the edm::reference to the trajectory seed in the original seeds collection.
void setResiduals (const TrackResiduals &r)
 set the residuals
 TrackExtra (const Point &outerPosition, const Vector &outerMomentum, bool ok, const Point &innerPosition, const Vector &innerMomentum, bool iok, const CovarianceMatrix &outerState, unsigned int outerId, const CovarianceMatrix &innerState, unsigned int innerId, PropagationDirection seedDir, edm::RefToBase< TrajectorySeed > seedRef=edm::RefToBase< TrajectorySeed >())
 constructor from outermost/innermost position and momentum and Seed information
 TrackExtra ()
 default constructor

Private Attributes

float innerCovariance_ [covarianceSize]
 innermost trajectory state
unsigned int innerDetId_
Vector innerMomentum_
 momentum vector at innermost hit position
bool innerOk_
 innermost hit validity flag
Point innerPosition_
 innermost hit position
float outerCovariance_ [covarianceSize]
 outermost trajectory state curvilinear errors
unsigned int outerDetId_
Vector outerMomentum_
 momentum vector at outermost hit position
bool outerOk_
 outermost hit validity flag
Point outerPosition_
 outermost hit position
PropagationDirection seedDir_
edm::RefToBase< TrajectorySeedseedRef_
TrackResiduals trackResiduals_
 unbiased track residuals


Detailed Description

Additional information about a reconstructed track.

It is stored in RECO and supplements the basic information stored in the Track class that is stored on AOD only. If you wish to use information in the TrackExtra class, you should access it via the reference supplied in the Track class.

Author:
Luca Lista, INFN
Version:
Id
TrackExtra.h,v 1.27 2008/05/05 17:49:10 jmuelmen Exp

Definition at line 25 of file TrackExtra.h.


Member Typedef Documentation

typedef math::Error<5>::type reco::TrackExtra::CovarianceMatrix

5 parameter covariance matrix

Definition at line 36 of file TrackExtra.h.

typedef unsigned int reco::TrackExtra::index

index type

Definition at line 38 of file TrackExtra.h.

typedef math::XYZPoint reco::TrackExtra::Point

point in the space

Definition at line 32 of file TrackExtra.h.

typedef math::XYZVector reco::TrackExtra::Vector

spatial vector

Definition at line 34 of file TrackExtra.h.


Member Enumeration Documentation

anonymous enum

tracker parameter dimension

Enumerator:
dimension 

Definition at line 28 of file TrackExtra.h.

00028 { dimension = 5 };

anonymous enum

track error matrix size

Enumerator:
covarianceSize 

Definition at line 30 of file TrackExtra.h.

00030 { covarianceSize = dimension * ( dimension + 1 ) / 2 };


Constructor & Destructor Documentation

reco::TrackExtra::TrackExtra (  )  [inline]

default constructor

Definition at line 41 of file TrackExtra.h.

00041                 : outerOk_(false),
00042       outerDetId_(0),
00043       innerOk_(false),
00044       innerDetId_(0),
00045       seedDir_(anyDirection) { }

TrackExtra::TrackExtra ( const Point outerPosition,
const Vector outerMomentum,
bool  ok,
const Point innerPosition,
const Vector innerMomentum,
bool  iok,
const CovarianceMatrix outerState,
unsigned int  outerId,
const CovarianceMatrix innerState,
unsigned int  innerId,
PropagationDirection  seedDir,
edm::RefToBase< TrajectorySeed seedRef = edm::RefToBase<TrajectorySeed>() 
)

constructor from outermost/innermost position and momentum and Seed information

Definition at line 5 of file TrackExtra.cc.

References dimension, i, innerCovariance_, j, and outerCovariance_.

00010                                                               :    
00011   TrackExtraBase(),
00012   outerPosition_( outerPosition ), outerMomentum_( outerMomentum ), outerOk_( ok ), 
00013   outerDetId_( outerId ),
00014   innerPosition_( innerPosition ), innerMomentum_( innerMomentum ), innerOk_( iok ),
00015   innerDetId_( innerId ), seedDir_(seedDir), seedRef_(seedRef) {
00016   index idx = 0;
00017   for( index i = 0; i < dimension; ++ i ) {
00018     for( index j = 0; j <= i; ++ j ) {
00019       outerCovariance_[ idx ] = outerCov( i, j );
00020       innerCovariance_[ idx ] = innerCov( i, j );
00021       ++idx;
00022     }
00023   }
00024 }


Member Function Documentation

TrackExtra::CovarianceMatrix & TrackExtra::fillInner ( CovarianceMatrix v  )  const

fill outermost trajectory state curvilinear errors

Definition at line 38 of file TrackExtra.cc.

References reco::fillCovariance(), and innerCovariance_.

00038                                                                                {
00039   return fillCovariance( v, innerCovariance_ );
00040 }

TrackExtra::CovarianceMatrix & TrackExtra::fillOuter ( CovarianceMatrix v  )  const

fill outermost trajectory state curvilinear errors

Definition at line 34 of file TrackExtra.cc.

References reco::fillCovariance(), and outerCovariance_.

00034                                                                                {
00035   return fillCovariance( v, outerCovariance_ );
00036 }

unsigned int reco::TrackExtra::innerDetId (  )  const [inline]

DetId of the detector on which surface the innermost state is located.

Definition at line 103 of file TrackExtra.h.

References innerDetId_.

00103 { return innerDetId_; }

const Vector& reco::TrackExtra::innerMomentum (  )  const [inline]

momentum vector at innermost hit position

Definition at line 64 of file TrackExtra.h.

References innerMomentum_.

00064 { return innerMomentum_; }

bool reco::TrackExtra::innerOk (  )  const [inline]

returns true if the innermost hit is valid

Definition at line 66 of file TrackExtra.h.

References innerOk_.

00066 { return innerOk_; }

const Point& reco::TrackExtra::innerPosition (  )  const [inline]

innermost hit position

Definition at line 62 of file TrackExtra.h.

References innerPosition_.

00062 { return innerPosition_; }

TrackExtra::CovarianceMatrix TrackExtra::innerStateCovariance (  )  const

innermost trajectory state curvilinear errors

Definition at line 30 of file TrackExtra.cc.

References reco::fillCovariance(), innerCovariance_, and v.

00030                                                                   {
00031   CovarianceMatrix v; fillCovariance( v, innerCovariance_ ); return v;
00032 }

unsigned int reco::TrackExtra::outerDetId (  )  const [inline]

DetId of the detector on which surface the outermost state is located.

Definition at line 101 of file TrackExtra.h.

References outerDetId_.

00101 { return outerDetId_; }

double reco::TrackExtra::outerEta (  )  const [inline]

pseudorapidity the momentum vector at the outermost hit position

Definition at line 86 of file TrackExtra.h.

References outerMomentum().

00086 { return outerMomentum().Eta(); }

const Vector& reco::TrackExtra::outerMomentum (  )  const [inline]

momentum vector at outermost hit position

Definition at line 58 of file TrackExtra.h.

References outerMomentum_.

Referenced by outerEta(), outerP(), outerPhi(), outerPt(), and outerTheta().

00058 { return outerMomentum_; }

bool reco::TrackExtra::outerOk (  )  const [inline]

returns true if the outermost hit is valid

Definition at line 60 of file TrackExtra.h.

References outerOk_.

00060 { return outerOk_; }

double reco::TrackExtra::outerP (  )  const [inline]

magnitude of momentum vector at the outermost hit position

Definition at line 80 of file TrackExtra.h.

References outerMomentum().

00080 { return outerMomentum().R(); }

double reco::TrackExtra::outerPhi (  )  const [inline]

azimuthal angle of the momentum vector at the outermost hit position

Definition at line 84 of file TrackExtra.h.

References outerMomentum().

00084 { return outerMomentum().Phi(); }

const Point& reco::TrackExtra::outerPosition (  )  const [inline]

outermost hit position

Definition at line 56 of file TrackExtra.h.

References outerPosition_.

Referenced by outerRadius().

00056 { return outerPosition_; }

double reco::TrackExtra::outerPt (  )  const [inline]

transverse momentum at the outermost hit position

Definition at line 82 of file TrackExtra.h.

References outerMomentum().

00082 { return outerMomentum().Rho(); }

double reco::TrackExtra::outerPx (  )  const [inline]

x coordinate of momentum vector at the outermost hit position

Definition at line 68 of file TrackExtra.h.

References outerMomentum_.

00068 { return outerMomentum_.X(); }

double reco::TrackExtra::outerPy (  )  const [inline]

y coordinate of momentum vector at the outermost hit position

Definition at line 70 of file TrackExtra.h.

References outerMomentum_.

00070 { return outerMomentum_.Y(); }

double reco::TrackExtra::outerPz (  )  const [inline]

z coordinate of momentum vector at the outermost hit position

Definition at line 72 of file TrackExtra.h.

References outerMomentum_.

00072 { return outerMomentum_.Z(); }

double reco::TrackExtra::outerRadius (  )  const [inline]

polar radius of the outermost hit position

Definition at line 90 of file TrackExtra.h.

References outerPosition().

00090 { return outerPosition().Rho(); }

TrackExtra::CovarianceMatrix TrackExtra::outerStateCovariance (  )  const

outermost trajectory state curvilinear errors

Definition at line 26 of file TrackExtra.cc.

References reco::fillCovariance(), outerCovariance_, and v.

00026                                                                   {
00027   CovarianceMatrix v; fillCovariance( v, outerCovariance_ ); return v;
00028 }

double reco::TrackExtra::outerTheta (  )  const [inline]

polar angle of the momentum vector at the outermost hit position

Definition at line 88 of file TrackExtra.h.

References outerMomentum().

00088 { return outerMomentum().Theta(); }

double reco::TrackExtra::outerX (  )  const [inline]

x coordinate the outermost hit position

Definition at line 74 of file TrackExtra.h.

References outerPosition_.

00074 { return outerPosition_.X(); }

double reco::TrackExtra::outerY (  )  const [inline]

y coordinate the outermost hit position

Definition at line 76 of file TrackExtra.h.

References outerPosition_.

00076 { return outerPosition_.Y(); }

double reco::TrackExtra::outerZ (  )  const [inline]

z coordinate the outermost hit position

Definition at line 78 of file TrackExtra.h.

References outerPosition_.

00078 { return outerPosition_.Z(); }

const TrackResiduals& reco::TrackExtra::residuals (  )  const [inline]

get the residuals

Definition at line 118 of file TrackExtra.h.

References trackResiduals_.

00118 { return trackResiduals_; }

PropagationDirection reco::TrackExtra::seedDirection (  )  const [inline]

Definition at line 105 of file TrackExtra.h.

References seedDir_.

00105 {return seedDir_;}

edm::RefToBase<TrajectorySeed> reco::TrackExtra::seedRef (  )  const [inline]

return the edm::reference to the trajectory seed in the original seeds collection.

If the collection has been dropped from the Event, the reference may be invalid. Its validity should be tested, before the reference is actually used.

Definition at line 112 of file TrackExtra.h.

References seedRef_.

00112 { return seedRef_; }

void reco::TrackExtra::setResiduals ( const TrackResiduals r  )  [inline]

set the residuals

Definition at line 115 of file TrackExtra.h.

References trackResiduals_.

Referenced by KfTrackProducerBase::putInEvt().

00115 { trackResiduals_ = r; }


Member Data Documentation

float reco::TrackExtra::innerCovariance_[covarianceSize] [private]

innermost trajectory state

Definition at line 140 of file TrackExtra.h.

Referenced by fillInner(), innerStateCovariance(), and TrackExtra().

unsigned int reco::TrackExtra::innerDetId_ [private]

Definition at line 141 of file TrackExtra.h.

Referenced by innerDetId().

Vector reco::TrackExtra::innerMomentum_ [private]

momentum vector at innermost hit position

Definition at line 136 of file TrackExtra.h.

Referenced by innerMomentum().

bool reco::TrackExtra::innerOk_ [private]

innermost hit validity flag

Definition at line 138 of file TrackExtra.h.

Referenced by innerOk().

Point reco::TrackExtra::innerPosition_ [private]

innermost hit position

Definition at line 134 of file TrackExtra.h.

Referenced by innerPosition().

float reco::TrackExtra::outerCovariance_[covarianceSize] [private]

outermost trajectory state curvilinear errors

Definition at line 129 of file TrackExtra.h.

Referenced by fillOuter(), outerStateCovariance(), and TrackExtra().

unsigned int reco::TrackExtra::outerDetId_ [private]

Definition at line 130 of file TrackExtra.h.

Referenced by outerDetId().

Vector reco::TrackExtra::outerMomentum_ [private]

momentum vector at outermost hit position

Definition at line 125 of file TrackExtra.h.

Referenced by outerMomentum(), outerPx(), outerPy(), and outerPz().

bool reco::TrackExtra::outerOk_ [private]

outermost hit validity flag

Definition at line 127 of file TrackExtra.h.

Referenced by outerOk().

Point reco::TrackExtra::outerPosition_ [private]

outermost hit position

Definition at line 123 of file TrackExtra.h.

Referenced by outerPosition(), outerX(), outerY(), and outerZ().

PropagationDirection reco::TrackExtra::seedDir_ [private]

Definition at line 143 of file TrackExtra.h.

Referenced by seedDirection().

edm::RefToBase<TrajectorySeed> reco::TrackExtra::seedRef_ [private]

Definition at line 144 of file TrackExtra.h.

Referenced by seedRef().

TrackResiduals reco::TrackExtra::trackResiduals_ [private]

unbiased track residuals

Definition at line 147 of file TrackExtra.h.

Referenced by residuals(), and setResiduals().


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