CMS 3D CMS Logo

Static Public Member Functions

HelpertRecHit2DLocalPos Class Reference

#include <HelpertRecHit2DLocalPos.h>

List of all members.

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.
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 >::getKfComponents().

{
  hit2dLocalPos.getKfComponents(holder);
  LocalError lape = det.localAlignmentError();
  if (lape.valid()) {
    AlgebraicSymMatrix22 &m = holder.errors<2>();
    m(0, 0) += lape.xx();
    m(0, 1) += lape.xy();
    m(1, 1) += lape.yy();
  }
}
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().

{
  hit1D.getKfComponents(holder);
  LocalError lape =det.localAlignmentError();
  if (lape.valid()) {
    AlgebraicSymMatrix11 &m = holder.errors<1>();
    m(0, 0) += lape.xx();
  }
}
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 >::parametersError(), and trajectoryToResiduals().

{
  AlgebraicSymMatrix m(2);
  LocalError lape = det.localAlignmentError();
  if (lape.valid()) {
    m[0][0] = le.xx()+lape.xx();
    m[0][1] = le.xy()+lape.xy();
    m[1][1] = le.yy()+lape.yy();
  } else {
    m[0][0] = le.xx();
    m[0][1] = le.xy();
    m[1][1] = le.yy();
  };
  return m;
}
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::match().

{
  LocalError lape = det.localAlignmentError();
  if (lape.valid())
    le = LocalError(le.xx()+lape.xx(),
                    le.xy()+lape.xy(),
                    le.yy()+lape.yy()
                    );
}