Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
TrackingTools
TransientTrackingRecHit
src
HelpertRecHit2DLocalPos.cc
Go to the documentation of this file.
1
#include "
TrackingTools/TransientTrackingRecHit/interface/HelpertRecHit2DLocalPos.h
"
2
#include "
DataFormats/GeometryCommonDetAlgo/interface/ErrorFrameTransformer.h
"
3
#include "
Geometry/CommonDetUnit/interface/GeomDet.h
"
4
#include "
DataFormats/TrackingRecHit/interface/AlignmentPositionError.h
"
5
6
7
void
8
HelpertRecHit2DLocalPos::updateWithAPE
(
LocalError
&
le
,
const
GeomDet
& det)
9
{
10
LocalError
lape = det.
localAlignmentError
();
11
if
(lape.
valid
())
12
le =
LocalError
(le.
xx
()+lape.
xx
(),
13
le.
xy
()+lape.
xy
(),
14
le.
yy
()+lape.
yy
()
15
);
16
}
17
18
/*
19
AlgebraicSymMatrix HelpertRecHit2DLocalPos::parError( const LocalError& le,
20
const GeomDet& det)
21
{
22
AlgebraicSymMatrix m(2);
23
LocalError lape = det.localAlignmentError();
24
if (lape.valid()) {
25
m[0][0] = le.xx()+lape.xx();
26
m[0][1] = le.xy()+lape.xy();
27
m[1][1] = le.yy()+lape.yy();
28
} else {
29
m[0][0] = le.xx();
30
m[0][1] = le.xy();
31
m[1][1] = le.yy();
32
};
33
return m;
34
}
35
36
37
void
38
HelpertRecHit2DLocalPos::getKfComponents(KfComponentsHolder & holder,
39
const TrackingRecHit &hit2dLocalPos,
40
const GeomDet& det)
41
{
42
hit2dLocalPos.getKfComponents(holder);
43
LocalError lape = det.localAlignmentError();
44
if (lape.valid()) {
45
AlgebraicSymMatrix22 &m = holder.errors<2>();
46
m(0, 0) += lape.xx();
47
m(0, 1) += lape.xy();
48
m(1, 1) += lape.yy();
49
}
50
}
51
52
void
53
HelpertRecHit2DLocalPos::getKfComponents(KfComponentsHolder & holder,
54
const SiStripRecHit1D& hit1D,
55
const GeomDet& det)
56
{
57
hit1D.getKfComponents(holder);
58
LocalError lape =det.localAlignmentError();
59
if (lape.valid()) {
60
AlgebraicSymMatrix11 &m = holder.errors<1>();
61
m(0, 0) += lape.xx();
62
}
63
}
64
*/
LocalError::valid
bool valid() const
Definition:
LocalError.h:21
LocalError::xx
float xx() const
Definition:
LocalError.h:24
GeomDet.h
GeomDet
Definition:
GeomDet.h:24
ErrorFrameTransformer.h
HelpertRecHit2DLocalPos::updateWithAPE
static void updateWithAPE(LocalError &le, const GeomDet &det)
Definition:
HelpertRecHit2DLocalPos.cc:8
LocalError::xy
float xy() const
Definition:
LocalError.h:25
LocalError::yy
float yy() const
Definition:
LocalError.h:26
GeomDet::localAlignmentError
LocalError const & localAlignmentError() const
Return local alligment error.
Definition:
GeomDet.h:78
HelpertRecHit2DLocalPos.h
LocalError
Definition:
LocalError.h:12
asciidump.le
int le
Definition:
asciidump.py:443
AlignmentPositionError.h
Generated for CMSSW Reference Manual by
1.8.5