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 {
9  LocalError lape = det.localAlignmentError();
10  if (lape.valid())
11  le = LocalError(le.xx()+lape.xx(),
12  le.xy()+lape.xy(),
13  le.yy()+lape.yy()
14  );
15 }
16 
18  const GeomDet& det)
19 {
21  LocalError lape = det.localAlignmentError();
22  if (lape.valid()) {
23  m[0][0] = le.xx()+lape.xx();
24  m[0][1] = le.xy()+lape.xy();
25  m[1][1] = le.yy()+lape.yy();
26  } else {
27  m[0][0] = le.xx();
28  m[0][1] = le.xy();
29  m[1][1] = le.yy();
30  };
31  return m;
32 }
33 
34 void
36  const TrackingRecHit &hit2dLocalPos,
37  const GeomDet& det)
38 {
39  hit2dLocalPos.getKfComponents(holder);
40  LocalError lape = det.localAlignmentError();
41  if (lape.valid()) {
42  AlgebraicSymMatrix22 &m = holder.errors<2>();
43  m(0, 0) += lape.xx();
44  m(0, 1) += lape.xy();
45  m(1, 1) += lape.yy();
46  }
47 }
48 
49 void
51  const SiStripRecHit1D& hit1D,
52  const GeomDet& det)
53 {
54  hit1D.getKfComponents(holder);
55  LocalError lape =det.localAlignmentError();
56  if (lape.valid()) {
57  AlgebraicSymMatrix11 &m = holder.errors<1>();
58  m(0, 0) += lape.xx();
59  }
60 }
bool valid() const
Definition: LocalError.h:21
float xx() const
Definition: LocalError.h:24
virtual void getKfComponents(KfComponentsHolder &holder) const
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22
static void getKfComponents(KfComponentsHolder &holder, const TrackingRecHit &hit2dLocalPos, const GeomDet &det)
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
CLHEP::HepSymMatrix AlgebraicSymMatrix
AlgebraicROOTObject< D, D >::SymMatrix & errors()
ROOT::Math::SMatrix< double, 1, 1, ROOT::Math::MatRepSym< double, 1 > > AlgebraicSymMatrix11
static AlgebraicSymMatrix parError(const LocalError &le, const GeomDet &det)