#include <PRD_TruthTrajectorySelectorID.h>
◆ ThreePointCircle() [1/2]
| ThreePointCircle::ThreePointCircle |
( |
const std::vector< Amg::Vector3D > & | vecPoints | ) |
|
The constructor from three points.
Definition at line 42 of file PRD_TruthTrajectorySelectorID.cxx.
42 :
44{
45 if (posVec.size() <3)
46 std::cout << "[WARNING] not enough points" << std::endl;
47 else
49}
Amg::Translation3D * m_translation
void constructCircle(const Amg::Vector3D &, const Amg::Vector3D &, const Amg::Vector3D &)
◆ ~ThreePointCircle()
| ThreePointCircle::~ThreePointCircle |
( |
| ) |
|
◆ ThreePointCircle() [2/2]
◆ center()
◆ constructCircle()
Definition at line 56 of file PRD_TruthTrajectorySelectorID.cxx.
58 {
59
60
63
64 double bx =
p1.x()+translationX;
65 double by =
p1.y()+translationY;
66 double cx =
p2.x()+translationX;
67 double cy =
p2.y()+translationY;
68 double dx =
p3.x()+translationX;
69 double dy =
p3.y()+translationY;
70
72
73
74 double bc = (
bx*
bx +
by*
by - temp)/2.0;
77
78
79
80
81
83
84
87
88
90 m_radius = sqrt((cRx-bx)*(cRx-bx)+(cRy-by)*(cRy-by));
92
93
95
96
97 double theta = 1./3*(
p1.theta() +
p2.theta() +
p3.theta());
98 double r1 =
p1.perp();
102
104
105
107
108
112
113
116
117
119
120
121 m_phi0 = directionOne.dot(toFirstMeas) > 0. ? directionOne.phi() : directionTwo.phi();
122
123
126 double signD0 = pocaDir.cross(momDir).z() > 0. ? 1. : -1.;
128
129
131
132}
Scalar theta() const
theta method
Eigen::Matrix< double, 2, 1 > Vector2D
Eigen::Matrix< double, 3, 1 > Vector3D
◆ d0()
| double ThreePointCircle::d0 |
( |
| ) |
const |
|
inline |
◆ eta()
| double ThreePointCircle::eta |
( |
| ) |
const |
|
inline |
◆ frameTranslation()
◆ operator=()
◆ phi0()
| double ThreePointCircle::phi0 |
( |
| ) |
const |
|
inline |
◆ pT()
| double ThreePointCircle::pT |
( |
| ) |
const |
|
inline |
◆ radius()
| double ThreePointCircle::radius |
( |
| ) |
const |
|
inline |
◆ z0()
| double ThreePointCircle::z0 |
( |
| ) |
const |
|
inline |
◆ m_center
◆ m_d0
| double ThreePointCircle::m_d0 |
|
private |
◆ m_eta
| double ThreePointCircle::m_eta |
|
private |
◆ m_phi0
| double ThreePointCircle::m_phi0 |
|
private |
◆ m_pt
| double ThreePointCircle::m_pt |
|
private |
◆ m_radius
| double ThreePointCircle::m_radius {} |
|
private |
◆ m_translation
◆ m_z0
| double ThreePointCircle::m_z0 |
|
private |
The documentation for this class was generated from the following files: