CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

reco::TrackExtra Class Reference

#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
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.29 2010/07/12 08:51:10 hegner Exp

Definition at line 25 of file TrackExtra.h.


Member Typedef Documentation

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.

point in the space

Definition at line 32 of file TrackExtra.h.

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.

{ dimension = 5 };
anonymous enum

track error matrix size

Enumerator:
covarianceSize 

Definition at line 30 of file TrackExtra.h.

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

Constructor & Destructor Documentation

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

default constructor

Definition at line 41 of file TrackExtra.h.

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

                : 
      outerMomentum_(),
      outerOk_(false),
      outerDetId_(0),
      innerPosition_(),
      innerMomentum_(),
      innerOk_(false),
      innerDetId_(0),
      seedDir_(anyDirection),
      seedRef_(),
      trackResiduals_()
   {
     index idx = 0;
     for( index i = 0; i < dimension; ++ i ) {
       for( index j = 0; j <= i; ++ j ) {
         outerCovariance_[ idx ] = 0;
         innerCovariance_[ idx ] = 0;
         ++idx;
       }
     }
   }
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_.

                                                              :    
  TrackExtraBase(),
  outerPosition_( outerPosition ), outerMomentum_( outerMomentum ), outerOk_( ok ), 
  outerDetId_( outerId ),
  innerPosition_( innerPosition ), innerMomentum_( innerMomentum ), innerOk_( iok ),
  innerDetId_( innerId ), seedDir_(seedDir), seedRef_(seedRef) {
  index idx = 0;
  for( index i = 0; i < dimension; ++ i ) {
    for( index j = 0; j <= i; ++ j ) {
      outerCovariance_[ idx ] = outerCov( i, j );
      innerCovariance_[ idx ] = innerCov( i, j );
      ++idx;
    }
  }
}

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_.

                                                                               {
  return fillCovariance( v, innerCovariance_ );
}
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_.

                                                                               {
  return fillCovariance( v, outerCovariance_ );
}
unsigned int reco::TrackExtra::innerDetId ( ) const [inline]

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

Definition at line 119 of file TrackExtra.h.

References innerDetId_.

{ return innerDetId_; }
const Vector& reco::TrackExtra::innerMomentum ( ) const [inline]

momentum vector at innermost hit position

Definition at line 80 of file TrackExtra.h.

References innerMomentum_.

{ return innerMomentum_; }
bool reco::TrackExtra::innerOk ( ) const [inline]

returns true if the innermost hit is valid

Definition at line 82 of file TrackExtra.h.

References innerOk_.

{ return innerOk_; }
const Point& reco::TrackExtra::innerPosition ( ) const [inline]

innermost hit position

Definition at line 78 of file TrackExtra.h.

References innerPosition_.

