CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Static Public Member Functions
HelpertRecHit2DLocalPos Class Reference

#include <HelpertRecHit2DLocalPos.h>

Static Public Member Functions

static void getKfComponents (KfComponentsHolder &holder, const TrackingRecHit &hit2dLocalPos, const GeomDet &det)
 
static void getKfComponents (KfComponentsHolder &holder, const SiStripRecHit1D &hit1D, const GeomDet &det)
 Fills in KFComponents delegating to hit1D, plus adding APE if available. More...
 
static AlgebraicSymMatrix parError (const LocalError &le, const GeomDet &det)
 
static void updateWithAPE (LocalError &le, const GeomDet &det)
 

Detailed Description

Definition at line 16 of file HelpertRecHit2DLocalPos.h.

Member Function Documentation

void HelpertRecHit2DLocalPos::getKfComponents ( KfComponentsHolder holder,
const TrackingRecHit hit2dLocalPos,
const GeomDet det 
)
static

Fills in KFComponents delegating to hit2dLocalPos, plus adding APE if available hit2dLocalPos MUST BE a 2D rechit measuring local position (e.g. BaseSiTrackerRecHit2DLocalPos)

Definition at line 38 of file HelpertRecHit2DLocalPos.cc.

References GeomDet::alignmentPositionError(), KfComponentsHolder::errors(), TrackingRecHit::getKfComponents(), AlignmentPositionError::globalError(), m, GeomDet::surface(), ErrorFrameTransformer::transform(), LocalError::xx(), LocalError::xy(), and LocalError::yy().

Referenced by ProjectedRecHit2D::getKfComponents(), TSiStripMatchedRecHit::getKfComponents(), TSiStripRecHit2DLocalPos::getKfComponents(), TSiStripRecHit1D::getKfComponents(), TSiTrackerMultiRecHit::getKfComponents(), and TSiPixelRecHit::getKfComponents().

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 }
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
float xy() const
Definition: LocalError.h:20
float yy() const
Definition: LocalError.h:21
const GlobalError & globalError() const
AlgebraicROOTObject< D, D >::SymMatrix & errors()
virtual const BoundPlane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
void HelpertRecHit2DLocalPos::getKfComponents ( KfComponentsHolder holder,
const SiStripRecHit1D hit1D,
const GeomDet det 
)
static

Fills in KFComponents delegating to hit1D, plus adding APE if available.

Definition at line 55 of file HelpertRecHit2DLocalPos.cc.

References GeomDet::alignmentPositionError(), KfComponentsHolder::errors(), SiStripRecHit1D::getKfComponents(), AlignmentPositionError::globalError(), m, GeomDet::surface(), ErrorFrameTransformer::transform(), and LocalError::xx().

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 AlignmentPositionError * alignmentPositionError() const
Definition: GeomDet.h:81
GlobalError transform(const LocalError &le, const Surface &surf) const
virtual void getKfComponents(KfComponentsHolder &holder) const
const GlobalError & globalError() const
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
AlgebraicSymMatrix HelpertRecHit2DLocalPos::parError ( const LocalError le,
const GeomDet det 
)
static

Definition at line 18 of file HelpertRecHit2DLocalPos.cc.

References GeomDet::alignmentPositionError(), AlignmentPositionError::globalError(), m, GeomDet::surface(), ErrorFrameTransformer::transform(), LocalError::xx(), LocalError::xy(), and LocalError::yy().

Referenced by DualKalmanTrajectory::hitErrorWithAPE(), GenericProjectedRecHit2D::parametersError(), TSiTrackerMultiRecHit::parametersError(), ProjectedRecHit2D::parametersError(), TSiStripMatchedRecHit::parametersError(), TSiPixelRecHit::parametersError(), TSiStripRecHit2DLocalPos::parametersError(), TSiStripRecHit1D::parametersError(), and trajectoryToResiduals().

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 }
float xx() const
Definition: LocalError.h:19
virtual AlignmentPositionError * alignmentPositionError() const
Definition: GeomDet.h:81
GlobalError transform(const LocalError &le, const Surface &surf) const
float xy() const
Definition: LocalError.h:20
float yy() const
Definition: LocalError.h:21
const GlobalError & globalError() const
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual const BoundPlane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
void HelpertRecHit2DLocalPos::updateWithAPE ( LocalError le,
const GeomDet det 
)
static

Definition at line 7 of file HelpertRecHit2DLocalPos.cc.

References GeomDet::alignmentPositionError(), AlignmentPositionError::globalError(), GeomDet::surface(), ErrorFrameTransformer::transform(), LocalError::xx(), LocalError::xy(), and LocalError::yy().

Referenced by SiStripRecHitMatcher::match().

7  {
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 }
float xx() const
Definition: LocalError.h:19
virtual AlignmentPositionError * alignmentPositionError() const
Definition: GeomDet.h:81
GlobalError transform(const LocalError &le, const Surface &surf) const
float xy() const
Definition: LocalError.h:20
float yy() const
Definition: LocalError.h:21
const GlobalError & globalError() const
virtual const BoundPlane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37