#include <CurvedLine.h>
Definition at line 30 of file CurvedLine.h.
◆ MdtHitPtr
◆ MdtHitVec
◆ CurvedLine() [1/3]
CurvedLine::CurvedLine |
( |
| ) |
|
Default constructor: a straight line through (0,0,0) pointing in in the local x direction of the chambers is created.
Definition at line 20 of file CurvedLine.cxx.
25 std::vector<Amg::Vector3D>
points(3);
26 std::vector<Amg::Vector3D>
errors(3);
◆ CurvedLine() [2/3]
Constructor.
- Parameters
-
points | A straight line in the xz and a parabolic line in the yz plane is fitter through the given points. All points get equal weight. |
Definition at line 52 of file CurvedLine.cxx.
◆ CurvedLine() [3/3]
Constructor.
- Parameters
-
points | A straight line in the xz and a parabolic line in the yz plane is fitter through the given points. |
x_and_y_errors | Errors of the x and y coordinates of the given points |
Definition at line 72 of file CurvedLine.cxx.
◆ chi2()
double CurvedLine::chi2 |
( |
| ) |
const |
◆ chi2PerDegreesOfFreedom()
double CurvedLine::chi2PerDegreesOfFreedom |
( |
| ) |
const |
Return chi2 / number of TrackHits - 3.
Definition at line 186 of file CurvedLine.cxx.
◆ getPointOnLine()
get the point on the line a the local z coordinate "loc_z"
Definition at line 80 of file CurvedLine.cxx.
85 double loc_x{0.0}, loc_y{0.0};
◆ getTangent()
get the tangent to the line a the local z coordinate "loc_z"
Definition at line 112 of file CurvedLine.cxx.
127 return MTStraightLine(point_1, point_2 - point_1, null_vec, null_vec);
◆ init()
Definition at line 136 of file CurvedLine.cxx.
143 log << MSG::ERROR <<
"Class CurvedLine, method init: Not enough points given, must be at least 3 points!" <<
endmsg;
153 std::vector<SamplePoint> sample_points(
points.size());
161 for (
unsigned int k = 0;
k <
points.size();
k++) {
164 sample_points[
k].set_error(x_and_y_errors[
k].
x());
166 fitter.set_number_of_coefficients(2);
167 fitter.fit_parameters(sample_points, 1, sample_points.size(), legendre);
171 for (
unsigned int k = 0;
k <
points.size();
k++) {
174 sample_points[
k].set_error(x_and_y_errors[
k].
y());
176 fitter.set_number_of_coefficients(3);
177 fitter.fit_parameters(sample_points, 1, sample_points.size(), legendre);
◆ numberOfTrackHits()
unsigned int CurvedLine::numberOfTrackHits |
( |
| ) |
const |
◆ setChi2()
void CurvedLine::setChi2 |
( |
double |
chi2 | ) |
|
◆ setNumberOfTrackHits()
void CurvedLine::setNumberOfTrackHits |
( |
unsigned int |
n_hits | ) |
|
◆ setUsedHits()
◆ trackHits()
◆ m_chi2
double MuonCalib::CurvedLine::m_chi2 {-1} |
|
private |
◆ m_coeff_xz
◆ m_coeff_yz
◆ m_numTrkHits
unsigned int MuonCalib::CurvedLine::m_numTrkHits {0} |
|
private |
◆ m_used_hits
The documentation for this class was generated from the following files: