#include <CurvedLine.h>
Definition at line 31 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.
57 std::vector<Amg::Vector3D>
errors(points.size());
◆ 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 78 of file CurvedLine.cxx.
78 {
init(points, x_and_y_errors); }
◆ chi2()
double CurvedLine::chi2 |
( |
| ) |
const |
◆ chi2PerDegreesOfFreedom()
double CurvedLine::chi2PerDegreesOfFreedom |
( |
| ) |
const |
Return chi2 / number of TrackHits - 3.
Definition at line 195 of file CurvedLine.cxx.
◆ getPointOnLine()
get the point on the line a the local z coordinate "loc_z"
Definition at line 86 of file CurvedLine.cxx.
91 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 114 of file CurvedLine.cxx.
129 return MTStraightLine(point_1, point_2 - point_1, null_vec, null_vec);
◆ init()
Definition at line 138 of file CurvedLine.cxx.
143 if (points.size() < 3) {
145 log << MSG::ERROR <<
"Class CurvedLine, method init: Not enough points given, must be at least 3 points!" <<
endmsg;
155 std::vector<SamplePoint> sample_points(points.size());
163 for (
unsigned int k = 0;
k < points.size();
k++) {
164 sample_points[
k].set_x1(points[
k].
z());
165 sample_points[
k].set_x2(points[
k].
x());
166 sample_points[
k].set_error(x_and_y_errors[
k].
x());
168 fitter.set_number_of_coefficients(2);
169 fitter.fit_parameters(sample_points, 1, sample_points.size(), &legendre);
173 for (
unsigned int k = 0;
k < points.size();
k++) {
174 sample_points[
k].set_x1(points[
k].
z());
175 sample_points[
k].set_x2(points[
k].
y());
176 sample_points[
k].set_error(x_and_y_errors[
k].
y());
178 fitter.set_number_of_coefficients(3);
179 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_Legendre
◆ m_numTrkHits
unsigned int MuonCalib::CurvedLine::m_numTrkHits {0} |
|
private |
◆ m_used_hits
The documentation for this class was generated from the following files: