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

A class to relate TMDCWireHit and TTrack objects. More...

#include <TMLink.h>

Public Member Functions

 TMLink (TTrack *track=0, const TMDCWireHit *hit=0, const HepPoint3D &position=HepPoint3D(), const HepPoint3D &positionD=HepPoint3D(), const double=0.0)
 Constructor.
 TMLink (const TMLink &)
 Copy constructor.
virtual ~TMLink ()
 Destructor.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
const TMDCWireHithit (void) const
 returns a pointer to a hit.
const TMDCWire *const wire (void) const
 returns a pointer to a wire.
TTracktrack (void) const
 returns a pointer to a track.
double pull (void) const
 returns pull.
const HepPoint3DxyPosition (void) const
 returns middle position of a wire. z componet is 0.
const HepPoint3DpositionOnWire (void) const
 returns the closest point on wire to a track.
const HepPoint3DpositionOnTrack (void) const
 returns the closest point on track to wire.
double dPhi (void) const
 returns dPhi to the closest point.
unsigned leftRight (void) const
 returns left-right. 0:left, 1:right, 2:wire
int zStatus (void) const
 returns stauts of stereo hit
int zPair (void) const
 returns id# of the pair, if zStatus == 20 (2 consective hits).
const HepPoint3Dposition (void) const
 returns position.
const HepPoint3DpositionD (void) const
double distance (void) const
 returns distance between point on wire and on track.
void distance (double)
double distancenew (void) const
TMLinkneighbor (unsigned int) const
 returns neighbor TMLink.
TMLinklink (void) const
 returns a pointer to a TMLink.
const HepPoint3DarcZ (const unsigned=0) const
 returns UseCathode flag
const HepPoint3Dconf (const HepPoint3D &conf)
void update (const HepPoint3D &onTrack, const HepPoint3D &onWire, unsigned leftRight, double pull)
 sets results of fitting.
const TMDCWireHithit (const TMDCWireHit *)
 sets a pointer to a hit.
TTracktrack (TTrack *)
 sets a pointer to a track.
const HepPoint3DpositionOnWire (const HepPoint3D &)
 sets and returns the closest point on wire to a track.
const HepPoint3DpositionOnWire (double p[3])
const HepPoint3DpositionOnTrack (const HepPoint3D &)
 sets and returns the closest point on track to wire.
const HepPoint3DpositionOnTrack (double p[3])
double dPhi (double)
 sets and returns dPhi to the closest point.
const HepPoint3Dposition (const HepPoint3D &)
 sets and returns position.
const HepPoint3DpositionD (const HepPoint3D &)
void neighbor (unsigned int, TMLink *)
 sets neighbor TMLink.
TMLinklink (TMLink *)
 sets a pointer to a TMLink.
unsigned leftRight (unsigned)
 sets left-right. 0:left, 1:right, 2:wire
double pull (double)
 sets pull.
int zStatus (int)
 sets stereo Hit status
int zPair (int)
 sets id# of the pair
const HepPoint3DarcZ (const HepPoint3D &, const unsigned=0)
 sets usecathode flag
const unsigned fit2D (const unsigned &)
unsigned fit2D (void)
float drift (void) const
 returns/sets drift distance.
float drift (unsigned) const
float drift (float, unsigned)
double cDrift (void) const
double cDrift (unsigned) const
double cDrift (double, unsigned)
float dDrift (void) const
 returns/sets drift distance error.
float dDrift (unsigned) const
float dDrift (float, unsigned)
unsigned tsfTag (void) const
 return tsfTag of links
unsigned tsfTag (unsigned)
double tof (void) const
 return time of flight
double tof (double)
void setDriftTime (double)
 add by jialk returns timeDrift after prop correction
double getDriftTime (void)
double DriftTime (double, double) const
 returs drift time
 TMLink (TTrack *track=0, const TMDCWireHit *hit=0, const HepPoint3D &position=HepPoint3D(), const HepPoint3D &positionD=HepPoint3D(), const double=0.0)
 Constructor.
 TMLink (const TMLink &)
 Copy constructor.
virtual ~TMLink ()
 Destructor.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
const TMDCWireHithit (void) const
 returns a pointer to a hit.
const TMDCWire *const wire (void) const
 returns a pointer to a wire.
TTracktrack (void) const
 returns a pointer to a track.
double pull (void) const
 returns pull.
const HepPoint3DxyPosition (void) const
 returns middle position of a wire. z componet is 0.
const HepPoint3DpositionOnWire (void) const
 returns the closest point on wire to a track.
const HepPoint3DpositionOnTrack (void) const
 returns the closest point on track to wire.
double dPhi (void) const
 returns dPhi to the closest point.
unsigned leftRight (void) const
 returns left-right. 0:left, 1:right, 2:wire
int zStatus (void) const
 returns stauts of stereo hit