{ 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.

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

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

Definition at line 117 of file TrackExtra.h.

References outerDetId_.

{ return outerDetId_; }
double reco::TrackExtra::outerEta ( ) const [inline]

pseudorapidity the momentum vector at the outermost hit position

Definition at line 102 of file TrackExtra.h.

References outerMomentum().

{ return outerMomentum().Eta(); }
const Vector& reco::TrackExtra::outerMomentum ( ) const [inline]

momentum vector at outermost hit position

Definition at line 74 of file TrackExtra.h.

References outerMomentum_.

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

{ return outerMomentum_; }
bool reco::TrackExtra::outerOk ( ) const [inline]

returns true if the outermost hit is valid

Definition at line 76 of file TrackExtra.h.

References outerOk_.

{ return outerOk_; }
double reco::TrackExtra::outerP ( ) const [inline]

magnitude of momentum vector at the outermost hit position

Definition at line 96 of file TrackExtra.h.

References outerMomentum().

{ return outerMomentum().R(); }
double reco::TrackExtra::outerPhi ( ) const [inline]

azimuthal angle of the momentum vector at the outermost hit position

Definition at line 100 of file TrackExtra.h.

References outerMomentum().

{ return outerMomentum().Phi(); }
const Point& reco::TrackExtra::outerPosition ( ) const [inline]

outermost hit position

Definition at line 72 of file TrackExtra.h.

References outerPosition_.

Referenced by outerRadius().

{ return outerPosition_; }
double reco::TrackExtra::outerPt ( ) const [inline]

transverse momentum at the outermost hit position

Definition at line 98 of file TrackExtra.h.

References outerMomentum().

{ return outerMomentum().Rho(); }
double reco::TrackExtra::outerPx ( ) const [inline]

x coordinate of momentum vector at the outermost hit position

Definition at line 84 of file TrackExtra.h.

References outerMomentum_.

{ return outerMomentum_.X(); }
double reco::TrackExtra::outerPy ( ) const [inline]

y coordinate of momentum vector at the outermost hit position

Definition at line 86 of file TrackExtra.h.

References outerMomentum_.

{ return outerMomentum_.Y(); }
double reco::TrackExtra::outerPz ( ) const [inline]

z coordinate of momentum vector at the outermost hit position

Definition at line 88 of file TrackExtra.h.

References outerMomentum_.

{ return outerMomentum_.Z(); }
double reco::TrackExtra::outerRadius ( ) const [inline]

polar radius of the outermost hit position

Definition at line 106 of file TrackExtra.h.

References outerPosition().

{ 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.

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

polar angle of the momentum vector at the outermost hit position

Definition at line 104 of file TrackExtra.h.

References outerMomentum().

{ return outerMomentum().Theta(); }
double reco::TrackExtra::outerX ( ) const [inline]

x coordinate the outermost hit position

Definition at line 90 of file TrackExtra.h.

References outerPosition_.

{ return outerPosition_.X(); }
double reco::TrackExtra::outerY ( ) const [inline]

y coordinate the outermost hit position

Definition at line 92 of file TrackExtra.h.

References outerPosition_.

{ return outerPosition_.Y(); }
double reco::TrackExtra::outerZ ( ) const [inline]

z coordinate the outermost hit position

Definition at line 94 of file TrackExtra.h.

References outerPosition_.

{ return outerPosition_.Z(); }
const TrackResiduals& reco::TrackExtra::residuals ( ) const [inline]

get the residuals

Definition at line 134 of file TrackExtra.h.

References trackResiduals_.

{ return trackResiduals_; }
PropagationDirection reco::TrackExtra::seedDirection ( ) const [inline]

Definition at line 121 of file TrackExtra.h.

References seedDir_.

{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 128 of file TrackExtra.h.

References seedRef_.

{ return seedRef_; }
void reco::TrackExtra::setResiduals ( const TrackResiduals r) [inline]

Member Data Documentation

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

innermost trajectory state

Definition at line 156 of file TrackExtra.h.

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

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

Definition at line 157 of file TrackExtra.h.

Referenced by innerDetId().

momentum vector at innermost hit position

Definition at line 152 of file TrackExtra.h.

Referenced by innerMomentum().

innermost hit validity flag

Definition at line 154 of file TrackExtra.h.

Referenced by innerOk().

innermost hit position

Definition at line 150 of file TrackExtra.h.

Referenced by innerPosition().

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

outermost trajectory state curvilinear errors

Definition at line 145 of file TrackExtra.h.

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

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

Definition at line 146 of file TrackExtra.h.

Referenced by outerDetId().

momentum vector at outermost hit position

Definition at line 141 of file TrackExtra.h.

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

outermost hit validity flag

Definition at line 143 of file TrackExtra.h.

Referenced by outerOk().

outermost hit position

Definition at line 139 of file TrackExtra.h.

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

Definition at line 159 of file TrackExtra.h.

Referenced by seedDirection().

Definition at line 160 of file TrackExtra.h.

Referenced by seedRef().

unbiased track residuals

Definition at line 163 of file TrackExtra.h.

Referenced by residuals(), and setResiduals().