CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StraightLinePropagator.h
Go to the documentation of this file.
1 #ifndef TR_StraightLine_Propagator_H_
2 #define TR_StraightLine_Propagator_H_
3 
7 
8 class MagneticField;
9 
10 
18 
19 private:
20 
23 
24 public:
25 
28  Propagator(aDir), theField(field) {}
29 
31 
32  virtual TSOS propagate(const FreeTrajectoryState& fts,
33  const Surface& surface) const {
34  return Propagator::propagate(fts, surface);
35  }
36 
37  virtual TSOS propagate(const FreeTrajectoryState& fts,
38  const Plane& plane) const {
39  return propagateWithPath(fts,plane).first;
40  }
41 
42  virtual TSOS propagate(const FreeTrajectoryState& fts,
43  const Cylinder& cylinder) const {
44  return propagateWithPath(fts,cylinder).first;
45  }
46 
47  std::pair<TSOS,double> propagateWithPath(const FreeTrajectoryState& fts,
48  const Surface& surface) const {
49  return Propagator::propagateWithPath(fts,surface);
50  }
51 
52  std::pair<TSOS,double> propagateWithPath(const FreeTrajectoryState& fts,
53  const Plane& surface) const;
54 
55  std::pair<TSOS,double> propagateWithPath(const FreeTrajectoryState& fts,
56  const Cylinder& surface) const;
57 
58  virtual StraightLinePropagator * clone() const {
59  return new StraightLinePropagator(*this);
60  }
61 
62 
63  virtual const MagneticField* magneticField() const {return theField;}
64 
65 private:
66 
67  const MagneticField* theField;
68 
69  // compute propagated state, with errors if needed
70  TrajectoryStateOnSurface propagatedState(const FreeTrajectoryState& fts,
71  const Surface& surface,
72  const AlgebraicMatrix55& jacobian,
73  const GlobalPoint& x,
74  const GlobalVector& p) const;
75 
76  TrajectoryStateOnSurface propagatedState(const FreeTrajectoryState& fts,
77  const Surface& surface,
78  const AlgebraicMatrix55& jacobian,
79  const LocalPoint& x,
80  const LocalVector& p) const;
81 
82 
83  // compute jacobian of transform
84  AlgebraicMatrix55 jacobian(double& s) const;
85 
86  // compute propagated x and p and path s, return true when propagation is OK
87  bool propagateParametersOnCylinder(const FreeTrajectoryState& fts,
88  const Cylinder& cylinder,
89  GlobalPoint& x,
90  GlobalVector& p,
91  double& s) const;
92 
93  // compute propagated x and p and path s, return true when propagation is OK
94  bool propagateParametersOnPlane(const FreeTrajectoryState& fts,
95  const Plane& plane,
96  LocalPoint& x,
97  LocalVector& p,
98  double& s) const;
99 
100 };
101 
102 #endif
PropagationDirection
virtual StraightLinePropagator * clone() const
Definition: Plane.h:17
tuple field
Definition: statics.py:62
virtual std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &, const Surface &) const
Definition: Propagator.cc:77
std::pair< TSOS, double > propagateWithPath(const FreeTrajectoryState &fts, const Surface &surface) const
virtual TSOS propagate(const FreeTrajectoryState &fts, const Plane &plane) const
virtual const MagneticField * magneticField() const
virtual TrajectoryStateOnSurface propagate(const FreeTrajectoryState &, const Surface &) const
Definition: Propagator.cc:12
TrajectoryStateOnSurface TSOS
StraightLinePropagator(const MagneticField *field, PropagationDirection aDir=alongMomentum)
virtual TSOS propagate(const FreeTrajectoryState &fts, const Surface &surface) const
virtual TSOS propagate(const FreeTrajectoryState &fts, const Cylinder &cylinder) const
Definition: DDAxes.h:10
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepStd< double, 5, 5 > > AlgebraicMatrix55
FreeTrajectoryState FTS
Unlimited (trivial) bounds.