int zPair (void) const
 returns id# of the pair, if zStatus == 20 (2 consective hits).
const HepPoint3Dposition (void) const
 returns position.
const HepPoint3DpositionD (void) const
double distance (void) const
 returns distance between point on wire and on track.
void distance (double)
double distancenew (void) const
TMLinkneighbor (unsigned int) const
 returns neighbor TMLink.
TMLinklink (void) const
 returns a pointer to a TMLink.
const HepPoint3DarcZ (const unsigned=0) const
 returns UseCathode flag
const HepPoint3Dconf (const HepPoint3D &conf)
void update (const HepPoint3D &onTrack, const HepPoint3D &onWire, unsigned leftRight, double pull)
 sets results of fitting.
const TMDCWireHithit (const TMDCWireHit *)
 sets a pointer to a hit.
TTracktrack (TTrack *)
 sets a pointer to a track.
const HepPoint3DpositionOnWire (const HepPoint3D &)
 sets and returns the closest point on wire to a track.
const HepPoint3DpositionOnWire (double p[3])
const HepPoint3DpositionOnTrack (const HepPoint3D &)
 sets and returns the closest point on track to wire.
const HepPoint3DpositionOnTrack (double p[3])
double dPhi (double)
 sets and returns dPhi to the closest point.
const HepPoint3Dposition (const HepPoint3D &)
 sets and returns position.
const HepPoint3DpositionD (const HepPoint3D &)
void neighbor (unsigned int, TMLink *)
 sets neighbor TMLink.
TMLinklink (TMLink *)
 sets a pointer to a TMLink.
unsigned leftRight (unsigned)
 sets left-right. 0:left, 1:right, 2:wire
double pull (double)
 sets pull.
int zStatus (int)
 sets stereo Hit status
int zPair (int)
 sets id# of the pair
const HepPoint3DarcZ (const HepPoint3D &, const unsigned=0)
 sets usecathode flag
const unsigned fit2D (const unsigned &)
unsigned fit2D (void)
float drift (void) const
 returns/sets drift distance.
float drift (unsigned) const
float drift (float, unsigned)
double cDrift (void) const
double cDrift (unsigned) const
double cDrift (double, unsigned)
float dDrift (void) const
 returns/sets drift distance error.
float dDrift (unsigned) const
float dDrift (float, unsigned)
unsigned tsfTag (void) const
 return tsfTag of links
unsigned tsfTag (unsigned)
double tof (void) const
 return time of flight
double tof (double)
void setDriftTime (double)
 add by jialk returns timeDrift after prop correction
double getDriftTime (void)
double DriftTime (double, double) const
 returs drift time
 TMLink (TTrack *track=0, const TMDCWireHit *hit=0, const HepPoint3D &position=HepPoint3D(), const HepPoint3D &positionD=HepPoint3D(), const double=0.0)
 Constructor.
 TMLink (const TMLink &)
 Copy constructor.
virtual ~TMLink ()
 Destructor.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
const TMDCWireHithit (void) const
 returns a pointer to a hit.
const TMDCWire *const wire (void) const
 returns a pointer to a wire.
TTracktrack (void) const
 returns a pointer to a track.
double pull (void) const
 returns pull.
const HepPoint3DxyPosition (void) const
 returns middle position of a wire. z componet is 0.
const HepPoint3DpositionOnWire (void) const
 returns the closest point on wire to a track.
const HepPoint3DpositionOnTrack (void) const
 returns the closest point on track to wire.
double dPhi (void) const
 returns dPhi to the closest point.
unsigned leftRight (void) const
 returns left-right. 0:left, 1:right, 2:wire
int zStatus (void) const
 returns stauts of stereo hit
int zPair (void) const
 returns id# of the pair, if zStatus == 20 (2 consective hits).
const HepPoint3Dposition (void) const
 returns position.
const HepPoint3DpositionD (void) const
double distance (void) const
 returns distance between point on wire and on track.
void distance (double)
double distancenew (void) const
TMLinkneighbor (unsigned int) const
 returns neighbor TMLink.
TMLinklink (void) const
 returns a pointer to a TMLink.
const HepPoint3DarcZ (const unsigned=0) const
 returns UseCathode flag
const HepPoint3Dconf (const HepPoint3D &conf)
void update (const HepPoint3D &onTrack, const HepPoint3D &onWire, unsigned leftRight, double pull)
 sets results of fitting.
const TMDCWireHithit (const TMDCWireHit *)
 sets a pointer to a hit.
TTracktrack (TTrack *)
 sets a pointer to a track.
const HepPoint3DpositionOnWire (const HepPoint3D &)
 sets and returns the closest point on wire to a track.
const HepPoint3DpositionOnWire (double p[3])
const HepPoint3DpositionOnTrack (const HepPoint3D &)
 sets and returns the closest point on track to wire.
