Main Page
Namespaces
Classes
Package Documentation
DataFormats
TrackReco
interface
TrackExtra.h
Go to the documentation of this file.
1
#ifndef TrackReco_TrackExtra_h
2
#define TrackReco_TrackExtra_h
3
14
#include <Rtypes.h>
15
#include "
DataFormats/Common/interface/RefToBase.h
"
16
#include "
DataFormats/Math/interface/Vector3D.h
"
17
#include "
DataFormats/Math/interface/Point3D.h
"
18
#include "
DataFormats/Math/interface/Error.h
"
19
#include "
DataFormats/TrackReco/interface/TrackExtraBase.h
"
20
#include "
DataFormats/TrackReco/interface/TrackResiduals.h
"
21
#include "
DataFormats/TrajectorySeed/interface/PropagationDirection.h
"
22
#include "
DataFormats/TrajectorySeed/interface/TrajectorySeed.h
"
23
#include "
FWCore/Utilities/interface/thread_safety_macros.h
"
24
25
namespace
reco
{
26
class
TrackExtra
:
public
TrackExtraBase
{
27
public
:
29
enum
{
dimension
= 5 };
31
enum
{
covarianceSize
=
dimension
* (
dimension
+ 1) / 2 };
33
typedef
math::XYZPoint
Point
;
35
typedef
math::XYZVector
Vector
;
37
typedef
math::Error<5>::type
CovarianceMatrix
;
39
typedef
unsigned
int
index
;
40
42
TrackExtra
()
43
:
outerMomentum_
(),
44
outerOk_
(
false
),
45
outerDetId_
(0),
46
innerPosition_
(),
47
innerMomentum_
(),
48
innerOk_
(
false
),
49
innerDetId_
(0),
50
seedDir_
(
anyDirection
),
51
seedRef_
() {
52
for
(index
i
= 0;
i
<
covarianceSize
; ++
i
) {
53
outerCovariance_
[
i
] = 0;
54
innerCovariance_
[
i
] = 0;
55
}
56
}
57
59
TrackExtra
(
const
Point &
outerPosition
,
60
const
Vector &
outerMomentum
,
61
bool
ok
,
62
const
Point &
innerPosition
,
63
const
Vector &
innerMomentum
,
64
bool
iok,
65
const
CovarianceMatrix &outerState,
66
unsigned
int
outerId,
67
const
CovarianceMatrix &innerState,
68
unsigned
int
innerId,
69
PropagationDirection
seedDir,
70
edm::RefToBase<TrajectorySeed>
seedRef
=
edm::RefToBase<TrajectorySeed>
());
71
73
const
Point &
outerPosition
()
const
{
return
outerPosition_
; }
75
const
Vector &
outerMomentum
()
const
{
return
outerMomentum_
; }
77
bool
outerOk
()
const
{
return
outerOk_
; }
79
const
Point &
innerPosition
()
const
{
return
innerPosition_
; }
81
const
Vector &
innerMomentum
()
const
{
return
innerMomentum_
; }
83
bool
innerOk
()
const
{
return
innerOk_
; }
85
double
outerPx
()
const
{
return
outerMomentum_
.X(); }
87
double
outerPy
()
const
{
return
outerMomentum_
.Y(); }
89
double
outerPz
()
const
{
return
outerMomentum_
.Z(); }
91
double
outerX
()
const
{
return
outerPosition_
.X(); }
93
double
outerY
()
const
{
return
outerPosition_
.Y(); }
95
double
outerZ
()
const
{
return
outerPosition_
.Z(); }
97
double
outerP
()
const
{
return
outerMomentum
().R(); }
99
double
outerPt
()
const
{
return
outerMomentum
().Rho(); }
101
double
outerPhi
()
const
{
return
outerMomentum
().Phi(); }
103
double
outerEta
()
const
{
return
outerMomentum
().Eta(); }
105
double
outerTheta
()
const
{
return
outerMomentum
().Theta(); }
107
double
outerRadius
()
const
{
return
outerPosition
().Rho(); }
108
110
CovarianceMatrix
outerStateCovariance
()
const
;
112
CovarianceMatrix
innerStateCovariance
()
const
;
114
CovarianceMatrix &
fillOuter
CMS_THREAD_SAFE
(CovarianceMatrix &
v
)
const
;
116
CovarianceMatrix &
fillInner
CMS_THREAD_SAFE
(CovarianceMatrix &v)
const
;
118
unsigned
int
outerDetId
()
const
{
return
outerDetId_
; }
120
unsigned
int
innerDetId
()
const
{
return
innerDetId_
; }
121
// direction how the hits were sorted in the original seed
122
const
PropagationDirection
&
seedDirection
()
const
{
return
seedDir_
; }
123
129
const
edm::RefToBase<TrajectorySeed>
&
seedRef
()
const
{
return
seedRef_
; }
130
void
setSeedRef
(
const
edm::RefToBase<TrajectorySeed>
&
r
) {
seedRef_
=
r
; }
132
void
setResiduals
(
const
TrackResiduals
&
r
) {
trackResiduals_
=
r
; }
133
135
const
TrackResiduals
&
residuals
()
const
{
return
trackResiduals_
; }
136
137
private
:
139
Point
outerPosition_
;
141
Vector
outerMomentum_
;
143
bool
outerOk_
;
145
float
outerCovariance_
[
covarianceSize
];
146
unsigned
int
outerDetId_
;
147
149
Point
innerPosition_
;
151
Vector
innerMomentum_
;
153
bool
innerOk_
;
155
float
innerCovariance_
[
covarianceSize
];
156
unsigned
int
innerDetId_
;
157
158
PropagationDirection
seedDir_
;
159
edm::RefToBase<TrajectorySeed>
seedRef_
;
160
162
TrackResiduals
trackResiduals_
;
163
};
164
165
}
// namespace reco
166
167
#endif
reco::TrackExtra::innerOk_
bool innerOk_
innermost hit validity flag
Definition:
TrackExtra.h:153
reco::TrackExtra::outerPz
double outerPz() const
z coordinate of momentum vector at the outermost hit position
Definition:
TrackExtra.h:89
reco::TrackExtra::outerMomentum_
Vector outerMomentum_
momentum vector at outermost hit position
Definition:
TrackExtra.h:141
reco::TrackExtra::Vector
math::XYZVector Vector
spatial vector
Definition:
TrackExtra.h:35
reco::TrackExtra::setSeedRef
void setSeedRef(const edm::RefToBase< TrajectorySeed > &r)
Definition:
TrackExtra.h:130
reco::TrackExtra::dimension
Definition:
TrackExtra.h:29
mps_fire.i
i
Definition:
mps_fire.py:341
reco::TrackExtra::outerTheta
double outerTheta() const
polar angle of the momentum vector at the outermost hit position
Definition:
TrackExtra.h:105
reco::TrackExtra::CovarianceMatrix
math::Error< 5 >::type CovarianceMatrix
5 parameter covariance matrix
Definition:
TrackExtra.h:37
anyDirection
Definition:
PropagationDirection.h:4
reco::TrackExtra::outerPt
double outerPt() const
transverse momentum at the outermost hit position
Definition:
TrackExtra.h:99
funct::false
false
Definition:
Factorize.h:34
reco::TrackExtra::outerRadius
double outerRadius() const
polar radius of the outermost hit position
Definition:
TrackExtra.h:107
convertSQLiteXML.ok
bool ok
Definition:
convertSQLiteXML.py:98
reco::TrackExtra::innerDetId
unsigned int innerDetId() const
DetId of the detector on which surface the innermost state is located.
Definition:
TrackExtra.h:120
reco::TrackExtra
Definition:
TrackExtra.h:26
RefToBase.h
thread_safety_macros.h
reco::TrackExtra::outerOk_
bool outerOk_
outermost hit validity flag
Definition:
TrackExtra.h:143
reco::TrackExtra::outerMomentum
const Vector & outerMomentum() const
momentum vector at outermost hit position
Definition:
TrackExtra.h:75
math::Error::type
ErrorD< N >::type type
Definition:
Error.h:32
reco::TrackExtra::residuals
const TrackResiduals & residuals() const
get the residuals
Definition:
TrackExtra.h:135
PropagationDirection
PropagationDirection
Definition:
PropagationDirection.h:4
findQualityFiles.v
v
Definition:
findQualityFiles.py:179
Point3D.h
edm::RefToBase< TrajectorySeed >
reco::TrackExtra::outerX
double outerX() const
x coordinate the outermost hit position
Definition:
TrackExtra.h:91
reco::TrackExtra::outerCovariance_
float outerCovariance_[covarianceSize]
outermost trajectory state curvilinear errors
Definition:
TrackExtra.h:145
reco::TrackExtra::covarianceSize
Definition:
TrackExtra.h:31
reco::TrackExtra::Point
math::XYZPoint Point
point in the space
Definition:
TrackExtra.h:33
reco::TrackExtraBase
Definition:
TrackExtraBase.h:22
Error.h
reco::TrackExtra::seedRef
const edm::RefToBase< TrajectorySeed > & seedRef() const
Definition:
TrackExtra.h:129
reco::TrackExtra::outerP
double outerP() const
magnitude of momentum vector at the outermost hit position
Definition:
TrackExtra.h:97
PropagationDirection.h
reco::TrackExtra::outerStateCovariance
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
Definition:
TrackExtra.cc:41
reco::TrackExtra::trackResiduals_
TrackResiduals trackResiduals_
unbiased track residuals
Definition:
TrackExtra.h:162
reco::TrackExtra::seedRef_
edm::RefToBase< TrajectorySeed > seedRef_
Definition:
TrackExtra.h:159
reco::TrackExtra::innerMomentum
const Vector & innerMomentum() const
momentum vector at innermost hit position
Definition:
TrackExtra.h:81
reco::TrackExtra::outerPy
double outerPy() const
y coordinate of momentum vector at the outermost hit position
Definition:
TrackExtra.h:87
reco::TrackExtra::index
unsigned int index
index type
Definition:
TrackExtra.h:39
CMS_THREAD_SAFE
#define CMS_THREAD_SAFE
reco::TrackExtra::outerDetId_
unsigned int outerDetId_
Definition:
TrackExtra.h:146
reco::TrackExtra::innerMomentum_
Vector innerMomentum_
momentum vector at innermost hit position
Definition:
TrackExtra.h:151
reco::TrackExtra::innerPosition
const Point & innerPosition() const
innermost hit position
Definition:
TrackExtra.h:79
reco::TrackExtra::innerDetId_
unsigned int innerDetId_
Definition:
TrackExtra.h:156
reco::TrackExtra::outerZ
double outerZ() const
z coordinate the outermost hit position
Definition:
TrackExtra.h:95
reco::TrackExtra::fillInner
CovarianceMatrix & fillInner(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition:
TrackExtra.cc:57
reco::TrackExtra::TrackExtra
TrackExtra()
default constructor
Definition:
TrackExtra.h:42
TrajectorySeed.h
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
reco::TrackExtra::outerPhi
double outerPhi() const
azimuthal angle of the momentum vector at the outermost hit position
Definition:
TrackExtra.h:101
reco::TrackExtra::seedDirection
const PropagationDirection & seedDirection() const
Definition:
TrackExtra.h:122
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition:
Vector3D.h:31
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition:
Point3D.h:12
reco::TrackExtra::innerPosition_
Point innerPosition_
innermost hit position
Definition:
TrackExtra.h:149
reco::TrackExtra::innerOk
bool innerOk() const
returns true if the innermost hit is valid
Definition:
TrackExtra.h:83
reco::TrackExtra::innerStateCovariance
CovarianceMatrix innerStateCovariance() const
innermost trajectory state curvilinear errors
Definition:
TrackExtra.cc:47
TrackExtraBase.h
reco::TrackExtra::outerPosition_
Point outerPosition_
outermost hit position
Definition:
TrackExtra.h:139
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
Vector3D.h
reco::TrackExtra::innerCovariance_
float innerCovariance_[covarianceSize]
innermost trajectory state
Definition:
TrackExtra.h:155
reco::TrackExtra::outerDetId
unsigned int outerDetId() const
DetId of the detector on which surface the outermost state is located.
Definition:
TrackExtra.h:118
reco::TrackResiduals
Definition:
TrackResiduals.h:8
reco::TrackExtra::outerPx
double outerPx() const
x coordinate of momentum vector at the outermost hit position
Definition:
TrackExtra.h:85
reco::TrackExtra::outerY
double outerY() const
y coordinate the outermost hit position
Definition:
TrackExtra.h:93
reco::TrackExtra::outerOk
bool outerOk() const
returns true if the outermost hit is valid
Definition:
TrackExtra.h:77
reco::TrackExtra::outerEta
double outerEta() const
pseudorapidity the momentum vector at the outermost hit position
Definition:
TrackExtra.h:103
TrackResiduals.h
reco::TrackExtra::outerPosition
const Point & outerPosition() const
outermost hit position
Definition:
TrackExtra.h:73
reco::TrackExtra::seedDir_
PropagationDirection seedDir_
Definition:
TrackExtra.h:158
reco::TrackExtra::fillOuter
CovarianceMatrix & fillOuter(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition:
TrackExtra.cc:53
reco::TrackExtra::setResiduals
void setResiduals(const TrackResiduals &r)
set the residuals
Definition:
TrackExtra.h:132
Generated for CMSSW Reference Manual by
1.8.11