10#include "GaudiKernel/MsgStream.h"
33void MTStraightLine::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,
34 const double r_b_x1_err,
const double r_a_x2_err,
const double r_b_x2_err) {
56 log << MSG::WARNING <<
"Class MTStraightLine, method b_x1: b_x1 not uniquely defined." <<
endmsg;
77 log << MSG::WARNING <<
"Class MTStraightLine, method b_x2: b_x2 not uniquely defined." <<
endmsg;
111 if (n.dot(n) == 0.0) {
114 return std::sqrt(d.dot(d) - (u.unit().dot(d)) * (u.unit().dot(d)));
117 return (d.dot(n.unit()));
Amg::Vector3D m_direction_error
Amg::Vector3D m_position_error
Amg::Vector3D directionVector() const
get the direction vector of the straight line
MTStraightLine()
Default constructor: all internal parameters of the straight line are set to 0.
double distFromLine(const Amg::Vector3D &point) const
get the distance of point point from straight line
double b_x2() const
get the intercept of the straight line in the x2-x3 plane
double b_x1_error() const
get the error on the intercept of the straight line in the x1-x3 plane
const MdtHitVec & trackHits() const
unsigned int m_numTrkHits
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...
Amg::Vector3D m_direction
double a_x2() const
get the slope of the straight line in the x2-x3 plane
Amg::Vector3D directionError() const
get the error on the direction vector of the straight line
double b_x1() const
get the intercept of the straight line in the x1-x3 plane
Amg::Vector3D positionVector() const
get the position vector of the straight line
Amg::Vector3D positionError() const
get the error on the position vector of the straight line
double chi2PerDegreesOfFreedom() const
Return chi2 / number of TrackHits - 2.
double a_x1() const
get the slope of the straight line in the x1-x3 plane
double b_x2_error() const
get the slope of the intercept of the straight line in the x2-x3 plane
MuonCalibSegment::MdtHitVec MdtHitVec
double a_x1_error() const
get the error on the slope of the straight line in the x1-x3 plane
void setUsedHits(const MdtHitVec &hits)
double signDistFrom(const MTStraightLine &h) const
get the signed distance of two lines (if both are parallel, dist>0)
double a_x2_error() const
get the error on the slope of the straight line in the x2-x3 plane
unsigned int numberOfTrackHits() const
void setChi2(double chi2)
Cache the chi2.
void setNumberOfTrackHits(unsigned int n_hits)
cache the number of track hits
singleton-like access to IMessageSvc via open function and helper
Eigen::Matrix< double, 3, 1 > Vector3D
IMessageSvc * getMessageSvc(bool quiet=false)
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.