|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef MTStraightLineH
6 #define MTStraightLineH
28 init(r_position, r_direction, r_position_error, r_direction_error);
36 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,
37 const double r_b_x1_err,
const double r_a_x2_err,
const double r_b_x2_err) {
38 init(r_a_x1, r_b_x1, r_a_x2, r_b_x2, r_a_x1_err, r_b_x1_err, r_a_x2_err, r_b_x2_err);
137 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,
138 const double r_b_x1_err,
const double r_a_x2_err,
const double r_b_x2_err);
MuonCalibSegment::MdtHitVec MdtHitVec
double a_x1() const
get the slope of the straight line in the x1-x3 plane
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 s...
void setChi2(double chi2)
Cache the chi2.
unsigned int m_numTrkHits
Amg::Vector3D m_direction
Amg::Vector3D positionError() const
get the error on the position vector of the straight line
std::vector< MdtHitPtr > MdtHitVec
double a_x2() const
get the slope of the straight line in the x2-x3 plane
Amg::Vector3D directionVector() const
get the direction vector of the straight line
double b_x1_error() const
get the error on the intercept of the straight line in the x1-x3 plane
double b_x1() const
get the intercept of the straight line in the x1-x3 plane
Amg::Vector3D m_direction_error
double a_x2_error() const
get the error on the slope of the straight line in the x2-x3 plane
double chi2PerDegreesOfFreedom() const
Return chi2 / number of TrackHits - 2.
double a_x1_error() const
get the error on the slope of the straight line in the x1-x3 plane
unsigned int numberOfTrackHits() const
Amg::Vector3D directionError() const
get the error on the direction vector of the straight line
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
MTStraightLine()
Default constructor: all internal parameters of the straight line are set to 0.
MuonCalibSegment::MdtHitPtr MdtHitPtr
double b_x2() const
get the intercept of the straight line in the x2-x3 plane
Amg::Vector3D m_position_error
double signDistFrom(const MTStraightLine &h) const
get the signed distance of two lines (if both are parallel, dist>0)
void setUsedHits(const MdtHitVec &hits)
Eigen::Matrix< double, 3, 1 > Vector3D
double distFromLine(const Amg::Vector3D &point) const
get the distance of point point from straight line
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.
double b_x2_error() const
get the slope of the intercept of the straight line in the x2-x3 plane
const MdtHitVec & trackHits() const
Amg::Vector3D positionVector() const
get the position vector of the straight line
void setNumberOfTrackHits(unsigned int n_hits)
cache the number of track hits
Amg::Vector3D pointOnLine(const double lambda) const
get the point on the line for the given scale factor lambda, point=position_vector+lambda*direction_v...
std::shared_ptr< MdtCalibHitBase > MdtHitPtr
typedef for a collection of MdtCalibHitBase s