ATLAS Offline Software
|
#include <MTStraightLine.h>
Public Types | |
using | MdtHitVec = MuonCalibSegment::MdtHitVec |
using | MdtHitPtr = MuonCalibSegment::MdtHitPtr |
Public Member Functions | |
MTStraightLine () | |
Default constructor: all internal parameters of the straight line are set to 0. More... | |
MTStraightLine (const Amg::Vector3D &r_position, const Amg::Vector3D &r_direction, const Amg::Vector3D &r_position_error, const Amg::Vector3D &r_direction_error) | |
Constructor: r_position: position vector of the straight line; r_direction: direction vector of the straight line; r_position_error: error on the position vector; r_direction_error: error on the direction vector. More... | |
MTStraightLine (const double r_a_x1, const double r_b_x1, const double r_a_x2, const double r_b_x2, const double r_a_x1_err, const double r_b_x1_err, const double r_a_x2_err, const double r_b_x2_err) | |
Coordinates: x1, x2, x3. More... | |
Amg::Vector3D | positionVector () const |
get the position vector of the straight line More... | |
Amg::Vector3D | directionVector () const |
get the direction vector of the straight line More... | |
Amg::Vector3D | positionError () const |
get the error on the position vector of the straight line More... | |
Amg::Vector3D | directionError () const |
get the error on the direction vector of the straight line More... | |
double | a_x1 () const |
get the slope of the straight line in the x1-x3 plane More... | |
double | a_x1_error () const |
get the error on the slope of the straight line in the x1-x3 plane More... | |
double | b_x1 () const |
get the intercept of the straight line in the x1-x3 plane More... | |
double | b_x1_error () const |
get the error on the intercept of the straight line in the x1-x3 plane More... | |
double | a_x2 () const |
get the slope of the straight line in the x2-x3 plane More... | |
double | a_x2_error () const |
get the error on the slope of the straight line in the x2-x3 plane More... | |
double | b_x2 () const |
get the intercept of the straight line in the x2-x3 plane More... | |
double | b_x2_error () const |
get the slope of the intercept of the straight line in the x2-x3 plane More... | |
Amg::Vector3D | pointOnLine (const double lambda) const |
get the point on the line for the given scale factor lambda, point=position_vector+lambda*direction_vector More... | |
double | signDistFrom (const MTStraightLine &h) const |
get the signed distance of two lines (if both are parallel, dist>0) More... | |
double | distFromLine (const Amg::Vector3D &point) const |
get the distance of point point from straight line More... | |
void | setChi2 (double chi2) |
Cache the chi2. More... | |
double | chi2 () const |
void | setNumberOfTrackHits (unsigned int n_hits) |
cache the number of track hits More... | |
unsigned int | numberOfTrackHits () const |
double | chi2PerDegreesOfFreedom () const |
Return chi2 / number of TrackHits - 2. More... | |
void | setUsedHits (const MdtHitVec &hits) |
const MdtHitVec & | trackHits () const |
Private Member Functions | |
void | init () |
void | init (const Amg::Vector3D &r_position, const Amg::Vector3D &r_direction, const Amg::Vector3D &r_position_error, const Amg::Vector3D &r_direction_error) |
void | init (const double r_a_x1, const double r_b_x1, const double r_a_x2, const double r_b_x2, const double r_a_x1_err, const double r_b_x1_err, const double r_a_x2_err, const double r_b_x2_err) |
Private Attributes | |
Amg::Vector3D | m_position {0., 0., 0.} |
Amg::Vector3D | m_direction {0., 0., 0.} |
Amg::Vector3D | m_position_error {0., 0., 0.} |
Amg::Vector3D | m_direction_error {0., 0., 0.} |
double | m_chi2 {-1} |
unsigned int | m_numTrkHits {0} |
MdtHitVec | m_used_hits |
Definition at line 16 of file MTStraightLine.h.
Definition at line 19 of file MTStraightLine.h.
Definition at line 18 of file MTStraightLine.h.
|
inline |
Default constructor: all internal parameters of the straight line are set to 0.
Definition at line 22 of file MTStraightLine.h.
|
inline |
Constructor: r_position: position vector of the straight line; r_direction: direction vector of the straight line; r_position_error: error on the position vector; r_direction_error: error on the direction vector.
Definition at line 26 of file MTStraightLine.h.
|
inline |
Coordinates: x1, x2, x3.
Parametrization of the straight line: x1 = r_a_x1*x3 + r_b_x1; x2 = r_a_x2*x3 + r_b_x2; x3 arbitrary. r_a_x1_err: error on r_a_x1. r_b_x1_err: error on r_b_x1. r_a_x2_err: error on r_a_x2. r_b_x2_err: error on r_b_x2.
Definition at line 36 of file MTStraightLine.h.
double MTStraightLine::a_x1 | ( | ) | const |
get the slope of the straight line in the x1-x3 plane
Definition at line 46 of file MTStraightLine.cxx.
double MTStraightLine::a_x1_error | ( | ) | const |
get the error on the slope of the straight line in the x1-x3 plane
Definition at line 48 of file MTStraightLine.cxx.
double MTStraightLine::a_x2 | ( | ) | const |
get the slope of the straight line in the x2-x3 plane
Definition at line 65 of file MTStraightLine.cxx.
double MTStraightLine::a_x2_error | ( | ) | const |
get the error on the slope of the straight line in the x2-x3 plane
Definition at line 66 of file MTStraightLine.cxx.
double MTStraightLine::b_x1 | ( | ) | const |
get the intercept of the straight line in the x1-x3 plane
Definition at line 53 of file MTStraightLine.cxx.
double MTStraightLine::b_x1_error | ( | ) | const |
get the error on the intercept of the straight line in the x1-x3 plane
Definition at line 62 of file MTStraightLine.cxx.
double MTStraightLine::b_x2 | ( | ) | const |
get the intercept of the straight line in the x2-x3 plane
Definition at line 74 of file MTStraightLine.cxx.
double MTStraightLine::b_x2_error | ( | ) | const |
get the slope of the intercept of the straight line in the x2-x3 plane
Definition at line 83 of file MTStraightLine.cxx.
double MTStraightLine::chi2 | ( | ) | const |
Definition at line 135 of file MTStraightLine.cxx.
double MTStraightLine::chi2PerDegreesOfFreedom | ( | ) | const |
Amg::Vector3D MTStraightLine::directionError | ( | ) | const |
get the error on the direction vector of the straight line
Definition at line 45 of file MTStraightLine.cxx.
Amg::Vector3D MTStraightLine::directionVector | ( | ) | const |
double MTStraightLine::distFromLine | ( | const Amg::Vector3D & | point | ) | const |
get the distance of point point from straight line
Definition at line 120 of file MTStraightLine.cxx.
|
private |
Definition at line 14 of file MTStraightLine.cxx.
|
private |
Definition at line 23 of file MTStraightLine.cxx.
|
private |
Definition at line 33 of file MTStraightLine.cxx.
unsigned int MTStraightLine::numberOfTrackHits | ( | ) | const |
Definition at line 137 of file MTStraightLine.cxx.
Amg::Vector3D MTStraightLine::pointOnLine | ( | const double | lambda | ) | const |
get the point on the line for the given scale factor lambda, point=position_vector+lambda*direction_vector
Definition at line 87 of file MTStraightLine.cxx.
Amg::Vector3D MTStraightLine::positionError | ( | ) | const |
get the error on the position vector of the straight line
Definition at line 44 of file MTStraightLine.cxx.
Amg::Vector3D MTStraightLine::positionVector | ( | ) | const |
void MTStraightLine::setChi2 | ( | double | chi2 | ) |
Cache the chi2.
Definition at line 134 of file MTStraightLine.cxx.
void MTStraightLine::setNumberOfTrackHits | ( | unsigned int | n_hits | ) |
Definition at line 141 of file MTStraightLine.cxx.
double MTStraightLine::signDistFrom | ( | const MTStraightLine & | h | ) | const |
get the signed distance of two lines (if both are parallel, dist>0)
Definition at line 89 of file MTStraightLine.cxx.
const MTStraightLine::MdtHitVec & MTStraightLine::trackHits | ( | ) | const |
Definition at line 142 of file MTStraightLine.cxx.
|
private |
Definition at line 123 of file MTStraightLine.h.
|
private |
Definition at line 117 of file MTStraightLine.h.
|
private |
Definition at line 121 of file MTStraightLine.h.
|
private |
Definition at line 124 of file MTStraightLine.h.
|
private |
Definition at line 116 of file MTStraightLine.h.
|
private |
Definition at line 120 of file MTStraightLine.h.
|
private |
Definition at line 125 of file MTStraightLine.h.