const HepPoint3DpositionOnTrack (double p[3])
double dPhi (double)
 sets and returns dPhi to the closest point.
const HepPoint3Dposition (const HepPoint3D &)
 sets and returns position.
const HepPoint3DpositionD (const HepPoint3D &)
void neighbor (unsigned int, TMLink *)
 sets neighbor TMLink.
TMLinklink (TMLink *)
 sets a pointer to a TMLink.
unsigned leftRight (unsigned)
 sets left-right. 0:left, 1:right, 2:wire
double pull (double)
 sets pull.
int zStatus (int)
 sets stereo Hit status
int zPair (int)
 sets id# of the pair
const HepPoint3DarcZ (const HepPoint3D &, const unsigned=0)
 sets usecathode flag
const unsigned fit2D (const unsigned &)
unsigned fit2D (void)
float drift (void) const
 returns/sets drift distance.
float drift (unsigned) const
float drift (float, unsigned)
double cDrift (void) const
double cDrift (unsigned) const
double cDrift (double, unsigned)
float dDrift (void) const
 returns/sets drift distance error.
float dDrift (unsigned) const
float dDrift (float, unsigned)
unsigned tsfTag (void) const
 return tsfTag of links
unsigned tsfTag (unsigned)
double tof (void) const
 return time of flight
double tof (double)
void setDriftTime (double)
 add by jialk returns timeDrift after prop correction
double getDriftTime (void)
double DriftTime (double, double) const
 returs drift time

Detailed Description

A class to relate TMDCWireHit and TTrack objects.

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

Constructor & Destructor Documentation

◆ TMLink() [1/6]

TMLink::TMLink ( TTrack * track = 0,
const TMDCWireHit * hit = 0,
const HepPoint3D & position = HepPoint3D(),
const HepPoint3D & positionD = HepPoint3D(),
const double dr = 0.0 )

Constructor.

Definition at line 63 of file TMLink.cxx.

65 : _track( t )
66 , _hit( h )
67 , _dPhi( 0 )
68 , _leftRight( 0 )
69 , _pull( 0 )
70 , _position( p )
71 , _positionD( d )
72 , _link( 0 )
73 , _fit2D( 0 )
74 , _tsfTag( 0 ) {
75 if ( h )
76 {
77 _cDrift[0] = dr; // after conformal transformation.
78 _cDrift[1] = dr;
79 _drift[0] = h->drift( 0 );
80 _drift[1] = h->drift( 1 );
81 _dDrift[0] = h->dDrift( 0 );
82 _dDrift[1] = h->dDrift( 1 );
83 }
84 else
85 {
86 _cDrift[0] = 0.;
87 _cDrift[1] = 0.;
88 _drift[0] = 0.;
89 _drift[1] = 0.;
90 _dDrift[0] = 0.;
91 _dDrift[1] = 0.;
92 }
93
94 for ( unsigned i = 0; i < 6; ++i ) _neighbor[i] = NULL;
95 for ( unsigned i = 0; i < 4; ++i ) _arcZ[i];
96
97 if ( h ) { _onTrack = _onWire = h->xyPosition(); }
98}
int t()
Definition t.c:1

Referenced by DriftTime(), link(), link(), neighbor(), neighbor(), and TMLink().

◆ TMLink() [2/6]

TMLink::TMLink ( const TMLink & l)

Copy constructor.

Definition at line 100 of file TMLink.cxx.

101 : _track( l._track )
102 , _hit( l._hit )
103 , _onTrack( l._onTrack )
104 , _onWire( l._onWire )
105 , _position( l._position )
106 , _positionD( l._positionD )
107 , _dPhi( l._dPhi )
108 , _leftRight( l._leftRight )
109 , _pull( l._pull )
110 , _link( l._link )
111 , _distance( l._distance )
112 ,
113 // addition by matsu ( 1999/07/05 )
114 // _mclust(l._mclust ),
115 // _usecathode(l._usecathode ),
116 // end of addition
117 _fit2D( l._fit2D )
118 , _tsfTag( l._tsfTag ) {
119 _drift[0] = l._drift[0];
120 _drift[1] = l._drift[1];
121 _dDrift[0] = l._dDrift[0];
122 _dDrift[1] = l._dDrift[1];
123 _cDrift[0] = l._cDrift[0];
124 _cDrift[1] = l._cDrift[1];
125 for ( unsigned i = 0; i < 6; ++i ) _neighbor[i] = l._neighbor[i];
126 for ( unsigned i = 0; i < 4; ++i ) _arcZ[i] = l._arcZ[i];
127}

◆ ~TMLink() [1/3]

TMLink::~TMLink ( )
virtual

Destructor.

Definition at line 129 of file TMLink.cxx.

129{}

◆ TMLink() [3/6]

TMLink::TMLink ( TTrack * track = 0,
const TMDCWireHit * hit = 0,
const HepPoint3D & position = HepPoint3D(),
const HepPoint3D & positionD = HepPoint3D(),
const double = 0.0 )

