Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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/Math/interface/Vector3D.h
"
16
#include "
DataFormats/Math/interface/Point3D.h
"
17
#include "
DataFormats/Math/interface/Error.h
"
18
#include "
DataFormats/TrackReco/interface/TrackExtraBase.h
"
19
#include "
DataFormats/TrackReco/interface/TrackResiduals.h
"
20
#include "
DataFormats/TrajectorySeed/interface/PropagationDirection.h
"
21
#include "
DataFormats/TrajectorySeed/interface/TrajectorySeed.h
"
22
23
namespace
reco
{
24
class
TrackExtra
:
public
TrackExtraBase
{
25
public
:
27
enum
{
dimension
= 5 };
29
enum
{
covarianceSize
=
dimension
* (
dimension
+ 1 ) / 2 };
31
typedef
math::XYZPoint
Point
;
33
typedef
math::XYZVector
Vector
;
35
typedef
math::Error<5>::type
CovarianceMatrix
;
37
typedef
unsigned
int
index
;
38
40
TrackExtra
():
41
outerMomentum_
(),
42
outerOk_
(
false
),
43
outerDetId_
(0),
44
innerPosition_
(),
45
innerMomentum_
(),
46
innerOk_
(
false
),
47
innerDetId_
(0),
48
seedDir_
(
anyDirection
),
49
seedRef_
(),
50
trackResiduals_
()
51
{
52
index
idx
= 0;
53
for
( index
i
= 0;
i
<
dimension
; ++
i
) {
54
for
( index
j
= 0;
j
<=
i
; ++
j
) {
55
outerCovariance_
[
idx
] = 0;
56
innerCovariance_
[
idx
] = 0;
57
++
idx
;
58
}
59
}
60
}
61
63
TrackExtra
(
const
Point &
outerPosition
,
const
Vector &
outerMomentum
,
bool
ok
,
64
const
Point &
innerPosition
,
const
Vector &
innerMomentum
,
bool
iok,
65
const
CovarianceMatrix& outerState,
unsigned
int
outerId,
66
const
CovarianceMatrix& innerState,
unsigned
int
innerId,
67
PropagationDirection
seedDir,
68
edm::RefToBase<TrajectorySeed>
seedRef
=
edm::RefToBase<TrajectorySeed>
());
69
71
const
Point &
outerPosition
()
const
{
return
outerPosition_
; }
73
const
Vector &
outerMomentum
()
const
{
return
outerMomentum_
; }
75
bool
outerOk
()
const
{
return
outerOk_
; }
77
const
Point &
innerPosition
()
const
{
return
innerPosition_
; }
79
const
Vector &
innerMomentum
()
const
{
return
innerMomentum_
; }
81
bool
innerOk
()
const
{
return
innerOk_
; }
83
double
outerPx
()
const
{
return
outerMomentum_
.X(); }
85
double
outerPy
()
const
{
return
outerMomentum_
.Y(); }
87
double
outerPz
()
const
{
return
outerMomentum_
.Z(); }
89
double
outerX
()
const
{
return
outerPosition_
.X(); }
91
double
outerY
()
const
{
return
outerPosition_
.Y(); }
93
double
outerZ
()
const
{
return
outerPosition_
.Z(); }
95
double
outerP
()
const
{
return
outerMomentum
().R(); }
97
double
outerPt
()
const
{
return
outerMomentum
().Rho(); }
99
double
outerPhi
()
const
{
return
outerMomentum
().Phi(); }
101
double
outerEta
()
const
{
return
outerMomentum
().Eta(); }
103
double
outerTheta
()
const
{
return
outerMomentum
().Theta(); }
105
double
outerRadius
()
const
{
return
outerPosition
().Rho(); }
106
108
CovarianceMatrix
outerStateCovariance
()
const
;
110
CovarianceMatrix
innerStateCovariance
()
const
;
112
CovarianceMatrix &
fillOuter
( CovarianceMatrix &
v
)
const
;
114
CovarianceMatrix &
fillInner
( CovarianceMatrix &
v
)
const
;
116
unsigned
int
outerDetId
()
const
{
return
outerDetId_
; }
118
unsigned
int
innerDetId
()
const
{
return
innerDetId_
; }
119
// direction how the hits were sorted in the original seed
120
PropagationDirection
seedDirection
()
const
{
return
seedDir_
;}
121
127
edm::RefToBase<TrajectorySeed>
seedRef
()
const
{
return
seedRef_
; }
128
void
setSeedRef
(
edm::RefToBase<TrajectorySeed>
&
r
) {
seedRef_
=
r
; }
130
void
setResiduals
(
const
TrackResiduals
&
r
) {
trackResiduals_
=
r
; }
131
133
const
TrackResiduals
&
residuals
()
const
{
return
trackResiduals_
; }
134
135
private
:
136
138
Point
outerPosition_
;
140
Vector
outerMomentum_
;
142
bool
outerOk_
;
144
float
outerCovariance_
[
covarianceSize
];
145
unsigned
int
outerDetId_
;
146
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
}
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:87
reco::TrackExtra::outerMomentum_
Vector outerMomentum_
momentum vector at outermost hit position
Definition:
TrackExtra.h:140
i
int i
Definition:
DBlmapReader.cc:9
reco::TrackExtra::seedRef
edm::RefToBase< TrajectorySeed > seedRef() const
Definition:
TrackExtra.h:127
reco::TrackExtra::Vector
math::XYZVector Vector
spatial vector
Definition:
TrackExtra.h:33
reco::TrackExtra::outerTheta
double outerTheta() const
polar angle of the momentum vector at the outermost hit position
Definition:
TrackExtra.h:103
reco::TrackExtra::CovarianceMatrix
math::Error< 5 >::type CovarianceMatrix
5 parameter covariance matrix
Definition:
TrackExtra.h:35
anyDirection
Definition:
PropagationDirection.h:4
reco::TrackExtra::outerPt
double outerPt() const
transverse momentum at the outermost hit position
Definition:
TrackExtra.h:97
reco::TrackExtra::outerRadius
double outerRadius() const
polar radius of the outermost hit position
Definition:
TrackExtra.h:105
reco::TrackExtra::innerDetId
unsigned int innerDetId() const
DetId of the detector on which surface the innermost state is located.
Definition:
TrackExtra.h:118
reco::TrackExtra
Definition:
TrackExtra.h:24
reco::TrackExtra::outerOk_
bool outerOk_
outermost hit validity flag
Definition:
TrackExtra.h:142
reco::TrackExtra::outerMomentum
const Vector & outerMomentum() const
momentum vector at outermost hit position
Definition:
TrackExtra.h:73
math::Error::type
ErrorD< N >::type type
Definition:
Error.h:29
reco::TrackExtra::setSeedRef
void setSeedRef(edm::RefToBase< TrajectorySeed > &r)
Definition:
TrackExtra.h:128
edm::RefToBase< TrajectorySeed >
reco::TrackExtra::residuals
const TrackResiduals & residuals() const
get the residuals
Definition:
TrackExtra.h:133
PropagationDirection
PropagationDirection
Definition:
PropagationDirection.h:4
findQualityFiles.v
v
Definition:
findQualityFiles.py:177
dt_dqm_sourceclient_common_cff.reco
tuple reco
Definition:
dt_dqm_sourceclient_common_cff.py:105
reco::TrackExtra::dimension
Definition:
TrackExtra.h:27
Point3D.h
reco::TrackExtra::outerX
double outerX() const
x coordinate the outermost hit position
Definition:
TrackExtra.h:89
reco::TrackExtra::outerCovariance_
float outerCovariance_[covarianceSize]
outermost trajectory state curvilinear errors
Definition:
TrackExtra.h:144
reco::TrackExtra::Point
math::XYZPoint Point
point in the space
Definition:
TrackExtra.h:31
reco::TrackExtraBase
Definition:
TrackExtraBase.h:18
Error.h
reco::TrackExtra::covarianceSize
Definition:
TrackExtra.h:29
reco::TrackExtra::outerP
double outerP() const
magnitude of momentum vector at the outermost hit position
Definition:
TrackExtra.h:95
PropagationDirection.h
reco::TrackExtra::outerStateCovariance
CovarianceMatrix outerStateCovariance() const
outermost trajectory state curvilinear errors
Definition:
TrackExtra.cc:26
reco::TrackExtra::trackResiduals_
TrackResiduals trackResiduals_
unbiased track residuals
Definition:
TrackExtra.h:162
reco::TrackExtra::seedRef_
edm::RefToBase< TrajectorySeed > seedRef_
Definition:
TrackExtra.h:159
j
int j
Definition:
DBlmapReader.cc:9
reco::TrackExtra::innerMomentum
const Vector & innerMomentum() const
momentum vector at innermost hit position
Definition:
TrackExtra.h:79
reco::TrackExtra::outerPy
double outerPy() const
y coordinate of momentum vector at the outermost hit position
Definition:
TrackExtra.h:85
reco::TrackExtra::index
unsigned int index
index type
Definition:
TrackExtra.h:37
reco::TrackExtra::outerDetId_
unsigned int outerDetId_
Definition:
TrackExtra.h:145
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:77
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:93
reco::TrackExtra::fillInner
CovarianceMatrix & fillInner(CovarianceMatrix &v) const
fill outermost trajectory state curvilinear errors
Definition:
TrackExtra.cc:38
reco::TrackExtra::TrackExtra
TrackExtra()
default constructor
Definition:
TrackExtra.h:40
TrajectorySeed.h
reco::TrackExtra::outerPhi
double outerPhi() const
azimuthal angle of the momentum vector at the outermost hit position
Definition:
TrackExtra.h:99
reco::TrackExtra::seedDirection
PropagationDirection seedDirection() const
Definition:
TrackExtra.h:120
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition:
Vector3D.h:30
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition:
Point3D.h:12
customizeTrackingMonitorSeedNumber.idx
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
Definition:
customizeTrackingMonitorSeedNumber.py:15
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:81
reco::TrackExtra::innerStateCovariance
CovarianceMatrix innerStateCovariance() const
innermost trajectory state curvilinear errors
Definition:
TrackExtra.cc:30
TrackExtraBase.h
reco::TrackExtra::outerPosition_
Point outerPosition_
outermost hit position
Definition:
TrackExtra.h:138
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:116
reco::TrackResiduals
Definition:
TrackResiduals.h:17
alignCSCRings.r
list r
Definition:
alignCSCRings.py:92
reco::TrackExtra::outerPx
double outerPx() const
x coordinate of momentum vector at the outermost hit position
Definition:
TrackExtra.h:83
reco::TrackExtra::outerY
double outerY() const
y coordinate the outermost hit position
Definition:
TrackExtra.h:91
edm::false
volatile std::atomic< bool > shutdown_flag false
Definition:
UnixSignalHandlers.cc:22
reco::TrackExtra::outerOk
bool outerOk() const
returns true if the outermost hit is valid
Definition:
TrackExtra.h:75
convertSQLiteXML.ok
ok
Definition:
convertSQLiteXML.py:97
reco::TrackExtra::outerEta
double outerEta() const
pseudorapidity the momentum vector at the outermost hit position
Definition:
TrackExtra.h:101
TrackResiduals.h
reco::TrackExtra::outerPosition
const Point & outerPosition() const
outermost hit position
Definition:
TrackExtra.h:71
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:34
reco::TrackExtra::setResiduals
void setResiduals(const TrackResiduals &r)
set the residuals
Definition:
TrackExtra.h:130
Generated for CMSSW Reference Manual by
1.8.5