16#ifdef TRKRECO_DEBUG_DETAIL
24#define HEP_SHORT_NAMES
30#ifndef CLHEP_POINT3D_H
31#include "CLHEP/Geometry/Point3D.h"
33#ifndef ENABLE_BACKWARDS_COMPATIBILITY
57 void dump(
const std::string & message = std::string(
""),
58 const std::string & prefix = std::string(
""))
const;
67 double chi2(
void)
const;
109 void property(
double a,
double b,
double det);
112 mutable bool _fittedUpdated;
121 mutable double _chi2;
122 mutable double _reducedChi2;
131SortByB(
const void* a,
const void*
b);
136#ifdef TMLine_NO_INLINE
140#define TMLine_INLINE_DEFINE_HERE
143#ifdef TMLine_INLINE_DEFINE_HERE
149 if (!
_fitted) std::cout <<
"TMLine::a !!! fit not performed" << std::endl;
158 if (!
_fitted) std::cout <<
"TMLine::b !!! fit not performed" << std::endl;
167 if (!
_fitted) std::cout <<
"TMLine::distance !!! fit not performed" << std::endl;
170 double invCos = sqrt(1. + _a * _a);
178 if (!
_fitted) std::cout <<
"TMLine::distance !!! fit not performed" << std::endl;
180 double dy = fabs(_a * p.x() + _b - p.y());
181 double invCos = sqrt(1. + _a * _a);
int SortByB(const void *a, const void *b)
Sorter.
HepGeom::Point3D< double > HepPoint3D
A class to fit a TTrackBase object to a line.
A class to represent a track in tracking.
double chi2(void) const
returns chi2.
void removeChits()
remove extremly bad points.
void removeSLY(AList< TMLink > &list)
int fit2()
fits itself. Error was happened if return value is not zero.
void refine(AList< TMLink > &list, float maxSigma)
remove bad points by chi2. Bad points are returned in a 'list'. fit() should be called before calling...
int fit2s()
fits itself using single hits in a wire-layer. Error was happened if return value is not zero.
virtual ~TMLine()
Destructor.
void property(double a, double b, double det)
sets circle properties.
double distance(const TMLink &) const
returns distance to a position of TMLink itself. (not to a wire)
void appendByszdistance(AList< TMLink > &list, unsigned isl, float maxSigma)
int fit2p()
fits itself using isolated hits. Error was happened if return value is not zero.
int fit2sp()
fits itself using single hits in a wire-layer. Error was happened if return value is not zero.
double a(void) const
returns coefficient a.
void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
double b(void) const
returns coefficient b.
virtual unsigned objectType(void) const
returns type.
void appendSLY(AList< TMLink > &list)
double reducedChi2(void) const
returns reduced-chi2.
A class to relate TMDCWireHit and TTrack objects.
const HepPoint3D & position(void) const
returns position.
A virtual class for a track class in tracking.