BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
T3DLine Class Reference

A class to represent a track in tracking. More...

#include <T3DLine.h>

Inheritance diagram for T3DLine:

Public Member Functions

 T3DLine ()
 Constructors.
 T3DLine (const TTrack &)
 T3DLine (const T3DLine &)
virtual ~T3DLine ()
 Destructor.
double dr (void) const
 Track parameters.
double phi0 (void) const
double dz (void) const
double tanl (void) const
double cosPhi0 (void) const
double sinPhi0 (void) const
Vector a (void) const
const SymMatrixEa (void) const
 returns error matrix
const HepPoint3Dpivot (void) const
 pivot position
Helix helix (void) const
 approximated helix class
unsigned ndf (void) const
 returns NDF
double chi2 (void) const
 returns chi2.
double reducedchi2 (void) const
 returns reduced-chi2
unsigned objectType (void) const
 returns object type
HepPoint3D x (double) const
 returns position on 3D line
HepPoint3D x0 (void) const
 returns 3D line component x(t)=x0 + t * k
HepVector3D k (void) const
int approach (TMLink &, bool sagCorrection=true) const
int approach_line (const HepPoint3D &, const HepVector3D &, HepPoint3D &onLine, HepPoint3D &onTrack) const
 caluculate closest points between a line and this track
int approach_point (const HepPoint3D &, HepPoint3D &onTrack) const
 caluculate closest point between a point and this track
const HepPoint3Dpivot (const HepPoint3D &)
 set new pivot
void set (const HepPoint3D &, double t_dr, double t_phi0, double t_dz, double t_tanl)
 set track parameters,pivot
Vector a (const Vector &)
 set track parameters
const SymMatrixEa (const SymMatrix &)
 set error matrix
 T3DLine ()
 Constructors.
 T3DLine (const TTrack &)
 T3DLine (const T3DLine &)
virtual ~T3DLine ()
 Destructor.
double dr (void) const
 Track parameters.
double phi0 (void) const
double dz (void) const
double tanl (void) const
double cosPhi0 (void) const
double sinPhi0 (void) const
Vector a (void) const
const SymMatrixEa (void) const
 returns error matrix
const HepPoint3Dpivot (void) const
 pivot position
Helix helix (void) const
 approximated helix class
unsigned ndf (void) const
 returns NDF
double chi2 (void) const
 returns chi2.
double reducedchi2 (void) const
 returns reduced-chi2
unsigned objectType (void) const
 returns object type
HepPoint3D x (double) const
 returns position on 3D line
HepPoint3D x0 (void) const
 returns 3D line component x(t)=x0 + t * k
HepVector3D k (void) const
int approach (TMLink &, bool sagCorrection=true) const
int approach_line (const HepPoint3D &, const HepVector3D &, HepPoint3D &onLine, HepPoint3D &onTrack) const
 caluculate closest points between a line and this track
int approach_point (const HepPoint3D &, HepPoint3D &onTrack) const
 caluculate closest point between a point and this track
const HepPoint3Dpivot (const HepPoint3D &)
 set new pivot
void set (const HepPoint3D &, double t_dr, double t_phi0, double t_dz, double t_tanl)
 set track parameters,pivot
Vector a (const Vector &)
 set track parameters
const SymMatrixEa (const SymMatrix &)
 set error matrix
 T3DLine ()
 Constructors.
 T3DLine (const TTrack &)
 T3DLine (const T3DLine &)
virtual ~T3DLine ()
 Destructor.
double dr (void) const
 Track parameters.
double phi0 (void) const
double dz (void) const
double tanl (void) const
double cosPhi0 (void) const
double sinPhi0 (void) const
Vector a (void) const
const SymMatrixEa (void) const
 returns error matrix
const HepPoint3Dpivot (void) const
 pivot position
Helix helix (void) const
 approximated helix class
unsigned ndf (void) const
 returns NDF
double chi2 (void) const
 returns chi2.
double reducedchi2 (void) const
 returns reduced-chi2
unsigned objectType (void) const
 returns object type
HepPoint3D x (double) const
 returns position on 3D line
