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 
27 public:
39  const MagneticField * mf=nullptr,const float maxDPhi=1.6,
40  bool useRungeKutta=false, float ptMin=-1.,bool useOldGeoPropLogic=true);
41 
42  ~PropagatorWithMaterial() override;
43 
44 
45 
48 
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:
65  bool setMaxDirectionChange( float phiMax) override{
67  }
70 
80  void setMaterialLocation (const MaterialLocation location) {
81  theMaterialLocation = location;
82  }
86  }
89  return *theMEUpdator;
90  }
91 
92  const MagneticField* magneticField() const override {return field;}
93 
94 
95  PropagatorWithMaterial* clone() const override
96  {
97  return new PropagatorWithMaterial(*this);
98  }
99 
100 private:
102  bool materialAtSource() const dso_internal;
103 
104 private:
105  // Geometrical propagator
106 
109 
110 
111  // Material effects
113  typedef std::pair<TrajectoryStateOnSurface,double> TsosWP;
114  // Use material at source?
118 };
119 
120 #endif
121 
122 
void setMaterialLocation(const MaterialLocation location)
bool materialAtSource() const
Inclusion of material at the source?
defaultRKPropagator::Product rkProduct
std::pair< TrajectoryStateOnSurface, double > TsosWP
PropagationDirection
virtual bool setMaxDirectionChange(float phiMax)
Definition: Propagator.h:165
Definition: Plane.h:17
PropagatorWithMaterial(PropagationDirection dir, const float mass, const MagneticField *mf=0, const float maxDPhi=1.6, bool useRungeKutta=false, float ptMin=-1., bool useOldGeoPropLogic=true)
const Propagator & geometricalPropagator() const
Access to the geometrical propagator.
DeepCopyPointerByClone< MaterialEffectsUpdator > theMEUpdator
virtual std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &, const Surface &) const final
Definition: Propagator.cc:15
const MagneticField * magneticField() const override
DeepCopyPointerByClone< Propagator > theGeometricalPropagator
const MaterialEffectsUpdator & materialEffectsUpdator() const
Access to the MaterialEffectsUpdator.
bool setMaxDirectionChange(float phiMax) override
Limit on change in azimuthal angle.
MaterialLocation theMaterialLocation
std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const TrajectoryStateOnSurface &tsos, const Plane &plane) const override
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:53
void setPropagationDirection(PropagationDirection dir) override
Propagation direction.
#define dso_internal
PropagatorWithMaterial * clone() const override
dbl *** dir
Definition: mlp_gen.cc:35
const MagneticField * field