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
Vector3DBase
Definition: Vector3DBase.h:8
StraightLineBarrelCylinderCrossing::PositionType2D
Basic2DVector< float > PositionType2D
Definition: StraightLineBarrelCylinderCrossing.h:48
StraightLineBarrelCylinderCrossing::chooseSolution
std::pair< bool, double > chooseSolution(const double s1, const double s2) const
Chooses the right solution w.r.t. the propagation direction.
Definition: StraightLineBarrelCylinderCrossing.cc:35
StraightLineBarrelCylinderCrossing::PositionType
GlobalPoint PositionType
Definition: StraightLineBarrelCylinderCrossing.h:46
StraightLineBarrelCylinderCrossing::theP0
const DirectionType theP0
Definition: StraightLineBarrelCylinderCrossing.h:52
indexGen.s2
s2
Definition: indexGen.py:107
StraightLineBarrelCylinderCrossing::DirectionType2D
Basic2DVector< float > DirectionType2D
Definition: StraightLineBarrelCylinderCrossing.h:49
alignCSCRings.s
s
Definition: alignCSCRings.py:92
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
Point3DBase< float, GlobalTag >
StraightLineBarrelCylinderCrossing::position
GlobalPoint position(const double s) const
Definition: StraightLineBarrelCylinderCrossing.h:36
Basic2DVector< float >
StraightLineBarrelCylinderCrossing::theX0
const PositionType theX0
Definition: StraightLineBarrelCylinderCrossing.h:51
PropagationDirection.h
StraightLineBarrelCylinderCrossing::thePropDir
const PropagationDirection thePropDir
Definition: StraightLineBarrelCylinderCrossing.h:53
StraightLineBarrelCylinderCrossing::pathLength
std::pair< bool, double > pathLength(const Cylinder &cyl) const
Definition: StraightLineBarrelCylinderCrossing.cc:12
Basic2DVector.h
PropagationDirection
PropagationDirection
Definition: PropagationDirection.h:4
StraightLineBarrelCylinderCrossing::StraightLineBarrelCylinderCrossing
StraightLineBarrelCylinderCrossing(const GlobalPoint &startingPos, const GlobalVector &startingDir, const PropagationDirection propDir)
Definition: StraightLineBarrelCylinderCrossing.cc:7
GlobalVector.h
Cylinder
Definition: Cylinder.h:19
StraightLineBarrelCylinderCrossing::DirectionType
GlobalVector DirectionType
Definition: StraightLineBarrelCylinderCrossing.h:47
StraightLineBarrelCylinderCrossing
Definition: StraightLineBarrelCylinderCrossing.h:17
GlobalPoint.h