#include <DataFormats/TrackReco/interface/TrackExtra.h>
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 | |
CovarianceMatrix & | fillInner (CovarianceMatrix &v) const |
fill outermost trajectory state curvilinear errors | |
CovarianceMatrix & | fillOuter (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 Vector & | innerMomentum () const |
momentum vector at innermost hit position | |
bool | innerOk () const |
returns true if the innermost hit is valid | |
const Point & | innerPosition () 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 Vector & | outerMomentum () 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 Point & | outerPosition () 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 TrackResiduals & | residuals () const |
get the residuals | |
PropagationDirection | seedDirection () const |
edm::RefToBase< TrajectorySeed > | seedRef () 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< TrajectorySeed > | seedRef_ |
TrackResiduals | trackResiduals_ |
unbiased track residuals |
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.
Definition at line 25 of file TrackExtra.h.
typedef math::Error<5>::type reco::TrackExtra::CovarianceMatrix |
typedef unsigned int reco::TrackExtra::index |
anonymous enum |
anonymous enum |
track error matrix size
Definition at line 30 of file TrackExtra.h.
00030 { covarianceSize = dimension * ( dimension + 1 ) / 2 };
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 }
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] |
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; }
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] |
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] |
Point reco::TrackExtra::innerPosition_ [private] |
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] |
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] |
Point reco::TrackExtra::outerPosition_ [private] |
outermost hit position
Definition at line 123 of file TrackExtra.h.
Referenced by outerPosition(), outerX(), outerY(), and outerZ().
unbiased track residuals
Definition at line 147 of file TrackExtra.h.
Referenced by residuals(), and setResiduals().