TrackingTools
GeomPropagators
interface
StraightLinePlaneCrossing.h
Go to the documentation of this file.
1
#ifndef StraightLinePlaneCrossing_H_
2
#define StraightLinePlaneCrossing_H_
3
4
#include "
DataFormats/GeometryVector/interface/Basic3DVector.h
"
5
#include "
DataFormats/TrajectorySeed/interface/PropagationDirection.h
"
6
7
#include <utility>
8
9
class
Plane
;
10
14
class
StraightLinePlaneCrossing
{
15
public
:
21
using
PositionType
=
Basic3DVector<float>
;
22
using
DirectionType
=
Basic3DVector<float>
;
23
24
public
:
27
StraightLinePlaneCrossing
(
const
PositionType
&
point
,
28
const
DirectionType
& momentum,
29
const
PropagationDirection
propDir =
alongMomentum
)
30
:
theX0
(
point
),
theP0
(momentum.
unit
()),
thePropDir
(propDir) {}
31
32
// destructor
33
~StraightLinePlaneCrossing
() {}
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
53
const
PositionType
theX0
;
54
const
PositionType
theP0
;
55
const
PropagationDirection
thePropDir
;
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
Generated for CMSSW Reference Manual by
1.8.16