HepPoint3D x0 (void) const
 returns 3D line component x(t)=x0 + t * k
HepVector3D k (void) const
int approach (TMLink &, bool sagCorrection=true) const
int approach_line (const HepPoint3D &, const HepVector3D &, HepPoint3D &onLine, HepPoint3D &onTrack) const
 caluculate closest points between a line and this track
int approach_point (const HepPoint3D &, HepPoint3D &onTrack) const
 caluculate closest point between a point and this track
const HepPoint3Dpivot (const HepPoint3D &)
 set new pivot
void set (const HepPoint3D &, double t_dr, double t_phi0, double t_dz, double t_tanl)
 set track parameters,pivot
Vector a (const Vector &)
 set track parameters
const SymMatrixEa (const SymMatrix &)
 set error matrix
Public Member Functions inherited from TTrackBase
 TTrackBase ()
 Constructor.
 TTrackBase (const AList< TMLink > &links)
 Constructor.
virtual ~TTrackBase ()
 Destructor.
virtual unsigned type (void) const
 returns type. Definition is depending on an object class.
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
const AList< TMLink > & links (unsigned mask=0) const
unsigned nLinks (unsigned mask=0) const
 returns # of masked TMLinks assigned to this track object.
const AList< TMLink > & cores (unsigned mask=0) const
 returns a list of masked TMLinks for fit. 'mask' will be applied if mask is not 0.
unsigned nCores (unsigned mask=0) const
 returns # of masked TMLinks for fit. 'mask' will be applied if mask is not 0.
void update (void) const
 update cache.
void append (TMLink &)
 appends a TMLink.
void append (const AList< TMLink > &)
 appends TMLinks.
void appendByApproach (AList< TMLink > &list, double maxSigma)
void appendByDistance (AList< TMLink > &list, double maxDistance)
void remove (TMLink &a)
 removes a TMLink.
void remove (const AList< TMLink > &)
 removes TMLinks.
virtual void refine (AList< TMLink > &list, double maxSigma)
virtual void refine (double maxSigma)
 removes bad points by pull. The bad points are masked not to be used in fit.
virtual int DropWorst ()
virtual void removeLinks (void)
virtual double distance (const TMLink &) const
 returns distance to a position of TMLink in TMLink space.
virtual int approach (TMLink &) const
unsigned testByApproach (const TMLink &list, double sigma) const
 returns # of good hits to be appended.
unsigned testByApproach (const AList< TMLink > &list, double sigma) const
virtual int fit (void)
 fits itself by a default fitter. Error was happened if return value is not zero.
const TMFitter *const fitter (void) const
 returns a pointer to a default fitter.
const TMFitter *const fitter (const TMFitter *)
 sets a default fitter.
void falseFit ()
 false Fit
TMLinkoperator[] (unsigned i) const
const TTrackHEP *const hep (void) const
 returns TTrackHEP.
unsigned nHeps (void) const
 returns # of contributed TTrackHEP tracks.
const TTrackMC *const mc (void) const
 returns a pointer to TTrackMC.
bool fitted (void) const
 returns true if fitted.
bool fittedWithCathode (void) const
 returns true if fitted with cathode hits(TEMPORARY).
 TTrackBase ()
 Constructor.
 TTrackBase (const AList< TMLink > &links)
 Constructor.
virtual ~TTrackBase ()
 Destructor.
virtual unsigned type (void) const
 returns type. Definition is depending on an object class.
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
const AList< TMLink > & links (unsigned mask=0) const
unsigned nLinks (unsigned mask=0) const
 returns # of masked TMLinks assigned to this track object.
const AList< TMLink > & cores (unsigned mask=0) const
 returns a list of masked TMLinks for fit. 'mask' will be applied if mask is not 0.
unsigned nCores (unsigned mask=0) const
 returns # of masked TMLinks for fit. 'mask' will be applied if mask is not 0.
void update (void) const
 update cache.
void append (TMLink &)
 appends a TMLink.
void append (const AList< TMLink > &)
 appends TMLinks.
void appendByApproach (AList< TMLink > &list, double maxSigma)
void appendByDistance (AList< TMLink > &list, double maxDistance)
void remove (TMLink &a)
 removes a TMLink.
