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 
19 public:
24  const GlobalVector& startingDir,
25  const PropagationDirection propDir);
26 
30  std::pair<bool,double> pathLength (const Cylinder& cyl) const;
31 
37  GlobalPoint position (const double s) const { return GlobalPoint(theX0+s*theP0);}
38 
39 private:
41  std::pair<bool,double> chooseSolution (const double s1, const double s2) const;
42 
43 private:
44  //
45  // single precision is sufficient for intermediate vectors
46  //
51 
52  const PositionType theX0;
53  const DirectionType theP0;
55 };
56 
57 #endif
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
std::pair< bool, double > chooseSolution(const double s1, const double s2) const
Chooses the right solution w.r.t. the propagation direction.
PropagationDirection
StraightLineBarrelCylinderCrossing(const GlobalPoint &startingPos, const GlobalVector &startingDir, const PropagationDirection propDir)
std::pair< bool, double > pathLength(const Cylinder &cyl) const