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 35 of file HelpertRecHit2DLocalPos.cc.

References KfComponentsHolder::errors(), TrackingRecHit::getKfComponents(), GeomDet::localAlignmentError(), m, LocalError::valid(), LocalError::xx(), LocalError::xy(), and LocalError::yy().

Referenced by GCC11_FINAL< T, TOPO >::getKfComponents().

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 }
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
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
AlgebraicROOTObject< D, D >::SymMatrix & errors()
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 50 of file HelpertRecHit2DLocalPos.cc.

References KfComponentsHolder::errors(), GeomDet::localAlignmentError(), m, LocalError::valid(), and LocalError::xx().

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
LocalError const & localAlignmentError() const
Return local alligment error.
Definition: GeomDet.h:78
AlgebraicROOTObject< D, D >::SymMatrix & errors()
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 17 of file HelpertRecHit2DLocalPos.cc.

References GeomDet::localAlignmentError(), m, LocalError::valid(), LocalError::xx(), LocalError::xy(), and LocalError::yy().

Referenced by GCC11_FINAL< T, TOPO >::parametersError(), and trajectoryToResiduals().

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 }
bool valid() const
Definition: LocalError.h:21
float xx() const
Definition: LocalError.h:24
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
void HelpertRecHit2DLocalPos::updateWithAPE ( LocalError le,
const GeomDet det 
)
static

Definition at line 7 of file HelpertRecHit2DLocalPos.cc.

References GeomDet::localAlignmentError(), LocalError::valid(), LocalError::xx(), LocalError::xy(), and LocalError::yy().

Referenced by SiStripRecHitMatcher::doubleMatch(), and SiStripRecHitMatcher::match().

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 }
bool valid() const
Definition: LocalError.h:21
float xx() const
Definition: LocalError.h:24
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