test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrajectoryStateClosestToPointBuilder.h
Go to the documentation of this file.
1 #ifndef TrajectoryStateClosestToPointBuilder_H
2 #define TrajectoryStateClosestToPointBuilder_H
3 
7 
16 {
17 public:
20 
22 
23  virtual TrajectoryStateClosestToPoint operator() (const FTS& originalFTS,
24  const GlobalPoint& referencePoint) const = 0;
25 
26  virtual TrajectoryStateClosestToPoint operator() (const TSOS& originalTSOS,
27  const GlobalPoint& referencePoint) const = 0;
28 
29  static bool positionEqual(const GlobalPoint& ptB, const GlobalPoint& ptA) {
30  return ptA==ptB;
31  }
32 
33 protected:
34 
35  static TrajectoryStateClosestToPoint constructTSCP(const FTS& originalFTS,
36  const GlobalPoint& referencePoint)
37  {return TrajectoryStateClosestToPoint(originalFTS, referencePoint);}
38 
39 
40 };
41 #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