CMS 3D CMS Logo

PropagatorWithMaterial.h
Go to the documentation of this file.
1 #ifndef _COMMONRECO_PROPAGATORWITHMATERIAL_H_
2 #define _COMMONRECO_PROPAGATORWITHMATERIAL_H_
3 
20 
23 
24 class MagneticField;
25 class PropagatorWithMaterial final : public Propagator {
26 public:
38  const float mass,
39  const MagneticField* mf = nullptr,
40  const float maxDPhi = 1.6,
41  bool useRungeKutta = false,
42  float ptMin = -1.,
43  bool useOldGeoPropLogic = true);
44 
45  ~PropagatorWithMaterial() override;
46 
49 
50 private:
51  std::pair<TrajectoryStateOnSurface, double> propagateWithPath(const TrajectoryStateOnSurface& tsos,
52  const Plane& plane) const override;
53 
54  std::pair<TrajectoryStateOnSurface, double> propagateWithPath(const FreeTrajectoryState& fts,
55  const Plane& plane) const override;
56 
57  std::pair<TrajectoryStateOnSurface, double> propagateWithPath(const TrajectoryStateOnSurface& tsos,
58  const Cylinder& cylinder) const override;
59 
60  std::pair<TrajectoryStateOnSurface, double> propagateWithPath(const FreeTrajectoryState& fts,
61  const Cylinder& cylinder) const override;
62 
63 public:
68 
83 
84  const MagneticField* magneticField() const override { return field; }
85 
86  PropagatorWithMaterial* clone() const override { return new PropagatorWithMaterial(*this); }
87 
88 private:
91 
92 private:
93  // Geometrical propagator
94 
97 
98  // Material effects
100  typedef std::pair<TrajectoryStateOnSurface, double> TsosWP;
101  // Use material at source?
105 };
106 
107 #endif
std::pair< TrajectoryStateOnSurface, double > TsosWP
void setMaterialLocation(const MaterialLocation location)
const Propagator & geometricalPropagator() const
Access to the geometrical propagator.
defaultRKPropagator::Product rkProduct
constexpr float ptMin
PropagatorWithMaterial(PropagationDirection dir, const float mass, const MagneticField *mf=nullptr, const float maxDPhi=1.6, bool useRungeKutta=false, float ptMin=-1., bool useOldGeoPropLogic=true)
PropagationDirection
virtual bool setMaxDirectionChange(float phiMax)
Definition: Propagator.h:151
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:50
Definition: Plane.h:16
const MaterialEffectsUpdator & materialEffectsUpdator() const
Access to the MaterialEffectsUpdator.
DeepCopyPointerByClone< MaterialEffectsUpdator > theMEUpdator
#define dso_internal
Definition: Visibility.h:13
DeepCopyPointerByClone< Propagator > theGeometricalPropagator
virtual std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &, const Surface &) const final
Definition: Propagator.cc:10
bool setMaxDirectionChange(float phiMax) override
Limit on change in azimuthal angle.
MaterialLocation theMaterialLocation
const MagneticField * magneticField() const override
void setPropagationDirection(PropagationDirection dir) override
Propagation direction.
std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const TrajectoryStateOnSurface &tsos, const Plane &plane) const override
bool materialAtSource() const
Inclusion of material at the source?
PropagatorWithMaterial * clone() const override
const MagneticField * field