CMS 3D CMS Logo

KFStrip1DUpdator.cc
Go to the documentation of this file.
3 
5  double pzSign = aTsos.localParameters().pzSign();
6 
7  Strip1DMeasurementTransformator myTrafo(aTsos, aHit);
8 
9  double m = myTrafo.hitParameters();
11  double px = myTrafo.projectedTrajectoryParameters();
12 
14  double V = myTrafo.hitError();
15  const AlgebraicSymMatrix55& C(myTrafo.trajectoryError());
16  double pC = myTrafo.projectedTrajectoryError();
17 
18  double R = 1. / (V + pC);
19 
20  // Compute Kalman gain matrix
21  AlgebraicMatrix51 K(R * (C * ROOT::Math::Transpose(H)));
22 
23  // Compute local filtered state vector
24  AlgebraicVector5 fsv = x + K.Col(0) * (m - px);
25 
26  // Compute covariance matrix of local filtered state vector
28  AlgebraicMatrix55 M = I - K * H;
29  AlgebraicSymMatrix55 fse = ROOT::Math::Similarity(M, C) + ROOT::Math::Similarity(K, AlgebraicSymMatrix11(V));
30  // AlgebraicMatrix M((I - K * H)*C); // already commented when CLHEP was in use
31  // AlgebraicSymMatrix fse(5,0); fse.assign(M); // already commented when CLHEP was in use
32 
33  return TSOS(
34  LTP(fsv, pzSign), LTE(fse), aTsos.surface(), &(aTsos.globalParameters().magneticField()), aTsos.surfaceSide());
35 }
Strip1DMeasurementTransformator::hitParameters
double hitParameters() const
Definition: Strip1DMeasurementTransformator.cc:17
DDAxes::x
Strip1DMeasurementTransformator::trajectoryParameters
AV5 trajectoryParameters() const
Definition: Strip1DMeasurementTransformator.cc:21
Strip1DMeasurementTransformator::hitError
double hitError() const
Definition: Strip1DMeasurementTransformator.cc:29
AlgebraicMatrixID
ROOT::Math::SMatrixIdentity AlgebraicMatrixID
Definition: AlgebraicROOTObjects.h:72
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
Strip1DMeasurementTransformator
Definition: Strip1DMeasurementTransformator.h:17
AlgebraicMatrix55
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepStd< double, 5, 5 > > AlgebraicMatrix55
Definition: AlgebraicROOTObjects.h:55
Exhume::I
const std::complex< double > I
Definition: I.h:8
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:79
AlgebraicSymMatrix11
ROOT::Math::SMatrix< double, 1, 1, ROOT::Math::MatRepSym< double, 1 > > AlgebraicSymMatrix11
Definition: AlgebraicROOTObjects.h:19
TrajectoryStateOnSurface::localParameters
const LocalTrajectoryParameters & localParameters() const
Definition: TrajectoryStateOnSurface.h:73
LocalTrajectoryParameters::pzSign
float pzSign() const
Sign of the z-component of the momentum in the local frame.
Definition: LocalTrajectoryParameters.h:146
cms::cuda::V
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t V
Definition: HistoContainer.h:51
Strip1DMeasurementTransformator::projectedTrajectoryError
double projectedTrajectoryError() const
Definition: Strip1DMeasurementTransformator.cc:37
Strip1DMeasurementTransformator::projectionMatrix
AM15 projectionMatrix() const
Definition: Strip1DMeasurementTransformator.cc:41
AlgebraicVector5
ROOT::Math::SVector< double, 5 > AlgebraicVector5
Definition: AlgebraicROOTObjects.h:14
Strip1DMeasurementTransformator.h
KFStrip1DUpdator::LTE
LocalTrajectoryError LTE
Definition: KFStrip1DUpdator.h:17
TrackingRecHit
Definition: TrackingRecHit.h:21
KFStrip1DUpdator::TSOS
TrajectoryStateOnSurface TSOS
Definition: KFStrip1DUpdator.h:15
multPhiCorr_741_25nsDY_cfi.px
px
Definition: multPhiCorr_741_25nsDY_cfi.py:10
KFStrip1DUpdator::LTP
LocalTrajectoryParameters LTP
Definition: KFStrip1DUpdator.h:16
AlgebraicMatrix15
ROOT::Math::SMatrix< double, 1, 5, ROOT::Math::MatRepStd< double, 1, 5 > > AlgebraicMatrix15
Definition: AlgebraicROOTObjects.h:31
gen::C
C
Definition: PomwigHadronizer.cc:78
Strip1DMeasurementTransformator::projectedTrajectoryParameters
double projectedTrajectoryParameters() const
Definition: Strip1DMeasurementTransformator.cc:25
KFStrip1DUpdator.h
data-class-funcs.H
H
Definition: data-class-funcs.py:33
GlobalTrajectoryParameters::magneticField
const MagneticField & magneticField() const
Definition: GlobalTrajectoryParameters.h:106
TrajectoryStateOnSurface::surface
const SurfaceType & surface() const
Definition: TrajectoryStateOnSurface.h:78
Strip1DMeasurementTransformator::trajectoryError
const ASM55 & trajectoryError() const
Definition: Strip1DMeasurementTransformator.cc:33
TrajectoryStateOnSurface::globalParameters
const GlobalTrajectoryParameters & globalParameters() const
Definition: TrajectoryStateOnSurface.h:64
AlgebraicMatrix51
ROOT::Math::SMatrix< double, 5, 1, ROOT::Math::MatRepStd< double, 5, 1 > > AlgebraicMatrix51
Definition: AlgebraicROOTObjects.h:51
AlgebraicSymMatrix55
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
Definition: AlgebraicROOTObjects.h:23
TrajectoryStateOnSurface::surfaceSide
SurfaceSide surfaceSide() const
Position relative to material, defined relative to momentum vector.
Definition: TrajectoryStateOnSurface.h:89
dttmaxenums::R
Definition: DTTMax.h:29
KFStrip1DUpdator::update
TSOS update(const TSOS &aTsos, const TrackingRecHit &aHit) const override
Definition: KFStrip1DUpdator.cc:4