Constructor.

◆ TMLink() [4/6]

TMLink::TMLink ( const TMLink & )

Copy constructor.

◆ ~TMLink() [2/3]

virtual TMLink::~TMLink ( )
virtual

Destructor.

◆ TMLink() [5/6]

TMLink::TMLink ( TTrack * track = 0,
const TMDCWireHit * hit = 0,
const HepPoint3D & position = HepPoint3D(),
const HepPoint3D & positionD = HepPoint3D(),
const double = 0.0 )

Constructor.

◆ TMLink() [6/6]

TMLink::TMLink ( const TMLink & )

Copy constructor.

◆ ~TMLink() [3/3]

virtual TMLink::~TMLink ( )
virtual

Destructor.

Member Function Documentation

◆ arcZ() [1/6]

const HepPoint3D & TMLink::arcZ ( const HepPoint3D & az,
const unsigned i = 0 )
inline

sets usecathode flag

sets pointer to the cluster to be fit sets z(phi) before cathode fit sets and returns arc and Z for the curl finder.

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

506 {
507 if ( i < 4 ) return _arcZ[i] = az;
508 std::cerr << "Error!! Please stop!!.....arcZ of TMLink!!! in TrkReco." << std::endl;
509 return _arcZ[0];
510}

◆ arcZ() [2/6]

const HepPoint3D & TMLink::arcZ ( const HepPoint3D & ,
const unsigned = 0 )

sets usecathode flag

sets pointer to the cluster to be fit sets z(phi) before cathode fit sets and returns arc and Z for the curl finder.

◆ arcZ() [3/6]

const HepPoint3D & TMLink::arcZ ( const HepPoint3D & ,
const unsigned = 0 )

sets usecathode flag

sets pointer to the cluster to be fit sets z(phi) before cathode fit sets and returns arc and Z for the curl finder.

◆ arcZ() [4/6]

const HepPoint3D & TMLink::arcZ ( const unsigned i = 0) const
inline

returns UseCathode flag

returns pointer to the cluster to be fit returns arc and Z for the curl finder.

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

500 {
501 if ( i < 4 ) return _arcZ[i];
502 std::cerr << "Error!! Please stop!!.....arcZ of TMLink!!! in TrkReco." << std::endl;
503 return _arcZ[0];
504}

◆ arcZ() [5/6]

const HepPoint3D & TMLink::arcZ ( const unsigned = 0) const

returns UseCathode flag

returns pointer to the cluster to be fit returns arc and Z for the curl finder.

◆ arcZ() [6/6]

const HepPoint3D & TMLink::arcZ ( const unsigned = 0) const

returns UseCathode flag

returns pointer to the cluster to be fit returns arc and Z for the curl finder.

◆ cDrift() [1/9]

double TMLink::cDrift ( double b,
unsigned a )
inline

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

528{ return _cDrift[a] = b; }

◆ cDrift() [2/9]

double TMLink::cDrift ( double ,
unsigned  )

◆ cDrift() [3/9]

double TMLink::cDrift ( double ,
unsigned  )

◆ cDrift() [4/9]

double TMLink::cDrift ( unsigned a) const
inline

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

526{ return _cDrift[a]; }

◆ cDrift() [5/9]

double TMLink::cDrift ( unsigned ) const

◆ cDrift() [6/9]

double TMLink::cDrift ( unsigned ) const

◆ cDrift() [7/9]

double TMLink::cDrift ( void ) const
inline

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

536{ return ( _cDrift[0] + _cDrift[1] ) / 2.; }

◆ cDrift() [8/9]

double TMLink::cDrift ( void ) const

◆ cDrift() [9/9]

double TMLink::cDrift ( void ) const

◆ conf() [1/3]

const HepPoint3D & TMLink::conf ( const HepPoint3D & conf)
inline

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

421{ return _conf = a; }

Referenced by conf(), and neighbor().

◆ conf() [2/3]

const HepPoint3D & TMLink::conf ( const HepPoint3D & conf)

◆ conf() [3/3]

const HepPoint3D & TMLink::conf ( const HepPoint3D & conf)

◆ dDrift() [1/9]

float TMLink::dDrift ( float b,
unsigned a )
inline

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

532{ return _dDrift[a] = b; }

◆ dDrift() [2/9]

float TMLink::dDrift ( float ,
unsigned  )

◆ dDrift() [3/9]

float TMLink::dDrift ( float ,
unsigned  )

◆ dDrift() [4/9]

float TMLink::dDrift ( unsigned a) const
inline

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

530{ return _dDrift[a]; }

◆ dDrift() [5/9]

float TMLink::dDrift ( unsigned ) const

◆ dDrift() [6/9]

float TMLink::dDrift ( unsigned ) const