void remove (const AList< TMLink > &)
 removes TMLinks.
virtual void refine (AList< TMLink > &list, double maxSigma)
virtual void refine (double maxSigma)
 removes bad points by pull. The bad points are masked not to be used in fit.
virtual int DropWorst ()
virtual void removeLinks (void)
virtual double distance (const TMLink &) const
 returns distance to a position of TMLink in TMLink space.
virtual int approach (TMLink &) const
unsigned testByApproach (const TMLink &list, double sigma) const
 returns # of good hits to be appended.
unsigned testByApproach (const AList< TMLink > &list, double sigma) const
virtual int fit (void)
 fits itself by a default fitter. Error was happened if return value is not zero.
const TMFitter *const fitter (void) const
 returns a pointer to a default fitter.
const TMFitter *const fitter (const TMFitter *)
 sets a default fitter.
void falseFit ()
 false Fit
TMLinkoperator[] (unsigned i) const
const TTrackHEP *const hep (void) const
 returns TTrackHEP.
unsigned nHeps (void) const
 returns # of contributed TTrackHEP tracks.
const TTrackMC *const mc (void) const
 returns a pointer to TTrackMC.
bool fitted (void) const
 returns true if fitted.
bool fittedWithCathode (void) const
 returns true if fitted with cathode hits(TEMPORARY).
 TTrackBase ()
 Constructor.
 TTrackBase (const AList< TMLink > &links)
 Constructor.
virtual ~TTrackBase ()
 Destructor.
virtual unsigned type (void) const
 returns type. Definition is depending on an object class.
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
const AList< TMLink > & links (unsigned mask=0) const
unsigned nLinks (unsigned mask=0) const
 returns # of masked TMLinks assigned to this track object.
const AList< TMLink > & cores (unsigned mask=0) const
 returns a list of masked TMLinks for fit. 'mask' will be applied if mask is not 0.
unsigned nCores (unsigned mask=0) const
 returns # of masked TMLinks for fit. 'mask' will be applied if mask is not 0.
void update (void) const
 update cache.
void append (TMLink &)
 appends a TMLink.
void append (const AList< TMLink > &)
 appends TMLinks.
void appendByApproach (AList< TMLink > &list, double maxSigma)
void appendByDistance (AList< TMLink > &list, double maxDistance)
void remove (TMLink &a)
 removes a TMLink.
void remove (const AList< TMLink > &)
 removes TMLinks.
virtual void refine (AList< TMLink > &list, double maxSigma)
virtual void refine (double maxSigma)
 removes bad points by pull. The bad points are masked not to be used in fit.
virtual int DropWorst ()
virtual void removeLinks (void)
virtual double distance (const TMLink &) const
 returns distance to a position of TMLink in TMLink space.
virtual int approach (TMLink &) const
unsigned testByApproach (const TMLink &list, double sigma) const
 returns # of good hits to be appended.
unsigned testByApproach (const AList< TMLink > &list, double sigma) const
virtual int fit (void)
 fits itself by a default fitter. Error was happened if return value is not zero.
const TMFitter *const fitter (void) const
 returns a pointer to a default fitter.
const TMFitter *const fitter (const TMFitter *)
 sets a default fitter.
void falseFit ()
 false Fit
TMLinkoperator[] (unsigned i) const
const TTrackHEP *const hep (void) const
 returns TTrackHEP.
unsigned nHeps (void) const
 returns # of contributed TTrackHEP tracks.
const TTrackMC *const mc (void) const
 returns a pointer to TTrackMC.
bool fitted (void) const
 returns true if fitted.
bool fittedWithCathode (void) const
 returns true if fitted with cathode hits(TEMPORARY).

Friends

class T3DLineFitter

Additional Inherited Members

Protected Attributes inherited from TTrackBase
AList< TMLink_links
bool _fitted
bool _fittedWithCathode
TTrackMC_mc

Detailed Description

A class to represent a track in tracking.

Definition at line 50 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/T3DLine.h.

Constructor & Destructor Documentation

◆ T3DLine() [1/9]

T3DLine::T3DLine ( )

Constructors.

Definition at line 21 of file T3DLine.cxx.

22 : TTrackBase()
23 , _dr( 0 )
24 , _phi0( 0 )
25 , _dz( 0 )
26 , _tanl( 0 )
27 , _chi2( 0 )
28 , _ndf( 0 )
29 , _Ea( SymMatrix( 4, 0 ) )
30 , _pivot( ORIGIN ) {
31
32 _cos_phi0 = 1;
33 _sin_phi0 = 0;
34
35 //...Set a default fitter...
36 fitter( &T3DLine::_fitter );
37
38 _fitted = false;
39 _fittedWithCathode = false;
40}
const HepPoint3D ORIGIN
Constants.
Definition TMDCUtil.cxx:47
const TMFitter *const fitter(void) const
returns a pointer to a default fitter.
TTrackBase()
Constructor.

Referenced by T3DLine().

◆ T3DLine() [2/9]

T3DLine::T3DLine ( const TTrack & a)

Definition at line 42 of file T3DLine.cxx.

44 , _dr( a.helix().dr() )
45 , _phi0( a.helix().phi0() )
46 , _dz( a.helix().dz() )
47 , _tanl( a.helix().tanl() )
48 , _chi2( 0 )
49 , _ndf( 0 )
50 , _Ea( SymMatrix( 4, 0 ) )
51 , _pivot( a.helix().pivot() ) {
52
53 _cos_phi0 = cos( _phi0 );
54 _sin_phi0 = sin( _phi0 );
55
56 //...Set a default fitter...
57 fitter( &T3DLine::_fitter );
58
59 _fitted = false;
60 _fittedWithCathode = false;
61}
Vector a(void) const
Definition T3DLine.cxx:100

◆ T3DLine() [3/9]

T3DLine::T3DLine ( const T3DLine & a)

Definition at line 65 of file T3DLine.cxx.

67 , _dr( a.dr() )
68 , _phi0( a.phi0() )
69 , _dz( a.dz() )
70 , _tanl( a.tanl() )
71 , _chi2( a.chi2() )
72 , _ndf( a.ndf() )
73 , _Ea( a.Ea() )
74 , _pivot( a.pivot() ) {
75
76 _cos_phi0 = cos( _phi0 );
77 _sin_phi0 = sin( _phi0 );
78
79 //...Set a default fitter...
80 fitter( &T3DLine::_fitter );
81
82 _fitted = false;
83 _fittedWithCathode = false;
84}

◆ ~T3DLine() [1/3]

T3DLine::~T3DLine ( )
virtual

Destructor.

Definition at line 63 of file T3DLine.cxx.

63{}

◆ T3DLine() [4/9]

T3DLine::T3DLine ( )

Constructors.

◆ T3DLine() [5/9]

T3DLine::T3DLine ( const TTrack & )

◆ T3DLine() [6/9]

T3DLine::T3DLine ( const T3DLine & )

◆ ~T3DLine() [2/3]

virtual T3DLine::~T3DLine ( )
virtual

Destructor.

◆ T3DLine() [7/9]

T3DLine::T3DLine ( )

Constructors.

◆ T3DLine() [8/9]

T3DLine::T3DLine ( const TTrack & )

◆ T3DLine() [9/9]

T3DLine::T3DLine ( const T3DLine & )

◆ ~T3DLine() [3/3]

virtual T3DLine::~T3DLine ( )
virtual

Destructor.

Member Function Documentation

◆ a() [1/6]

Vector T3DLine::a ( const Vector & ta)

set track parameters

Definition at line 179 of file T3DLine.cxx.

179 {
180 _dr = ta[0];
181 _phi0 = ta[1];
182 _dz = ta[2];
183 _tanl = ta[3];
184 _cos_phi0 = cos( _phi0 );
185 _sin_phi0 = sin( _phi0 );
186 return ( ta );
187}

◆ a() [2/6]

Vector T3DLine::a ( const Vector & )

set track parameters

◆ a() [3/6]

Vector T3DLine::a ( const Vector & )

set track parameters

◆ a() [4/6]

Vector T3DLine::a ( void ) const

Definition at line 100 of file T3DLine.cxx.

100 {
101 Vector ta( 4 );
102 ta[0] = _dr;
103 ta[1] = _phi0;
104 ta[2] = _dz;
105 ta[3] = _tanl;
106 return ( ta );
107}

Referenced by helix(), T3DLine(), and T3DLine().

◆ a() [5/6]

Vector T3DLine::a ( void ) const

◆ a() [6/6]

Vector T3DLine::a ( void ) const

◆ approach() [1/3]

int T3DLine::approach ( TMLink & l,
bool sagCorrection = true ) const

calculates the closest approach to a wire in real space. Results are stored in TMLink. Return value is negative if error happened.

Definition at line 194 of file T3DLine.cxx.

194 {
195
196 const TMDCWire& w = *l.wire();
197 HepPoint3D xw = w.xyPosition();
198 HepPoint3D wireBackwardPosition = w.backwardPosition();
199 HepVector3D v = w.direction();
200
201 HepPoint3D onWire, onTrack;
202
203 if ( approach_line( wireBackwardPosition, v, onWire, onTrack ) < 0 ) return ( -1 );
204
205 // onWire,onTrack filled
206
207 if ( !doSagCorrection )
208 {
209 l.positionOnWire( onWire );
210 l.positionOnTrack( onTrack );
211 return ( 0 ); // no sag correction
212 }
213 // Sag correction
214 // loop for sag correction
215 double onWire_y = onWire.y();
216 double onWire_z = onWire.z();
217
218 unsigned nTrial = 1;
219 while ( nTrial < 100 )
220 {
221 w.wirePosition( onWire_z, xw, wireBackwardPosition, (HepVector3D&)v );
222 if ( approach_line( wireBackwardPosition, v, onWire, onTrack ) < 0 ) return ( -1 );
223 if ( fabs( onWire_y - onWire.y() ) < 0.0001 ) break; // |dy|< 1 micron
224 onWire_y = onWire.y();
225 onWire_z = onWire.z();
226
227 nTrial++;
228 }
229
230 l.positionOnWire( onWire );
231 l.positionOnTrack( onTrack );
232 return ( nTrial );
233}
double w
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition KarLud.h:35
HepGeom::Point3D< double > HepPoint3D
HepGeom::Vector3D< double > HepVector3D
int approach_line(const HepPoint3D &, const HepVector3D &, HepPoint3D &onLine, HepPoint3D &onTrack) const
caluculate closest points between a line and this track
Definition T3DLine.cxx:235
const HepPoint3D & xyPosition(void) const
returns middle position of a wire. z componet is 0.

◆ approach() [2/3]

int T3DLine::approach ( TMLink & ,
bool sagCorrection = true ) const

calculates the closest approach to a wire in real space. Results are stored in TMLink. Return value is negative if error happened.

◆ approach() [3/3]

int T3DLine::approach ( TMLink & ,
bool sagCorrection = true ) const

calculates the closest approach to a wire in real space. Results are stored in TMLink. Return value is negative if error happened.

◆ approach_line() [1/3]

int T3DLine::approach_line ( const HepPoint3D & w0,
const HepVector3D & v,
HepPoint3D & onLine,
HepPoint3D & onTrack ) const

caluculate closest points between a line and this track

Definition at line 235 of file T3DLine.cxx.

236 {
237 // line = [w0] + s * [v] -> [onLine]
238 // trk = [x0] + t * [k] -> [onTrack]
239 // if [v]//[k] then return(-1) error
240
241 const HepVector3D k = this->k();
242 const double v_k = v.dot( k );
243 const double v_2 = v.mag2();
244 const double k_2 = k.mag2();
245 const double tk = v_k * v_k - v_2 * k_2;
246 if ( tk == 0 ) return ( -1 );
247
248 const HepPoint3D x0 = this->x0();
249 const HepPoint3D dx = x0 - w0;
250 const double t = dx.dot( v_2 * k - v_k * v ) / tk;
251 const double s = dx.dot( v_k * k - k_2 * v ) / tk;
252
253 onLine = w0 + s * v;
254 onTrack = x0 + t * k;
255 return ( 0 );
256}
XmlRpcServer s
HepPoint3D x0(void) const
returns 3D line component x(t)=x0 + t * k
Definition T3DLine.cxx:143
HepVector3D k(void) const
Definition T3DLine.cxx:150
int t()
Definition t.c:1

Referenced by approach().

◆ approach_line() [2/3]

int T3DLine::approach_line ( const HepPoint3D & ,
const HepVector3D & ,
HepPoint3D & onLine,
HepPoint3D & onTrack ) const

caluculate closest points between a line and this track

◆ approach_line() [3/3]

int T3DLine::approach_line ( const HepPoint3D & ,
const HepVector3D & ,
HepPoint3D & onLine,
HepPoint3D & onTrack ) const

caluculate closest points between a line and this track

◆ approach_point() [1/3]

int T3DLine::approach_point ( const HepPoint3D & p0,
HepPoint3D & onTrack ) const

caluculate closest point between a point and this track

Definition at line 258 of file T3DLine.cxx.

258 {
259 // trk = [x0] + t * [k] -> [onTrack]
260 // if [v]//[k] then return(-1) error
261
262 const HepVector3D k = this->k();
263 const HepPoint3D x0 = this->x0();
264 const HepPoint3D dx = p0 - x0;
265 const double t = dx.dot( k ) / k.mag2();
266
267 onTrack = x0 + t * k;
268 return ( 0 );
269}

◆ approach_point() [2/3]

int T3DLine::approach_point ( const HepPoint3D & ,
HepPoint3D & onTrack ) const

caluculate closest point between a point and this track

◆ approach_point() [3/3]

int T3DLine::approach_point ( const HepPoint3D & ,
HepPoint3D & onTrack ) const

caluculate closest point between a point and this track

◆ chi2() [1/3]

double T3DLine::chi2 ( void ) const

returns chi2.

Definition at line 124 of file T3DLine.cxx.

124{ return _chi2; }

Referenced by T3DLine().

◆ chi2() [2/3]

double T3DLine::chi2 ( void ) const

returns chi2.

◆ chi2() [3/3]

double T3DLine::chi2 ( void ) const

returns chi2.

◆ cosPhi0() [1/3]

double T3DLine::cosPhi0 ( void ) const

Definition at line 94 of file T3DLine.cxx.

94{ return _cos_phi0; }

◆ cosPhi0() [2/3]

double T3DLine::cosPhi0 ( void ) const

◆ cosPhi0() [3/3]

double T3DLine::cosPhi0 ( void ) const

◆ dr() [1/3]

double T3DLine::dr ( void ) const

Track parameters.

Definition at line 86 of file T3DLine.cxx.

86{ return _dr; }

Referenced by pivot(), T3DLine(), and T3DLine().

◆ dr() [2/3]

double T3DLine::dr ( void ) const

Track parameters.

◆ dr() [3/3]

double T3DLine::dr ( void ) const

Track parameters.

◆ dz() [1/3]

double T3DLine::dz ( void ) const

Definition at line 90 of file T3DLine.cxx.

90{ return _dz; }

Referenced by pivot(), T3DLine(), and T3DLine().

◆ dz() [2/3]

double T3DLine::dz ( void ) const

◆ dz() [3/3]

double T3DLine::dz ( void ) const

◆ Ea() [1/6]

const SymMatrix & T3DLine::Ea ( const SymMatrix & tEa)

set error matrix

Definition at line 189 of file T3DLine.cxx.

189 {
190 _Ea = tEa;
191 return ( _Ea );
192}

◆ Ea() [2/6]

const SymMatrix & T3DLine::Ea ( const SymMatrix & )

set error matrix

◆ Ea() [3/6]

const SymMatrix & T3DLine::Ea ( const SymMatrix & )

set error matrix

◆ Ea() [4/6]

const SymMatrix & T3DLine::Ea ( void ) const

returns error matrix

Definition at line 109 of file T3DLine.cxx.

109{ return ( _Ea ); }

Referenced by T3DLine().

