#include <TMLink.h>
Public Member Functions | |
const HepPoint3D & | arcZ (const HepPoint3D &, const unsigned=0) |
sets and returns arc and Z for the curl finder. | |
const HepPoint3D & | arcZ (const unsigned=0) const |
returns arc and Z for the curl finder. | |
const HepPoint3D & | arcZ (const HepPoint3D &, const unsigned=0) |
sets and returns arc and Z for the curl finder. | |
const HepPoint3D & | arcZ (const unsigned=0) const |
returns arc and Z for the curl finder. | |
double | cDrift (double, unsigned) |
double | cDrift (unsigned) const |
double | cDrift (void) const |
double | cDrift (double, unsigned) |
double | cDrift (unsigned) const |
double | cDrift (void) const |
const HepPoint3D & | conf (const HepPoint3D &conf) |
const HepPoint3D & | conf (const HepPoint3D &conf) |
float | dDrift (float, unsigned) |
float | dDrift (unsigned) const |
float | dDrift (void) const |
returns/sets drift distance error. | |
float | dDrift (float, unsigned) |
float | dDrift (unsigned) const |
float | dDrift (void) const |
returns/sets drift distance error. | |
double | distance (void) const |
returns distance between point on wire and on track. | |
double | distance (void) const |
returns distance between point on wire and on track. | |
double | dPhi (double) |
sets and returns dPhi to the closest point. | |
double | dPhi (void) const |
returns dPhi to the closest point. | |
double | dPhi (double) |
sets and returns dPhi to the closest point. | |
double | dPhi (void) const |
returns dPhi to the closest point. | |
float | drift (float, unsigned) |
float | drift (unsigned) const |
float | drift (void) const |
returns/sets drift distance. | |
float | drift (float, unsigned) |
float | drift (unsigned) const |
float | drift (void) const |
returns/sets drift distance. | |
double | DriftTime (double, double) const |
returs drift time | |
double | DriftTime (double, double) const |
returs drift time | |
void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const |
dumps debug information. | |
void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const |
dumps debug information. | |
unsigned | fit2D (void) |
const unsigned | fit2D (const unsigned &) |
unsigned | fit2D (void) |
const unsigned | fit2D (const unsigned &) |
double | getDriftTime (void) |
double | getDriftTime (void) |
const TMDCWireHit * | hit (const TMDCWireHit *) |
sets a pointer to a hit. | |
const TMDCWireHit * | hit (void) const |
returns a pointer to a hit. | |
const TMDCWireHit * | hit (const TMDCWireHit *) |
sets a pointer to a hit. | |
const TMDCWireHit * | hit (void) const |
returns a pointer to a hit. | |
unsigned | leftRight (unsigned) |
sets left-right. 0:left, 1:right, 2:wire | |
unsigned | leftRight (void) const |
returns left-right. 0:left, 1:right, 2:wire | |
unsigned | leftRight (unsigned) |
sets left-right. 0:left, 1:right, 2:wire | |
unsigned | leftRight (void) const |
returns left-right. 0:left, 1:right, 2:wire | |
TMLink * | link (TMLink *) |
sets a pointer to a TMLink. | |
TMLink * | link (void) const |
returns a pointer to a TMLink. | |
TMLink * | link (TMLink *) |
sets a pointer to a TMLink. | |
TMLink * | link (void) const |
returns a pointer to a TMLink. | |
void | neighbor (unsigned int, TMLink *) |
sets neighbor TMLink. | |
TMLink * | neighbor (unsigned int) const |
returns neighbor TMLink. | |
void | neighbor (unsigned int, TMLink *) |
sets neighbor TMLink. | |
TMLink * | neighbor (unsigned int) const |
returns neighbor TMLink. | |
const HepPoint3D & | position (const HepPoint3D &) |
sets and returns position. | |
const HepPoint3D & | position (void) const |
returns position. | |
const HepPoint3D & | position (const HepPoint3D &) |
sets and returns position. | |
const HepPoint3D & | position (void) const |
returns position. | |
const HepPoint3D & | positionD (const HepPoint3D &) |
const HepPoint3D & | positionD (void) const |
const HepPoint3D & | positionD (const HepPoint3D &) |
const HepPoint3D & | positionD (void) const |
const HepPoint3D & | positionOnTrack (double p[3]) |
const HepPoint3D & | positionOnTrack (const HepPoint3D &) |
sets and returns the closest point on track to wire. | |
const HepPoint3D & | positionOnTrack (void) const |
returns the closest point on track to wire. | |
const HepPoint3D & | positionOnTrack (double p[3]) |
const HepPoint3D & | positionOnTrack (const HepPoint3D &) |
sets and returns the closest point on track to wire. | |
const HepPoint3D & | positionOnTrack (void) const |
returns the closest point on track to wire. | |
const HepPoint3D & | positionOnWire (double p[3]) |
const HepPoint3D & | positionOnWire (const HepPoint3D &) |
sets and returns the closest point on wire to a track. | |
const HepPoint3D & | positionOnWire (void) const |
returns the closest point on wire to a track. | |
const HepPoint3D & | positionOnWire (double p[3]) |
const HepPoint3D & | positionOnWire (const HepPoint3D &) |
sets and returns the closest point on wire to a track. | |
const HepPoint3D & | positionOnWire (void) const |
returns the closest point on wire to a track. | |
double | pull (double) |
sets pull. | |
double | pull (void) const |
returns pull. | |
double | pull (double) |
sets pull. | |
double | pull (void) const |
returns pull. | |
void | setDriftTime (double) |
add by jialk returns timeDrift after prop correction | |
void | setDriftTime (double) |
add by jialk returns timeDrift after prop correction | |
TMLink (const TMLink &) | |
Copy constructor. | |
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. | |
TMLink (TTrack *track=0, const TMDCWireHit *hit=0, const HepPoint3D &position=HepPoint3D(), const HepPoint3D &positionD=HepPoint3D(), const double=0.0) | |
Constructor. | |
double | tof (double) |
double | tof (void) const |
return time of flight | |
double | tof (double) |
double | tof (void) const |
return time of flight | |
TTrack * | track (TTrack *) |
sets a pointer to a track. | |
TTrack * | track (void) const |
returns a pointer to a track. | |
TTrack * | track (TTrack *) |
sets a pointer to a track. | |
TTrack * | track (void) const |
returns a pointer to a track. | |
unsigned | tsfTag (unsigned) |
unsigned | tsfTag (void) const |
return tsfTag of links | |
unsigned | tsfTag (unsigned) |
unsigned | tsfTag (void) const |
return tsfTag of links | |
void | update (const HepPoint3D &onTrack, const HepPoint3D &onWire, unsigned leftRight, double pull) |
sets results of fitting. | |
void | update (const HepPoint3D &onTrack, const HepPoint3D &onWire, unsigned leftRight, double pull) |
sets results of fitting. | |
const TMDCWire *const | wire (void) const |
returns a pointer to a wire. | |
const TMDCWire *const | wire (void) const |
returns a pointer to a wire. | |
const HepPoint3D & | xyPosition (void) const |
returns middle position of a wire. z componet is 0. | |
const HepPoint3D & | xyPosition (void) const |
returns middle position of a wire. z componet is 0. | |
int | zPair (int) |
sets id# of the pair | |
int | zPair (void) const |
returns id# of the pair, if zStatus == 20 (2 consective hits). | |
int | zPair (int) |
sets id# of the pair | |
int | zPair (void) const |
returns id# of the pair, if zStatus == 20 (2 consective hits). | |
int | zStatus (int) |
sets stereo Hit status | |
int | zStatus (void) const |
returns stauts of stereo hit | |
int | zStatus (int) |
sets stereo Hit status | |
int | zStatus (void) const |
returns stauts of stereo hit | |
virtual | ~TMLink () |
Destructor. | |
virtual | ~TMLink () |
Destructor. | |
Private Attributes | |
HepPoint3D | _arcZ [4] |
double | _cDrift [2] |
HepPoint3D | _conf |
float | _dDrift [2] |
double | _dPhi |
float | _drift [2] |
double | _drifttime |
unsigned | _fit2D |
const TMDCWireHit * | _hit |
const TMDCWireHit * | _hit |
unsigned | _leftRight |
TMLink * | _link |
TMLink * | _link |
TMLink * | _neighbor [6] |
TMLink * | _neighbor [6] |
HepPoint3D | _onTrack |
HepPoint3D | _onWire |
HepPoint3D | _position |
HepPoint3D | _positionD |
double | _pull |
double | _tof |
TTrack * | _track |
TTrack * | _track |
unsigned | _tsfTag |
int | _zPair |
int | _zStatus |
|
Constructor.
00068 : _track(t), 00069 _hit(h), 00070 _dPhi(0), 00071 _leftRight(0), 00072 _pull(0), 00073 _position(p), 00074 _positionD(d), 00075 _link(0), 00076 _fit2D(0), 00077 _tsfTag(0) { 00078 if (h) { 00079 _cDrift[0] = dr; //after conformal transformation. 00080 _cDrift[1] = dr; 00081 _drift[0] = h->drift(0); 00082 _drift[1] = h->drift(1); 00083 _dDrift[0] = h->dDrift(0); 00084 _dDrift[1] = h->dDrift(1); 00085 } 00086 else { 00087 _cDrift[0] = 0.; 00088 _cDrift[1] = 0.; 00089 _drift[0] = 0.; 00090 _drift[1] = 0.; 00091 _dDrift[0] = 0.; 00092 _dDrift[1] = 0.; 00093 } 00094 00095 for (unsigned i = 0; i < 6; ++i) 00096 _neighbor[i] = NULL; 00097 for (unsigned i = 0; i < 4; ++i) 00098 _arcZ[i]; 00099 00100 00101 if (h) { 00102 _onTrack = _onWire = h->xyPosition(); 00103 } 00104 }
|
|
Copy constructor.
00107 : _track(l._track), 00108 _hit(l._hit), 00109 _onTrack(l._onTrack), 00110 _onWire(l._onWire), 00111 _position(l._position), 00112 _positionD(l._positionD), 00113 _dPhi(l._dPhi), 00114 _leftRight(l._leftRight), 00115 _pull(l._pull), 00116 _link(l._link), 00117 // addition by matsu ( 1999/07/05 ) 00118 // _mclust(l._mclust ), 00119 // _usecathode(l._usecathode ), 00120 // end of addition 00121 _fit2D(l._fit2D), 00122 _tsfTag(l._tsfTag) { 00123 _drift[0] = l._drift[0]; 00124 _drift[1] = l._drift[1]; 00125 _dDrift[0] = l._dDrift[0]; 00126 _dDrift[1] = l._dDrift[1]; 00127 _cDrift[0] = l._cDrift[0]; 00128 _cDrift[1] = l._cDrift[1]; 00129 for (unsigned i = 0; i < 6; ++i) 00130 _neighbor[i] = l._neighbor[i]; 00131 for (unsigned i = 0; i < 4; ++i) 00132 _arcZ[i] = l._arcZ[i]; 00133 00134 }
|
|
Destructor.
00136 { 00137 }
|
|
Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
sets and returns arc and Z for the curl finder.
|
|
returns arc and Z for the curl finder.
|
|
sets and returns arc and Z for the curl finder.
00652 { 00653 if(i < 4)return _arcZ[i] = az; 00654 std::cerr << "Error!! Please stop!!.....arcZ of TMLink!!! in TrkReco." << std::endl; 00655 return _arcZ[0]; 00656 }
|
|
returns arc and Z for the curl finder.
00644 { 00645 if(i < 4)return _arcZ[i]; 00646 std::cerr << "Error!! Please stop!!.....arcZ of TMLink!!! in TrkReco." << std::endl; 00647 return _arcZ[0]; 00648 }
|
|
|
|
|
|
|
|
00696 { 00697 return _cDrift[a] = b; 00698 }
|
|
00690 { 00691 return _cDrift[a]; 00692 }
|
|
|
|
|
|
00529 { 00530 return _conf = a; 00531 }
|
|
|
|
|
|
returns/sets drift distance error.
|
|
00708 { 00709 return _dDrift[a] = b; 00710 }
|
|
00702 { 00703 return _dDrift[a]; 00704 }
|
|
returns/sets drift distance error.
|
|
returns distance between point on wire and on track.
|
|
returns distance between point on wire and on track.
00562 { 00563 return (_onTrack - _onWire).mag(); 00564 }
|
|
sets and returns dPhi to the closest point.
|
|
returns dPhi to the closest point.
|
|
sets and returns dPhi to the closest point.
00493 { 00494 return _dPhi = a; 00495 }
|
|
returns dPhi to the closest point.
00487 {
00488 return _dPhi;
00489 }
|
|
|
|
|
|
returns/sets drift distance.
|
|
00684 { 00685 return _drift[a] = b; 00686 }
|
|
00678 { 00679 return _drift[a]; 00680 }
|
|
returns/sets drift distance.
|
|
returs drift time
|
|
returs drift time
|
|
dumps debug information.
|
|
dumps debug information.
00140 { 00141 std::cout << pre; 00142 if (_track) std::cout << "track#=,"; 00143 if (_hit) { 00144 _hit->dump(msg); 00145 } 00146 }
|
|
|
|
|
|
00672 {
00673 return _fit2D;
00674 }
|
|
00666 { 00667 return _fit2D = f; 00668 }
|
|
|
|
00756 {
00757 return _drifttime;
00758 }
|
|
sets a pointer to a hit.
|
|
returns a pointer to a hit.
|
|
sets a pointer to a hit.
00397 { 00398 return _hit = a; 00399 }
|
|
returns a pointer to a hit.
00385 {
00386 return _hit;
00387 }
|
|
sets left-right. 0:left, 1:right, 2:wire
|
|
returns left-right. 0:left, 1:right, 2:wire
|
|
sets left-right. 0:left, 1:right, 2:wire
00481 { 00482 return _leftRight = a; 00483 }
|
|
returns left-right. 0:left, 1:right, 2:wire
00475 {
00476 return _leftRight;
00477 }
|
|
sets a pointer to a TMLink.
|
|
returns a pointer to a TMLink.
|
|
sets a pointer to a TMLink.
00556 { 00557 return _link = a; 00558 }
|
|
returns a pointer to a TMLink.
00550 {
00551 return _link;
00552 }
|
|
sets neighbor TMLink.
|
|
returns neighbor TMLink.
|
|
sets neighbor TMLink.
00535 { 00536 if(n <= 6) 00537 _neighbor[n] = neighbor; 00538 }
|
|
returns neighbor TMLink.
00542 { 00543 if(n <= 6) 00544 return _neighbor[n]; 00545 return NULL; 00546 }
|
|
sets and returns position.
|
|
returns position.
|
|
sets and returns position.
00505 { 00506 return _position = a; 00507 }
|
|
returns position.
00499 {
00500 return _position;
00501 }
|
|
|
|
|
|
00517 { 00518 return _positionD = a; 00519 }
|
|
00511 {
00512 return _positionD;
00513 }
|
|
|
|
sets and returns the closest point on track to wire.
|
|
returns the closest point on track to wire.
|
|
00466 { 00467 _onTrack.setX(p[0]); 00468 _onTrack.setY(p[1]); 00469 _onTrack.setZ(p[2]); 00470 return _onTrack; 00471 }
|
|
sets and returns the closest point on track to wire.
00460 { 00461 return _onTrack = a; 00462 }
|
|
returns the closest point on track to wire.
00439 {
00440 return _onTrack;
00441 }
|
|
|
|
sets and returns the closest point on wire to a track.
|
|
returns the closest point on wire to a track.
|
|
00451 { 00452 _onWire.setX(p[0]); 00453 _onWire.setY(p[1]); 00454 _onWire.setZ(p[2]); 00455 return _onWire; 00456 }
|
|
sets and returns the closest point on wire to a track.
00445 { 00446 return _onWire = a; 00447 }
|
|
returns the closest point on wire to a track.
00433 {
00434 return _onWire;
00435 }
|
|
sets pull.
|
|
returns pull.
|
|
sets pull.
00427 { 00428 return _pull = a; 00429 }
|
|
returns pull.
00421 {
00422 return _pull;
00423 }
|
|
add by jialk returns timeDrift after prop correction
|
|
add by jialk returns timeDrift after prop correction
00762 { 00763 _drifttime = time; 00764 00765 }
|
|
|
|
return time of flight
|
|
00750 { 00751 return _tof = a; 00752 }
|
|
return time of flight
00744 {
00745 return _tof;
00746 }
|
|
sets a pointer to a track.
|
|
returns a pointer to a track.
|
|
sets a pointer to a track.
00403 { 00404 return _track = a; 00405 }
|
|
returns a pointer to a track.
00391 {
00392 return _track;
00393 }
|
|
|
|
return tsfTag of links
|
|
00738 { 00739 return _tsfTag = a; 00740 }
|
|
return tsfTag of links
00732 {
00733 return _tsfTag;
00734 }
|
|
sets results of fitting.
|
|
sets results of fitting.
00412 { 00413 _onTrack = onTrack; 00414 _onWire = onWire; 00415 _leftRight = leftRight; 00416 _pull = pull; 00417 }
|
|
returns a pointer to a wire.
|
|
returns a pointer to a wire.
|
|
returns middle position of a wire. z componet is 0.
|
|
returns middle position of a wire. z componet is 0.
00028 { 00029 return _hit->wire()->xyPosition(); 00030 }
|
|
sets id# of the pair
|
|
returns id# of the pair, if zStatus == 20 (2 consective hits).
|
|
sets id# of the pair
00609 { 00610 return _zPair = a; 00611 }
|
|
returns id# of the pair, if zStatus == 20 (2 consective hits).
00603 {
00604 return _zPair;
00605 }
|
|
sets stereo Hit status
|
|
returns stauts of stereo hit
|
|
sets stereo Hit status
00597 { 00598 return _zStatus = a; 00599 }
|
|
returns stauts of stereo hit
00591 {
00592 return _zStatus;
00593 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|