File indexing completed on 2024-04-06 12:31:27
0001 #ifndef AnalyticalImpactPointExtrapolator_h_
0002 #define AnalyticalImpactPointExtrapolator_h_
0003
0004 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
0005 #include "DataFormats/GeometryVector/interface/GlobalVector.h"
0006
0007 #include "DataFormats/GeometryCommonDetAlgo/interface/DeepCopyPointerByClone.h"
0008 #include "TrackingTools/GeomPropagators/interface/Propagator.h"
0009
0010 class FreeTrajectoryState;
0011 class TrajectoryStateOnSurface;
0012 class IterativeHelixExtrapolatorToLine;
0013 class MagneticField;
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 class AnalyticalImpactPointExtrapolator {
0027 public:
0028
0029 AnalyticalImpactPointExtrapolator(const MagneticField* field);
0030
0031
0032 AnalyticalImpactPointExtrapolator(const Propagator&, const MagneticField*);
0033
0034
0035 TrajectoryStateOnSurface extrapolate(const FreeTrajectoryState& fts, const GlobalPoint& vtx) const;
0036
0037 TrajectoryStateOnSurface extrapolate(const TrajectoryStateOnSurface tsos, const GlobalPoint& vtx) const;
0038
0039 private:
0040
0041 TrajectoryStateOnSurface extrapolateFullState(const TrajectoryStateOnSurface tsos, const GlobalPoint& vertex) const;
0042
0043 TrajectoryStateOnSurface extrapolateSingleState(const FreeTrajectoryState& fts, const GlobalPoint& vertex) const;
0044
0045 bool propagateWithHelix(const IterativeHelixExtrapolatorToLine& extrapolator,
0046 const GlobalPoint& vertex,
0047 GlobalPoint& x,
0048 GlobalVector& p,
0049 double& s) const;
0050
0051 private:
0052 DeepCopyPointerByClone<Propagator> thePropagator;
0053 const MagneticField* theField;
0054 };
0055
0056 #endif