CMS 3D CMS Logo

RecHitPropagator.cc
Go to the documentation of this file.
1 #include "RecHitPropagator.h"
4 
6  const Plane& plane,
7  const TrajectoryStateOnSurface& ts) const {
8  const MagneticField& field = ts.globalParameters().magneticField();
11  TrajectoryStateOnSurface hitts = prop.propagate(tsNoErr, hit.det()->specificSurface());
12 
13  // LocalVector ldir = hit.det()->specificSurface().toLocal(ts.globalMomentum());
14  LocalVector ldir = hitts.localMomentum();
15  LocalTrajectoryParameters ltp(hit.localPosition(), ldir, ts.charge());
17  LocalError lhe = hit.localPositionError();
18  m[3][3] = lhe.xx();
19  m[3][4] = lhe.xy();
20  m[4][4] = lhe.yy();
21 
22  const double epsilon = 1.e-8; // very small errors on momentum and angle
23  m[0][0] = epsilon;
24  m[1][1] = epsilon;
25  m[2][2] = epsilon;
27 
28  TrajectoryStateOnSurface startingState(ltp, lte, hit.det()->specificSurface(), &field);
29 
30  return prop.propagate(startingState, plane);
31 }
Vector3DBase< float, LocalTag >
anyDirection
Definition: PropagationDirection.h:4
LocalError::xy
float xy() const
Definition: LocalError.h:23
RecHitPropagator.h
TrajectoryStateOnSurface::charge
TrackCharge charge() const
Definition: TrajectoryStateOnSurface.h:68
TransientTrackingRecHit.h
geometryDiff.epsilon
int epsilon
Definition: geometryDiff.py:26
LocalTrajectoryParameters
Definition: LocalTrajectoryParameters.h:25
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
LocalError::xx
float xx() const
Definition: LocalError.h:22
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:78
RecHitPropagator::propagate
TrajectoryStateOnSurface propagate(const TrackingRecHit &hit, const Plane &plane, const TrajectoryStateOnSurface &ts) const
Definition: RecHitPropagator.cc:5
LocalTrajectoryError
Definition: LocalTrajectoryError.h:20
LocalError
Definition: LocalError.h:12
AnalyticalPropagator.h
TrackingRecHit
Definition: TrackingRecHit.h:21
AnalyticalPropagator
Definition: AnalyticalPropagator.h:22
Plane
Definition: Plane.h:16
GlobalTrajectoryParameters::magneticField
const MagneticField & magneticField() const
Definition: GlobalTrajectoryParameters.h:106
TrajectoryStateOnSurface::surface
const SurfaceType & surface() const
Definition: TrajectoryStateOnSurface.h:78
TrajectoryStateOnSurface::globalParameters
const GlobalTrajectoryParameters & globalParameters() const
Definition: TrajectoryStateOnSurface.h:64
MagneticField
Definition: MagneticField.h:19
AlgebraicSymMatrix55
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
Definition: AlgebraicROOTObjects.h:23
LocalError::yy
float yy() const
Definition: LocalError.h:24
hit
Definition: SiStripHitEffFromCalibTree.cc:88
AnalyticalPropagator::propagate
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:50