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 
6 
15 {
16 public:
19 
21 
22  virtual TrajectoryStateClosestToPoint operator() (const FTS& originalFTS,
23  const GlobalPoint& referencePoint) const = 0;
24 
25  virtual TrajectoryStateClosestToPoint operator() (const TSOS& originalTSOS,
26  const GlobalPoint& referencePoint) const = 0;
27 
28  bool positionEqual(const GlobalPoint& ptB, const GlobalPoint& ptA) const
29  {
30  if ((ptA.x() == ptB.x()) && (ptA.y() == ptB.y()) && (ptA.z() == ptB.z()))
31  return true;
32  else return false;
33  }
34 
35 protected:
36 
38  const GlobalPoint& referencePoint) const
39  {return TrajectoryStateClosestToPoint(originalFTS, referencePoint);}
40 
41 
42 };
43 #endif
TrajectoryStateClosestToPoint constructTSCP(const FTS &originalFTS, const GlobalPoint &referencePoint) const
T y() const
Definition: PV3DBase.h:62
bool positionEqual(const GlobalPoint &ptB, const GlobalPoint &ptA) const
T z() const
Definition: PV3DBase.h:63
virtual TrajectoryStateClosestToPoint operator()(const FTS &originalFTS, const GlobalPoint &referencePoint) const =0
T x() const
Definition: PV3DBase.h:61