CMS 3D CMS Logo

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 
16 class StraightLinePropagator final : public Propagator {
17 private:
20 
21 public:
23  : Propagator(aDir), theField(field) {}
24 
26 
29 
30  std::pair<TSOS, double> propagateWithPath(const FreeTrajectoryState& fts, const Plane& surface) const override;
31 
32  std::pair<TSOS, double> propagateWithPath(const FreeTrajectoryState& fts, const Cylinder& surface) const override;
33 
34  StraightLinePropagator* clone() const override { return new StraightLinePropagator(*this); }
35 
36  const MagneticField* magneticField() const override { return theField; }
37 
38 private:
40 
41  // compute propagated state, with errors if needed
43  const Surface& surface,
45  const GlobalPoint& x,
46  const GlobalVector& p) const;
47 
49  const Surface& surface,
51  const LocalPoint& x,
52  const LocalVector& p) const;
53 
54  // compute jacobian of transform
55  AlgebraicMatrix55 jacobian(double& s) const;
56 
57  // compute propagated x and p and path s, return true when propagation is OK
59  const FreeTrajectoryState& fts, const Cylinder& cylinder, GlobalPoint& x, GlobalVector& p, double& s) const;
60 
61  // compute propagated x and p and path s, return true when propagation is OK
63  const FreeTrajectoryState& fts, const Plane& plane, LocalPoint& x, LocalVector& p, double& s) const;
64 };
65 
66 #endif
bool propagateParametersOnCylinder(const FreeTrajectoryState &fts, const Cylinder &cylinder, GlobalPoint &x, GlobalVector &p, double &s) const
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepStd< double, 5, 5 > > AlgebraicMatrix55
PropagationDirection
std::pair< TSOS, double > propagateWithPath(const FreeTrajectoryState &fts, const Plane &surface) const override
Definition: Plane.h:16
TrajectoryStateOnSurface propagatedState(const FreeTrajectoryState &fts, const Surface &surface, const AlgebraicMatrix55 &jacobian, const GlobalPoint &x, const GlobalVector &p) const
const MagneticField * theField
virtual std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &, const Surface &) const final
Definition: Propagator.cc:10
StraightLinePropagator * clone() const override
AlgebraicMatrix55 jacobian(double &s) const
TrajectoryStateOnSurface TSOS
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:50
const MagneticField * magneticField() const override
StraightLinePropagator(const MagneticField *field, PropagationDirection aDir=alongMomentum)
bool propagateParametersOnPlane(const FreeTrajectoryState &fts, const Plane &plane, LocalPoint &x, LocalVector &p, double &s) const