◆ dDrift() [7/9]

float TMLink::dDrift ( void ) const
inline

returns/sets drift distance error.

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

538{ return ( _dDrift[0] + _dDrift[1] ) / 2.; }

Referenced by TTrackBase::appendByApproach(), TMDC::driftDistance(), T3DLineFitter::fit(), and TTrackManager::makeTds().

◆ dDrift() [8/9]

float TMLink::dDrift ( void ) const

returns/sets drift distance error.

◆ dDrift() [9/9]

float TMLink::dDrift ( void ) const

returns/sets drift distance error.

◆ distance() [1/6]

void TMLink::distance ( double a)
inline

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

439{ _distance = a; }

◆ distance() [2/6]

void TMLink::distance ( double )

◆ distance() [3/6]

void TMLink::distance ( double )

◆ distance() [4/6]

double TMLink::distance ( void ) const
inline

returns distance between point on wire and on track.

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

436{ return ( _onTrack - _onWire ).mag(); }

Referenced by TTrackManager::makeTds(), TTrackManager::salvageAssociateHits(), and TTrackBase::testByApproach().

◆ distance() [5/6]

double TMLink::distance ( void ) const

returns distance between point on wire and on track.

◆ distance() [6/6]

double TMLink::distance ( void ) const

returns distance between point on wire and on track.

◆ distancenew() [1/3]

double TMLink::distancenew ( void ) const
inline

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

437{ return _distance; }

Referenced by TTrackManager::makeTds().

◆ distancenew() [2/3]

double TMLink::distancenew ( void ) const

◆ distancenew() [3/3]

double TMLink::distancenew ( void ) const

◆ dPhi() [1/6]

double TMLink::dPhi ( double a)
inline

sets and returns dPhi to the closest point.

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

405{ return _dPhi = a; }

◆ dPhi() [2/6]

double TMLink::dPhi ( double )

sets and returns dPhi to the closest point.

◆ dPhi() [3/6]

double TMLink::dPhi ( double )

sets and returns dPhi to the closest point.

◆ dPhi() [4/6]

double TMLink::dPhi ( void ) const
inline

returns dPhi to the closest point.

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

403{ return _dPhi; }

Referenced by TTrack::approach(), TTrack::approach2D(), TMDC::driftDistance(), TTrack::fit2D(), and TTrackManager::makeTds().

◆ dPhi() [5/6]

double TMLink::dPhi ( void ) const

returns dPhi to the closest point.

◆ dPhi() [6/6]

double TMLink::dPhi ( void ) const

returns dPhi to the closest point.

◆ drift() [1/9]

float TMLink::drift ( float b,
unsigned a )
inline

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

524{ return _drift[a] = b; }

◆ drift() [2/9]

float TMLink::drift ( float ,
unsigned  )

◆ drift() [3/9]

float TMLink::drift ( float ,
unsigned  )

◆ drift() [4/9]

float TMLink::drift ( unsigned a) const
inline

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

522{ return _drift[a]; }

◆ drift() [5/9]

float TMLink::drift ( unsigned ) const

◆ drift() [6/9]

float TMLink::drift ( unsigned ) const

◆ drift() [7/9]

float TMLink::drift ( void ) const
inline

returns/sets drift distance.

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

534{ return ( _drift[0] + _drift[1] ) / 2.; }

Referenced by TTrackBase::appendByApproach(), TMDC::driftDistance(), T3DLineFitter::fit(), and TTrackManager::makeTds().

◆ drift() [8/9]

float TMLink::drift ( void ) const

returns/sets drift distance.

◆ drift() [9/9]

float TMLink::drift ( void ) const

returns/sets drift distance.

◆ DriftTime() [1/3]

double TMLink::DriftTime ( double ,
double  ) const

returs drift time

◆ DriftTime() [2/3]

double TMLink::DriftTime ( double ,
double  ) const

returs drift time

◆ DriftTime() [3/3]

double TMLink::DriftTime ( double ,
double  ) const

returs drift time

◆ dump() [1/3]

void TMLink::dump ( const std::string & message = std::string( "" ),
const std::string & prefix = std::string( "" ) ) const

dumps debug information.

Definition at line 131 of file TMLink.cxx.

131 {
132 std::cout << pre;
133 if ( _track ) std::cout << "track#=,";
134 if ( _hit ) { _hit->dump( msg ); }
135}

Referenced by TTrackBase::appendByApproach(), and TTrackBase::testByApproach().

◆ dump() [2/3]

void TMLink::dump ( const std::string & message = std::string(""),
const std::string & prefix = std::string("") ) const

dumps debug information.

◆ dump() [3/3]

void TMLink::dump ( const std::string & message = std::string(""),
const std::string & prefix = std::string("") ) const

dumps debug information.

◆ fit2D() [1/6]

const unsigned TMLink::fit2D ( const unsigned & f)
inline

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

