Class implementing a comparison function for sorting MeasurementBase objects.
More...
#include <MeasurementBaseComparisonFunction.h>
Class implementing a comparison function for sorting MeasurementBase objects.
Definition at line 39 of file MeasurementBaseComparisonFunction.h.
◆ MeasurementBaseComparisonFunction() [1/4]
Trk::MeasurementBaseComparisonFunction::MeasurementBaseComparisonFunction |
( |
| ) |
|
|
delete |
◆ ~MeasurementBaseComparisonFunction()
Trk::MeasurementBaseComparisonFunction::~MeasurementBaseComparisonFunction |
( |
| ) |
|
|
default |
◆ MeasurementBaseComparisonFunction() [2/4]
◆ MeasurementBaseComparisonFunction() [3/4]
◆ MeasurementBaseComparisonFunction() [4/4]
◆ operator()()
The comparison function defining in what case a Measurement is 'smaller' than a second one.
Definition at line 65 of file MeasurementBaseComparisonFunction.h.
100 throw std::runtime_error(
101 "MeasurementBaseComparisonFunction: surface type error for Sf1!");
136 throw std::runtime_error(
137 "MeasurementBaseComparisonFunction: surface type error for Sf2!");
140 return path1 < path2;
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pathIntersectWithCylinder()
Definition at line 183 of file MeasurementBaseComparisonFunction.h.
202 double k = (direc.y()) / (direc.x());
203 double d = (point2.x() * point1.y() - point1.x() * point2.y()) /
204 (point2.x() - point1.x());
211 double a = 1 +
k *
k;
212 double p = 2 *
k *
d;
213 double q =
d *
d -
R *
R;
224 double t1 = (
first - point1.x()) / direc.x();
225 double t2 = (
second - point1.x()) / direc.x();
230 if (dist1raw.mag() < dist2raw.mag()) {
◆ pathIntersectWithDisc()
double Trk::MeasurementBaseComparisonFunction::pathIntersectWithDisc |
( |
const Trk::DiscSurface & |
dsf | ) |
const |
|
inlineprivate |
◆ pathIntersectWithLine() [1/2]
◆ pathIntersectWithLine() [2/2]
◆ pathIntersectWithPlane()
◆ m_direction
Amg::Vector3D Trk::MeasurementBaseComparisonFunction::m_direction |
|
private |
◆ m_point
The documentation for this class was generated from the following file: