CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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());
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;
26  LocalTrajectoryError lte(m);
27 
28  TrajectoryStateOnSurface startingState(ltp, lte, hit.det()->specificSurface(), &field);
29 
30  return prop.propagate(startingState, plane);
31 }
float xx() const
Definition: LocalError.h:22
Definition: Plane.h:16
float xy() const
Definition: LocalError.h:23
const SurfaceType & surface() const
TrajectoryStateOnSurface propagate(const TrackingRecHit &hit, const Plane &plane, const TrajectoryStateOnSurface &ts) const
float yy() const
Definition: LocalError.h:24
const GeomDet * det() const
static std::vector< std::string > checklist lhe
const GlobalTrajectoryParameters & globalParameters() const
virtual LocalError localPositionError() const =0
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:50
const MagneticField & magneticField() const
virtual LocalPoint localPosition() const =0
const Plane & specificSurface() const
Same as surface(), kept for backward compatibility.
Definition: GeomDet.h:40