test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HelpertRecHit2DLocalPos.cc
Go to the documentation of this file.
5 
6 
7 void
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 */
bool valid() const
Definition: LocalError.h:21
float xx() const
Definition: LocalError.h:24
static void updateWithAPE(LocalError &le, const GeomDet &det)
float xy() const
Definition: LocalError.h:25
float yy() const
Definition: LocalError.h:26
LocalError const & localAlignmentError() const
Return local alligment error.
Definition: GeomDet.h:78