◆ Ea() [5/6]

const SymMatrix & T3DLine::Ea ( void ) const

returns error matrix

◆ Ea() [6/6]

const SymMatrix & T3DLine::Ea ( void ) const

returns error matrix

◆ helix() [1/3]

Helix T3DLine::helix ( void ) const

approximated helix class

Definition at line 111 of file T3DLine.cxx.

111 {
112 HepVector a( 5 );
113 a[0] = _dr;
114 a[1] = _phi0;
115 a[2] = 1e-10;
116 a[3] = _dz;
117 a[4] = _tanl;
118 Helix _helix( _pivot, a );
119 return _helix;
120}

Referenced by TBuilderCosmic::buildStereo(), and T3DLine().

◆ helix() [2/3]

Helix T3DLine::helix ( void ) const

approximated helix class

◆ helix() [3/3]

Helix T3DLine::helix ( void ) const

approximated helix class

◆ k() [1/3]

HepVector3D T3DLine::k ( void ) const

Definition at line 150 of file T3DLine.cxx.

150 {
151 HepPoint3D p( -_sin_phi0, _cos_phi0, _tanl );
152 return p;
153}

Referenced by approach_line(), and approach_point().

◆ k() [2/3]

HepVector3D T3DLine::k ( void ) const

◆ k() [3/3]

HepVector3D T3DLine::k ( void ) const

◆ ndf() [1/3]

unsigned T3DLine::ndf ( void ) const

returns NDF

Definition at line 122 of file T3DLine.cxx.

122{ return _ndf; }

Referenced by T3DLine().

◆ ndf() [2/3]

unsigned T3DLine::ndf ( void ) const

returns NDF

◆ ndf() [3/3]

unsigned T3DLine::ndf ( void ) const

returns NDF

◆ objectType() [1/3]

unsigned T3DLine::objectType ( void ) const
inlinevirtual

returns object type

Reimplemented from TTrackBase.

Definition at line 150 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/T3DLine.h.

150{ return Line3D; }

◆ objectType() [2/3]

unsigned T3DLine::objectType ( void ) const
virtual

returns object type

Reimplemented from TTrackBase.

◆ objectType() [3/3]

unsigned T3DLine::objectType ( void ) const
virtual

returns object type

Reimplemented from TTrackBase.

◆ phi0() [1/3]

double T3DLine::phi0 ( void ) const

Definition at line 88 of file T3DLine.cxx.

88{ return _phi0; }

Referenced by T3DLine(), and T3DLine().

◆ phi0() [2/3]

double T3DLine::phi0 ( void ) const

◆ phi0() [3/3]

double T3DLine::phi0 ( void ) const

◆ pivot() [1/6]

const HepPoint3D & T3DLine::pivot ( const HepPoint3D & newpivot)

set new pivot

Definition at line 155 of file T3DLine.cxx.

155 {
156 double dr = ( _pivot.x() - newpivot.x() ) * _cos_phi0 +
157 ( _pivot.y() - newpivot.y() ) * _sin_phi0 + _dr;
158 double dz = _pivot.z() - newpivot.z() + _dz +
159 _tanl * ( ( _pivot.x() - newpivot.x() ) * _sin_phi0 +
160 ( newpivot.y() - _pivot.y() ) * _cos_phi0 );
161 _dr = dr;
162 _dz = dz;
163 _pivot = newpivot;
164 return _pivot;
165}
double dr(void) const
Track parameters.
Definition T3DLine.cxx:86
double dz(void) const
Definition T3DLine.cxx:90

◆ pivot() [2/6]

const HepPoint3D & T3DLine::pivot ( const HepPoint3D & )

set new pivot

◆ pivot() [3/6]

const HepPoint3D & T3DLine::pivot ( const HepPoint3D & )

set new pivot

◆ pivot() [4/6]

const HepPoint3D & T3DLine::pivot ( void ) const

pivot position

Definition at line 98 of file T3DLine.cxx.

98{ return _pivot; }

Referenced by T3DLine(), and T3DLine().

◆ pivot() [5/6]

const HepPoint3D & T3DLine::pivot ( void ) const