518{ return _fit2D = f; }
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")

Referenced by TTrack::fit2D().

◆ fit2D() [2/6]

const unsigned TMLink::fit2D ( const unsigned & )

◆ fit2D() [3/6]

const unsigned TMLink::fit2D ( const unsigned & )

◆ fit2D() [4/6]

unsigned TMLink::fit2D ( void )
inline

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

520{ return _fit2D; }

◆ fit2D() [5/6]

unsigned TMLink::fit2D ( void )

◆ fit2D() [6/6]

unsigned TMLink::fit2D ( void )

◆ getDriftTime() [1/3]

double TMLink::getDriftTime ( void )
inline

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

548{ return _drifttime; }

Referenced by TTrackManager::makeTds().

◆ getDriftTime() [2/3]

double TMLink::getDriftTime ( void )

◆ getDriftTime() [3/3]

double TMLink::getDriftTime ( void )

◆ hit() [1/6]

const TMDCWireHit * TMLink::hit ( const TMDCWireHit * a)
inline

sets a pointer to a hit.

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

359{ return _hit = a; }

◆ hit() [2/6]

const TMDCWireHit * TMLink::hit ( const TMDCWireHit * )

sets a pointer to a hit.

◆ hit() [3/6]

const TMDCWireHit * TMLink::hit ( const TMDCWireHit * )

sets a pointer to a hit.

◆ hit() [4/6]

◆ hit() [5/6]

const TMDCWireHit * TMLink::hit ( void ) const

returns a pointer to a hit.

◆ hit() [6/6]

const TMDCWireHit * TMLink::hit ( void ) const

returns a pointer to a hit.

◆ leftRight() [1/6]

unsigned TMLink::leftRight ( unsigned a)
inline

sets left-right. 0:left, 1:right, 2:wire

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

401{ return _leftRight = a; }

◆ leftRight() [2/6]

unsigned TMLink::leftRight ( unsigned )

sets left-right. 0:left, 1:right, 2:wire

◆ leftRight() [3/6]

unsigned TMLink::leftRight ( unsigned )

sets left-right. 0:left, 1:right, 2:wire

◆ leftRight() [4/6]

unsigned TMLink::leftRight ( void ) const
inline

◆ leftRight() [5/6]

unsigned TMLink::leftRight ( void ) const

returns left-right. 0:left, 1:right, 2:wire

◆ leftRight() [6/6]

unsigned TMLink::leftRight ( void ) const

returns left-right. 0:left, 1:right, 2:wire

◆ link() [1/6]

TMLink * TMLink::link ( TMLink * a)
inline

sets a pointer to a TMLink.

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

434{ return _link = a; }

◆ link() [2/6]

TMLink * TMLink::link ( TMLink * )

sets a pointer to a TMLink.

◆ link() [3/6]

TMLink * TMLink::link ( TMLink * )

sets a pointer to a TMLink.

◆ link() [4/6]

TMLink * TMLink::link ( void ) const
inline

◆ link() [5/6]

TMLink * TMLink::link ( void ) const

returns a pointer to a TMLink.

◆ link() [6/6]

TMLink * TMLink::link ( void ) const

returns a pointer to a TMLink.

◆ neighbor() [1/6]

TMLink * TMLink::neighbor ( unsigned int ) const

returns neighbor TMLink.

Referenced by findIsolatedCloseHits(), and TCircle::weight().

◆ neighbor() [2/6]

TMLink * TMLink::neighbor ( unsigned int ) const

returns neighbor TMLink.

◆ neighbor() [3/6]

TMLink * TMLink::neighbor ( unsigned int ) const

returns neighbor TMLink.

◆ neighbor() [4/6]

void TMLink::neighbor ( unsigned int ,
TMLink *  )

sets neighbor TMLink.

◆ neighbor() [5/6]

void TMLink::neighbor ( unsigned int ,
TMLink *  )

sets neighbor TMLink.

◆ neighbor() [6/6]

void TMLink::neighbor ( unsigned int ,
TMLink *  )

sets neighbor TMLink.

◆ position() [1/6]

const HepPoint3D & TMLink::position ( const HepPoint3D & a)
inline

sets and returns position.

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

409{ return _position = a; }

◆ position() [2/6]

const HepPoint3D & TMLink::position ( const HepPoint3D & )

sets and returns position.

◆ position() [3/6]

const HepPoint3D & TMLink::position ( const HepPoint3D & )

sets and returns position.

◆ position() [4/6]

◆ position() [5/6]

const HepPoint3D & TMLink::position ( void ) const

returns position.

◆ position() [6/6]

const HepPoint3D & TMLink::position ( void ) const

returns position.

◆ positionD() [1/6]

const HepPoint3D & TMLink::positionD ( const HepPoint3D & a)
inline

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

413{ return _positionD = a; }

◆ positionD() [2/6]

