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 void
8  if ( det.alignmentPositionError() != 0) {
9  LocalError lape =
11  det.surface());
12  le = LocalError(le.xx()+lape.xx(),
13  le.xy()+lape.xy(),
14  le.yy()+lape.yy());
15  }
16 }
17 
19  const GeomDet& det)
20 {
22  if ( det.alignmentPositionError() != 0) {
23  LocalError lape =
25  det.surface());
26  m[0][0] = le.xx()+lape.xx();
27  m[0][1] = le.xy()+lape.xy();
28  m[1][1] = le.yy()+lape.yy();
29  } else {
30  m[0][0] = le.xx();
31  m[0][1] = le.xy();
32  m[1][1] = le.yy();
33  };
34  return m;
35 }
36 
37 void
39  const TrackingRecHit &hit2dLocalPos,
40  const GeomDet& det)
41 {
42  hit2dLocalPos.getKfComponents(holder);
43  if ( det.alignmentPositionError() != 0) {
44  LocalError lape =
46  det.surface());
47  AlgebraicSymMatrix22 &m = holder.errors<2>();
48  m(0, 0) += lape.xx();
49  m(0, 1) += lape.xy();
50  m(1, 1) += lape.yy();
51  }
52 }
53 
54 void
56  const SiStripRecHit1D& hit1D,
57  const GeomDet& det)
58 {
59  hit1D.getKfComponents(holder);
60  if ( det.alignmentPositionError() != 0) {
61  LocalError lape =
63  det.surface());
64  AlgebraicSymMatrix11 &m = holder.errors<1>();
65  m(0, 0) += lape.xx();
66  }
67 }
float xx() const
Definition: LocalError.h:19
virtual void getKfComponents(KfComponentsHolder &holder) const
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22
virtual AlignmentPositionError * alignmentPositionError() const
Definition: GeomDet.h:81
GlobalError transform(const LocalError &le, const Surface &surf) const
static void getKfComponents(KfComponentsHolder &holder, const TrackingRecHit &hit2dLocalPos, const GeomDet &det)
virtual void getKfComponents(KfComponentsHolder &holder) const
static void updateWithAPE(LocalError &le, const GeomDet &det)
float xy() const
Definition: LocalError.h:20
float yy() const
Definition: LocalError.h:21
const GlobalError & globalError() const
CLHEP::HepSymMatrix AlgebraicSymMatrix
AlgebraicROOTObject< D, D >::SymMatrix & errors()
virtual const BoundPlane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
ROOT::Math::SMatrix< double, 1, 1, ROOT::Math::MatRepSym< double, 1 > > AlgebraicSymMatrix11
static AlgebraicSymMatrix parError(const LocalError &le, const GeomDet &det)