BOSS 7.1.2
BESIII Offline Software System
|
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 TMDCWireHit * | hit (void) const |
returns a pointer to a hit. | |
const TMDCWire *const | wire (void) const |
returns a pointer to a wire. | |
TTrack * | track (void) const |
returns a pointer to a track. | |
double | pull (void) const |
returns pull. | |
const HepPoint3D & | xyPosition (void) const |
returns middle position of a wire. z componet is 0. | |
const HepPoint3D & | positionOnWire (void) const |
returns the closest point on wire to a track. | |
const HepPoint3D & | positionOnTrack (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 HepPoint3D & | position (void) const |
returns position. | |
const HepPoint3D & | positionD (void) const |
double | distance (void) const |
returns distance between point on wire and on track. | |
double | distance (double) |
double | distancenew (void) const |
TMLink * | neighbor (unsigned int) const |
returns neighbor TMLink. | |
TMLink * | link (void) const |
returns a pointer to a TMLink. | |
const HepPoint3D & | arcZ (const unsigned=0) const |
returns UseCathode flag | |
const HepPoint3D & | conf (const HepPoint3D &conf) |
void | update (const HepPoint3D &onTrack, const HepPoint3D &onWire, unsigned leftRight, double pull) |
sets results of fitting. | |
const TMDCWireHit * | hit (const TMDCWireHit *) |
sets a pointer to a hit. | |
TTrack * | track (TTrack *) |
sets a pointer to a track. | |
const HepPoint3D & | positionOnWire (const HepPoint3D &) |
sets and returns the closest point on wire to a track. | |
const HepPoint3D & | positionOnWire (double p[3]) |
const HepPoint3D & | positionOnTrack (const HepPoint3D &) |
sets and returns the closest point on track to wire. | |
const HepPoint3D & | positionOnTrack (double p[3]) |
double | dPhi (double) |
sets and returns dPhi to the closest point. | |
const HepPoint3D & | position (const HepPoint3D &) |
sets and returns position. | |
const HepPoint3D & | positionD (const HepPoint3D &) |
void | neighbor (unsigned int, TMLink *) |
sets neighbor TMLink. | |
TMLink * | link (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 HepPoint3D & | arcZ (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 | |
A class to relate TMDCWireHit and TTrack objects.
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 67 of file TMLink.cxx.
TMLink::TMLink | ( | const TMLink & | l | ) |
Copy constructor.
Definition at line 106 of file TMLink.cxx.
|
virtual |
|
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 672 of file TMLink.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
returns/sets drift distance error.
Definition at line 746 of file TMLink.h.
Referenced by TTrackBase::appendByApproach(), TMDC::driftDistance(), T3DLineFitter::fit(), and TTrackManager::makeTds().
|
inline |
|
inline |
returns distance between point on wire and on track.
Definition at line 567 of file TMLink.h.
Referenced by TTrackManager::makeTds(), TTrackManager::salvageAssociateHits(), and TTrackBase::testByApproach().
|
inline |
Definition at line 573 of file TMLink.h.
Referenced by TTrackManager::makeTds().
|
inline |
|
inline |
returns dPhi to the closest point.
Definition at line 492 of file TMLink.h.
Referenced by TTrack::approach(), TTrack::approach2D(), TMDC::driftDistance(), TTrack::fit2D(), and TTrackManager::makeTds().
|
inline |
|
inline |
|
inline |
returns/sets drift distance.
Definition at line 734 of file TMLink.h.
Referenced by TTrackBase::appendByApproach(), TMDC::driftDistance(), T3DLineFitter::fit(), and TTrackManager::makeTds().
double TMLink::DriftTime | ( | double | , |
double | ) const |
returs drift time
void TMLink::dump | ( | const std::string & | message = std::string(""), |
const std::string & | prefix = std::string("") ) const |
dumps debug information.
Definition at line 141 of file TMLink.cxx.
Referenced by TTrackBase::appendByApproach(), and TTrackBase::testByApproach().
|
inline |
Definition at line 686 of file TMLink.h.
Referenced by TTrack::fit2D().
|
inline |
|
inline |
Definition at line 776 of file TMLink.h.
Referenced by TTrackManager::makeTds().
|
inline |
|
inline |
returns a pointer to a hit.
Definition at line 390 of file TMLink.h.
Referenced by TSegmentCurl::append(), TSegmentCurl::append(), TTrackBase::append(), TTrackBase::appendByApproach(), TLine0::appendByszdistance(), TMLine::appendByszdistance(), TTrack::assign(), TBuilder0::buildRphi(), TBuilder0::buildStereo(), TBuilderCosmic::buildStereo(), TBuilderCurl::buildStereo(), calVirtualCircle(), TTrackManager::closest(), TTrackManager::divide(), TConformalFinder0::doit(), TMDC::driftDistance(), Dump(), T3DLineFitter::fit(), TCircleFitter::fit(), TLine0::fit2(), TMLine::fit2(), TTrack::fit2D(), TLine0::fit2p(), TMLine::fit2p(), TLine0::fit2s(), TMLine::fit2s(), TLine0::fit2sp(), TMLine::fit2sp(), TCircle::fitForCurl(), Links2HEP(), TTrackManager::makeTds(), TTrackManager::merge(), offsetBorder(), TLine0::reducedChi2(), TMLine::reducedChi2(), TLine0::refine(), TMLine::refine(), TSegmentCurl::remove(), TSegmentCurl::remove(), TLine0::removeChits(), TMLine::removeChits(), TBuilder0::salvage(), TTrackManager::salvageAssociateHits(), TTrackManager::saveMCTables(), TSegment::solveLR(), TTrack::szPosition(), TTrack::szPosition(), TTrackBase::testByApproach(), TTrackBase::update(), and TCircle::weight().
|
inline |
|
inline |
returns left-right. 0:left, 1:right, 2:wire
Definition at line 480 of file TMLink.h.
Referenced by TBuilder0::buildStereo(), TBuilder::buildStereo(), TBuilderCosmic::buildStereo(), TBuilder0::buildStereo0(), TPerfectFinder::doit(), Dump(), TTrackManager::makeTds(), TTrack::szPosition(), TTrack::szPosition(), and update().
|
inline |
returns a pointer to a TMLink.
Definition at line 555 of file TMLink.h.
Referenced by TBuilder0::buildStereo(), TBuilder::buildStereo(), TBuilderCosmic::buildStereo(), and TBuilder0::buildStereo0().
TMLink * TMLink::neighbor | ( | unsigned int | ) | const |
returns neighbor TMLink.
Referenced by findIsolatedCloseHits(), and TCircle::weight().
|
inline |
|
inline |
returns position.
Definition at line 504 of file TMLink.h.
Referenced by TBuilder0::buildStereo(), TBuilderCosmic::buildStereo(), TBuilder0::buildStereo0(), TLine0::chi2(), TMLine::chi2(), TMDCTsf::createTsf(), TLine0::distance(), TMLine::distance(), doLineFit(), Dump(), THistogram::fillPhi(), THistogram::fillX(), THistogram::fillY(), TLine0::fit2(), TMLine::fit2(), TLine0::fit2p(), TMLine::fit2p(), TLine0::fit2s(), TMLine::fit2s(), TLine0::fit2sp(), TMLine::fit2sp(), TBuilder::initialLine(), TBuilder::initialLineOld(), TLine0::reducedChi2(), TMLine::reducedChi2(), TLine0::refine(), TMLine::refine(), TLine0::removeChits(), TMLine::removeChits(), TTrack::szPosition(), and TTrack::szPosition().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
returns the closest point on track to wire.
Definition at line 444 of file TMLink.h.
Referenced by TTrackBase::appendByApproach(), T3DLine::approach(), TRunge::approach(), TTrack::approach(), TTrack::approach2D(), TTrackManager::divide(), TTrackManager::divideByIp(), T3DLineFitter::fit(), TTrack::fit2D(), TTrackManager::makeTds(), and TTrackManager::merge().
|
inline |
|
inline |
|
inline |
returns the closest point on wire to a track.
Definition at line 438 of file TMLink.h.
Referenced by TTrackBase::appendByApproach(), T3DLine::approach(), TRunge::approach(), TTrack::approach(), TTrack::approach2D(), TMDC::driftDistance(), T3DLineFitter::fit(), TTrack::fit2D(), and TTrackManager::makeTds().
|
inline |
|
inline |
returns pull.
Definition at line 426 of file TMLink.h.
Referenced by Dump(), TTrackManager::makeTds(), TTrackManager::salvageAssociateHits(), TTrackBase::testByApproach(), and update().
|
inline |
add by jialk returns timeDrift after prop correction
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
return tsfTag of links
Definition at line 752 of file TMLink.h.
Referenced by TSegment::splitTsf().
|
inline |
sets results of fitting.
Definition at line 414 of file TMLink.h.
Referenced by T3DLineFitter::fit(), TTrack::fit2D(), and neighbor().
const TMDCWire *const TMLink::wire | ( | void | ) | const |
returns a pointer to a wire.
Definition at line 22 of file TMLink.cxx.
Referenced by TTrackBase::append(), T3DLine::approach(), TRunge::approach(), TTrack::approach(), TTrack::approach2D(), TBuilder0::buildRphi(), TBuilder0::buildStereo(), TBuilderCosmic::buildStereo(), TBuilder0::buildStereo0(), calVirtualCircle(), TMDCTsf::createTsf(), TRunge::DisToWire(), TPerfectFinder::doit(), Dump(), findIsolatedCloseHits(), TConformalFinder0::findSegments(), TTrack::fit2D(), TBuilder::initialLine(), TBuilder::initialLineOld(), TTrackManager::makeTds(), TTrackManager::maskNormal(), TTrackManager::merge(), TTrack::movePivot(), TLine0::refine(), TMLine::refine(), SameLayer(), SameSuperLayer(), TRunge::SetFlightLength(), and TSegment::splitTsf().
const HepPoint3D & TMLink::xyPosition | ( | void | ) | const |
returns middle position of a wire. z componet is 0.
Definition at line 28 of file TMLink.cxx.
Referenced by TSegment0::solveDualHits(), and TSegment::solveDualHits().
|
inline |
|
inline |
returns id# of the pair, if zStatus == 20 (2 consective hits).
Definition at line 623 of file TMLink.h.
Referenced by TBuilder0::buildStereo().
|
inline |
|
inline |
returns stauts of stereo hit
Definition at line 611 of file TMLink.h.
Referenced by TBuilder0::buildStereo(), and Dump().