CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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;
26 
27 public:
39  const MagneticField * mf=0,const float maxDPhi=1.6,
40  bool useRungeKutta=false, float ptMin=-1.,bool useOldGeoPropLogic=true);
41 
42  virtual ~PropagatorWithMaterial();
43 
44 
45 
48 
49 
50 private:
51  virtual std::pair<TrajectoryStateOnSurface,double> propagateWithPath (const TrajectoryStateOnSurface& tsos,
52  const Plane& plane) const override;
53 
54  virtual std::pair<TrajectoryStateOnSurface,double> propagateWithPath (const FreeTrajectoryState& fts,
55  const Plane& plane) const override;
56 
57  virtual std::pair<TrajectoryStateOnSurface,double> propagateWithPath (const TrajectoryStateOnSurface& tsos,
58  const Cylinder& cylinder) const override;
59 
60  virtual std::pair<TrajectoryStateOnSurface,double> propagateWithPath (const FreeTrajectoryState& fts,
61  const Cylinder& cylinder) const override;
62 
63 public:
65  virtual bool setMaxDirectionChange( float phiMax) {
66  return theGeometricalPropagator->setMaxDirectionChange(phiMax);
67  }
69  virtual void setPropagationDirection (PropagationDirection dir) override;
70 
71  enum MaterialLocation {atSource, atDestination, fromDirection};
80  void setMaterialLocation (const MaterialLocation location) {
81  theMaterialLocation = location;
82  }
85  return *theGeometricalPropagator;
86  }
89  return *theMEUpdator;
90  }
91 
92  virtual const MagneticField* magneticField() const {return field;}
93 
94 
95  virtual PropagatorWithMaterial* clone() const
96  {
97  return new PropagatorWithMaterial(*this);
98  }
99 
100 private:
102  bool materialAtSource() const dso_internal;
103 
104 private:
105  // Geometrical propagator
106 
107  defaultRKPropagator::Product rkProduct;
108  DeepCopyPointerByClone<Propagator> theGeometricalPropagator;
109 
110 
111  // Material effects
113  typedef std::pair<TrajectoryStateOnSurface,double> TsosWP;
114  // Use material at source?
115  MaterialLocation theMaterialLocation;
117  bool useRungeKutta_;
118 };
119 
120 #endif
121 
122 
std::pair< TrajectoryStateOnSurface, double > TsosWP
const Propagator & geometricalPropagator() const
Access to the geometrical propagator.
PropagationDirection
Definition: Plane.h:17
void setMaterialLocation(const MaterialLocation location)
virtual bool setMaxDirectionChange(float phiMax)
Limit on change in azimuthal angle.
#define dso_internal
Definition: Visibility.h:13
virtual const MagneticField * magneticField() const
virtual std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &, const Surface &) const final
Definition: Propagator.cc:15
virtual PropagatorWithMaterial * clone() const
const MaterialEffectsUpdator & materialEffectsUpdator() const
Access to the MaterialEffectsUpdator.
string const
Definition: compareJSON.py:14
TrajectoryStateOnSurface propagate(STA const &state, SUR const &surface) const
Definition: Propagator.h:56
#define private
Definition: FWFileEntry.h:17
dbl *** dir
Definition: mlp_gen.cc:35
Unlimited (trivial) bounds.