CMS 3D CMS Logo

StraightLinePlaneCrossing.h
Go to the documentation of this file.
1 #ifndef StraightLinePlaneCrossing_H_
2 #define StraightLinePlaneCrossing_H_
3 
6 
7 #include <utility>
8 
9 class Plane;
10 
15 public:
23 
24 public:
28  const DirectionType& momentum,
29  const PropagationDirection propDir = alongMomentum)
30  : theX0(point), theP0(momentum.unit()), thePropDir(propDir) {}
31 
32  // destructor
34 
38  std::pair<bool, double> pathLength(const Plane& plane) const;
39 
42  PositionType position(float s) const { return PositionType(theX0 + s * theP0); }
43 
46  std::pair<bool, PositionType> position(const Plane& plane) const;
47 
48 private:
49  //
50  // single precision vectors sufficient for internal use
51  //
52 
56 };
57 
58 #endif
StraightLinePlaneCrossing::theX0
const PositionType theX0
Definition: StraightLinePlaneCrossing.h:53
Basic3DVector.h
StraightLinePlaneCrossing::~StraightLinePlaneCrossing
~StraightLinePlaneCrossing()
Definition: StraightLinePlaneCrossing.h:33
StraightLinePlaneCrossing::thePropDir
const PropagationDirection thePropDir
Definition: StraightLinePlaneCrossing.h:55
alignCSCRings.s
s
Definition: alignCSCRings.py:92
StraightLinePlaneCrossing::PositionType
Basic3DVector< float > PositionType
Definition: StraightLinePlaneCrossing.h:21
StraightLinePlaneCrossing::StraightLinePlaneCrossing
StraightLinePlaneCrossing(const PositionType &point, const DirectionType &momentum, const PropagationDirection propDir=alongMomentum)
Definition: StraightLinePlaneCrossing.h:27
PropagationDirection.h
unit
Basic3DVector unit() const
Definition: Basic3DVectorLD.h:162
PropagationDirection
PropagationDirection
Definition: PropagationDirection.h:4
Plane
Definition: Plane.h:16
StraightLinePlaneCrossing::position
PositionType position(float s) const
Definition: StraightLinePlaneCrossing.h:42
point
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
StraightLinePlaneCrossing::pathLength
std::pair< bool, double > pathLength(const Plane &plane) const
Definition: StraightLinePlaneCrossing.cc:8
StraightLinePlaneCrossing
Definition: StraightLinePlaneCrossing.h:14
alongMomentum
Definition: PropagationDirection.h:4
Basic3DVector< float >
StraightLinePlaneCrossing::theP0
const PositionType theP0
Definition: StraightLinePlaneCrossing.h:54