CMS 3D CMS Logo

StraightLineBarrelCylinderCrossing.h
Go to the documentation of this file.
1 #ifndef StraightLineBarrelCylinderCrossing_H
2 #define StraightLineBarrelCylinderCrossing_H
3 
7 
9 
10 #include <utility>
11 
12 class Cylinder;
13 
18 public:
23  const GlobalVector& startingDir,
24  const PropagationDirection propDir);
25 
29  std::pair<bool, double> pathLength(const Cylinder& cyl) const;
30 
36  GlobalPoint position(const double s) const { return GlobalPoint(theX0 + s * theP0); }
37 
38 private:
40  std::pair<bool, double> chooseSolution(const double s1, const double s2) const;
41 
42 private:
43  //
44  // single precision is sufficient for intermediate vectors
45  //
50 
54 };
55 
56 #endif
std::pair< bool, double > pathLength(const Cylinder &cyl) const
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
PropagationDirection
std::pair< bool, double > chooseSolution(const double s1, const double s2) const
Chooses the right solution w.r.t. the propagation direction.
StraightLineBarrelCylinderCrossing(const GlobalPoint &startingPos, const GlobalVector &startingDir, const PropagationDirection propDir)