const HepPoint3D & TMLink::positionD ( const HepPoint3D & )

◆ positionD() [3/6]

const HepPoint3D & TMLink::positionD ( const HepPoint3D & )

◆ positionD() [4/6]

const HepPoint3D & TMLink::positionD ( void ) const
inline

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

411{ return _positionD; }

Referenced by TMLink().

◆ positionD() [5/6]

const HepPoint3D & TMLink::positionD ( void ) const

◆ positionD() [6/6]

const HepPoint3D & TMLink::positionD ( void ) const

◆ positionOnTrack() [1/9]

const HepPoint3D & TMLink::positionOnTrack ( const HepPoint3D & a)
inline

sets and returns the closest point on track to wire.

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

388 {
389 return _onTrack = a;
390}

◆ positionOnTrack() [2/9]

const HepPoint3D & TMLink::positionOnTrack ( const HepPoint3D & )

sets and returns the closest point on track to wire.

◆ positionOnTrack() [3/9]

const HepPoint3D & TMLink::positionOnTrack ( const HepPoint3D & )

sets and returns the closest point on track to wire.

◆ positionOnTrack() [4/9]

const HepPoint3D & TMLink::positionOnTrack ( double p[3])
inline

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

392 {
393 _onTrack.setX( p[0] );
394 _onTrack.setY( p[1] );
395 _onTrack.setZ( p[2] );
396 return _onTrack;
397}

◆ positionOnTrack() [5/9]

const HepPoint3D & TMLink::positionOnTrack ( double p[3])

◆ positionOnTrack() [6/9]

const HepPoint3D & TMLink::positionOnTrack ( double p[3])

◆ positionOnTrack() [7/9]

◆ positionOnTrack() [8/9]

const HepPoint3D & TMLink::positionOnTrack ( void ) const

returns the closest point on track to wire.

◆ positionOnTrack() [9/9]

const HepPoint3D & TMLink::positionOnTrack ( void ) const

returns the closest point on track to wire.

◆ positionOnWire() [1/9]

const HepPoint3D & TMLink::positionOnWire ( const HepPoint3D & a)
inline

sets and returns the closest point on wire to a track.

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

379{ return _onWire = a; }

◆ positionOnWire() [2/9]

const HepPoint3D & TMLink::positionOnWire ( const HepPoint3D & )

sets and returns the closest point on wire to a track.

◆ positionOnWire() [3/9]

const HepPoint3D & TMLink::positionOnWire ( const HepPoint3D & )

sets and returns the closest point on wire to a track.

◆ positionOnWire() [4/9]

const HepPoint3D & TMLink::positionOnWire ( double p[3])
inline

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

381 {
382 _onWire.setX( p[0] );
383 _onWire.setY( p[1] );
384 _onWire.setZ( p[2] );
385 return _onWire;
386}

◆ positionOnWire() [5/9]

const HepPoint3D & TMLink::positionOnWire ( double p[3])

◆ positionOnWire() [6/9]

const HepPoint3D & TMLink::positionOnWire ( double p[3])

◆ positionOnWire() [7/9]

const HepPoint3D & TMLink::positionOnWire ( void ) const
inline

◆ positionOnWire() [8/9]

const HepPoint3D & TMLink::positionOnWire ( void ) const

returns the closest point on wire to a track.

◆ positionOnWire() [9/9]

const HepPoint3D & TMLink::positionOnWire ( void ) const

returns the closest point on wire to a track.

◆ pull() [1/6]

double TMLink::pull ( double a)
inline

sets pull.

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

373{ return _pull = a; }

◆ pull() [2/6]

double TMLink::pull ( double )

sets pull.

◆ pull() [3/6]

double TMLink::pull ( double )

sets pull.

◆ pull() [4/6]

double TMLink::pull ( void ) const
inline

◆ pull() [5/6]

double TMLink::pull ( void ) const

returns pull.

◆ pull() [6/6]

double TMLink::pull ( void ) const

returns pull.

◆ setDriftTime() [1/3]

void TMLink::setDriftTime ( double time)
inline

add by jialk returns timeDrift after prop correction

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

550{ _drifttime = time; }
Double_t time

◆ setDriftTime() [2/3]

void TMLink::setDriftTime ( double )

add by jialk returns timeDrift after prop correction

◆ setDriftTime() [3/3]

void TMLink::setDriftTime ( double )

add by jialk returns timeDrift after prop correction

◆ tof() [1/6]

double TMLink::tof ( double a)
inline

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

546{ return _tof = a; }

◆ tof() [2/6]

double TMLink::tof ( double )

◆ tof() [3/6]

double TMLink::tof ( double )

◆ tof() [4/6]

double TMLink::tof ( void ) const
inline

return time of flight

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

544{ return _tof; }

◆ tof() [5/6]

double TMLink::tof ( void ) const

return time of flight

◆ tof() [6/6]