pivot position

◆ pivot() [6/6]

const HepPoint3D & T3DLine::pivot ( void ) const

pivot position

◆ reducedchi2() [1/3]

double T3DLine::reducedchi2 ( void ) const

returns reduced-chi2

Definition at line 126 of file T3DLine.cxx.

126 {
127 if ( _ndf == 0 )
128 {
129 std::cout << "error at T3DLine::reducedchi2 ndf=0" << std::endl;
130 return 0;
131 }
132 return ( _chi2 / _ndf );
133}

◆ reducedchi2() [2/3]

double T3DLine::reducedchi2 ( void ) const

returns reduced-chi2

◆ reducedchi2() [3/3]

double T3DLine::reducedchi2 ( void ) const

returns reduced-chi2

◆ set() [1/3]

void T3DLine::set ( const HepPoint3D & t_pivot,
double t_dr,
double t_phi0,
double t_dz,
double t_tanl )

set track parameters,pivot

Definition at line 167 of file T3DLine.cxx.

168 {
169
170 _pivot = t_pivot;
171 _dr = t_dr;
172 _phi0 = t_phi0;
173 _dz = t_dz;
174 _tanl = t_tanl;
175 _cos_phi0 = cos( _phi0 );
176 _sin_phi0 = sin( _phi0 );
177}

◆ set() [2/3]

void T3DLine::set ( const HepPoint3D & ,
double t_dr,
double t_phi0,
double t_dz,
double t_tanl )

set track parameters,pivot

◆ set() [3/3]

void T3DLine::set ( const HepPoint3D & ,
double t_dr,
double t_phi0,
double t_dz,
double t_tanl )

set track parameters,pivot

◆ sinPhi0() [1/3]

double T3DLine::sinPhi0 ( void ) const

Definition at line 96 of file T3DLine.cxx.

96{ return _sin_phi0; }

◆ sinPhi0() [2/3]

double T3DLine::sinPhi0 ( void ) const

◆ sinPhi0() [3/3]

double T3DLine::sinPhi0 ( void ) const

◆ tanl() [1/3]

double T3DLine::tanl ( void ) const

Definition at line 92 of file T3DLine.cxx.

92{ return _tanl; }

Referenced by T3DLine(), and T3DLine().

◆ tanl() [2/3]

double T3DLine::tanl ( void ) const

◆ tanl() [3/3]

double T3DLine::tanl ( void ) const

◆ x() [1/3]

HepPoint3D T3DLine::x ( double t) const

returns position on 3D line

Definition at line 135 of file T3DLine.cxx.

135 {
136 double tx = _pivot.x() + _dr * _cos_phi0 - t * _sin_phi0;
137 double ty = _pivot.y() + _dr * _sin_phi0 + t * _cos_phi0;
138 double tz = _pivot.z() + _dz + t * _tanl;
139 HepPoint3D p( tx, ty, tz );
140 return p;
141}

◆ x() [2/3]

HepPoint3D T3DLine::x ( double ) const

returns position on 3D line

◆ x() [3/3]

HepPoint3D T3DLine::x ( double ) const

returns position on 3D line

◆ x0() [1/3]

HepPoint3D T3DLine::x0 ( void ) const

returns 3D line component x(t)=x0 + t * k

Definition at line 143 of file T3DLine.cxx.

143 {
144 double tx = _pivot.x() + _dr * _cos_phi0;
145 double ty = _pivot.y() + _dr * _sin_phi0;
146 double tz = _pivot.z() + _dz;
147 HepPoint3D p( tx, ty, tz );
148 return p;
149}

Referenced by approach_line(), and approach_point().

◆ x0() [2/3]

HepPoint3D T3DLine::x0 ( void ) const

returns 3D line component x(t)=x0 + t * k

◆ x0() [3/3]

HepPoint3D T3DLine::x0 ( void ) const

returns 3D line component x(t)=x0 + t * k

◆ T3DLineFitter

T3DLineFitter
friend

Definition at line 147 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/T3DLine.h.

Referenced by Ea(), and T3DLineFitter.


The documentation for this class was generated from the following files: