16#ifdef TRKRECO_DEBUG_DETAIL
26#include "TrkReco/TLineFitter.h"
27#include "TrkReco/TMLink.h"
28#include "TrkReco/TTrackBase.h"
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;
61 double a(
void )
const;
64 double b(
void )
const;
115 mutable bool _fittedUpdated;
124 mutable double _chi2;
125 mutable double _reducedChi2;
129#if defined( __GNUG__ )
132extern "C" int SortByB(
const void* a,
const void* b );
137#ifdef TMLine_NO_INLINE
141# define TMLine_INLINE_DEFINE_HERE
144#ifdef TMLine_INLINE_DEFINE_HERE
148 if ( !
_fitted ) std::cout <<
"TMLine::a !!! fit not performed" << std::endl;
155 if ( !
_fitted ) std::cout <<
"TMLine::b !!! fit not performed" << std::endl;
162 if ( !
_fitted ) std::cout <<
"TMLine::distance !!! fit not performed" << std::endl;
165 double invCos = sqrt( 1. + _a * _a );
171 if ( !
_fitted ) std::cout <<
"TMLine::distance !!! fit not performed" << std::endl;
173 double dy = fabs( _a * p.x() + _b - p.y() );
174 double invCos = sqrt( 1. + _a * _a );
HepGeom::Point3D< double > HepPoint3D
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)
double distance(const HepPoint3D &) const
void property(double a, double b, double det)
sets circle properties.
virtual ~TMLine()
Destructor.
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)
TMLine(const AList< TMLink > &)
Constructor.
int fit2p()
fits itself using isolated hits. Error was happened if return value is not zero.
double a(void) const
returns coefficient a.
virtual unsigned objectType(void) const
returns type.
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.