double TMLink::tof ( void ) const

return time of flight

◆ track() [1/6]

TTrack * TMLink::track ( TTrack * a)
inline

sets a pointer to a track.

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

361{ return _track = a; }

◆ track() [2/6]

TTrack * TMLink::track ( TTrack * )

sets a pointer to a track.

◆ track() [3/6]

TTrack * TMLink::track ( TTrack * )

sets a pointer to a track.

◆ track() [4/6]

TTrack * TMLink::track ( void ) const
inline

returns a pointer to a track.

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

357{ return _track; }

Referenced by TMLink().

◆ track() [5/6]

TTrack * TMLink::track ( void ) const

returns a pointer to a track.

◆ track() [6/6]

TTrack * TMLink::track ( void ) const

returns a pointer to a track.

◆ tsfTag() [1/6]

unsigned TMLink::tsfTag ( unsigned a)
inline

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

542{ return _tsfTag = a; }

◆ tsfTag() [2/6]

unsigned TMLink::tsfTag ( unsigned )

◆ tsfTag() [3/6]

unsigned TMLink::tsfTag ( unsigned )

◆ tsfTag() [4/6]

unsigned TMLink::tsfTag ( void ) const
inline

return tsfTag of links

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

540{ return _tsfTag; }

Referenced by TSegment::splitTsf().

◆ tsfTag() [5/6]

unsigned TMLink::tsfTag ( void ) const

return tsfTag of links

◆ tsfTag() [6/6]

unsigned TMLink::tsfTag ( void ) const

return tsfTag of links

◆ update() [1/3]

void TMLink::update ( const HepPoint3D & onTrack,
const HepPoint3D & onWire,
unsigned leftRight,
double pull )
inline

sets results of fitting.

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

364 {
365 _onTrack = onTrack;
366 _onWire = onWire;
367 _leftRight = leftRight;
368 _pull = pull;
369}

Referenced by T3DLineFitter::fit(), and TTrack::fit2D().

◆ update() [2/3]

void TMLink::update ( const HepPoint3D & onTrack,
const HepPoint3D & onWire,
unsigned leftRight,
double pull )

sets results of fitting.

◆ update() [3/3]

void TMLink::update ( const HepPoint3D & onTrack,
const HepPoint3D & onWire,
unsigned leftRight,
double pull )

sets results of fitting.

◆ wire() [1/3]

◆ wire() [2/3]

const TMDCWire *const TMLink::wire ( void ) const

returns a pointer to a wire.

◆ wire() [3/3]

const TMDCWire *const TMLink::wire ( void ) const

returns a pointer to a wire.

◆ xyPosition() [1/3]

const HepPoint3D & TMLink::xyPosition ( void ) const

returns middle position of a wire. z componet is 0.

Definition at line 26 of file TMLink.cxx.

26{ return _hit->wire()->xyPosition(); }

Referenced by TSegment0::solveDualHits(), and TSegment::solveDualHits().

◆ xyPosition() [2/3]

const HepPoint3D & TMLink::xyPosition ( void ) const

returns middle position of a wire. z componet is 0.

◆ xyPosition() [3/3]

const HepPoint3D & TMLink::xyPosition ( void ) const

returns middle position of a wire. z componet is 0.

◆ zPair() [1/6]

int TMLink::zPair ( int a)
inline

sets id# of the pair

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

469{ return _zPair = a; }

◆ zPair() [2/6]

int TMLink::zPair ( int )

sets id# of the pair

◆ zPair() [3/6]

int TMLink::zPair ( int )

sets id# of the pair

◆ zPair() [4/6]

int TMLink::zPair ( void ) const
inline

returns id# of the pair, if zStatus == 20 (2 consective hits).

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

467{ return _zPair; }

Referenced by TBuilder0::buildStereo().

◆ zPair() [5/6]

int TMLink::zPair ( void ) const

returns id# of the pair, if zStatus == 20 (2 consective hits).

◆ zPair() [6/6]

int TMLink::zPair ( void ) const

returns id# of the pair, if zStatus == 20 (2 consective hits).

◆ zStatus() [1/6]

int TMLink::zStatus ( int a)
inline

sets stereo Hit status

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

465{ return _zStatus = a; }

◆ zStatus() [2/6]

int TMLink::zStatus ( int )

sets stereo Hit status

◆ zStatus() [3/6]

int TMLink::zStatus ( int )

sets stereo Hit status

◆ zStatus() [4/6]

int TMLink::zStatus ( void ) const
inline

returns stauts of stereo hit

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

463{ return _zStatus; }

Referenced by TBuilder0::buildStereo(), and Dump().

◆ zStatus() [5/6]

int TMLink::zStatus ( void ) const

returns stauts of stereo hit

◆ zStatus() [6/6]

int TMLink::zStatus ( void ) const

returns stauts of stereo hit


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