CMS 3D CMS Logo

TrajectoryStateClosestToPointBuilder.h
Go to the documentation of this file.
1 #ifndef TrajectoryStateClosestToPointBuilder_H
2 #define TrajectoryStateClosestToPointBuilder_H
3 
7 
16 public:
19 
21 
22  virtual TrajectoryStateClosestToPoint operator()(const FTS& originalFTS, const GlobalPoint& referencePoint) const = 0;
23 
24  virtual TrajectoryStateClosestToPoint operator()(const TSOS& originalTSOS,
25  const GlobalPoint& referencePoint) const = 0;
26 
27  static bool positionEqual(const GlobalPoint& ptB, const GlobalPoint& ptA) { return ptA == ptB; }
28 
29 protected:
30  static TrajectoryStateClosestToPoint constructTSCP(const FTS& originalFTS, const GlobalPoint& referencePoint) {
31  return TrajectoryStateClosestToPoint(originalFTS, referencePoint);
32  }
33 };
34 #endif
static TrajectoryStateClosestToPoint constructTSCP(const FTS &originalFTS, const GlobalPoint &referencePoint)
static bool positionEqual(const GlobalPoint &ptB, const GlobalPoint &ptA)
virtual TrajectoryStateClosestToPoint operator()(const FTS &originalFTS, const GlobalPoint &referencePoint) const =0