BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkHitOnTrk Class Referenceabstract

#include <TrkHitOnTrk.h>

+ Inheritance diagram for TrkHitOnTrk:

Public Types

typedef std::unary_function< TrkHitOnTrk, boolpredicate_type
 
typedef std::unary_function< TrkHitOnTrk, boolpredicate_type
 

Public Member Functions

 TrkHitOnTrk (const TrkFundHit *, double tolerance)
 
virtual ~TrkHitOnTrk ()
 
virtual TrkHitOnTrkclone (TrkRep *parentRep, const TrkDifTraj *trkTraj=0) const =0
 
const TrkRecoTrkgetParentTrack () const
 
const TrkRepgetParentRep () const
 
PdtPid::PidType particleType () const
 
const TrkFundHithit () const
 
TrkFundHithit ()
 
const TrkDifTrajtrkTraj () const
 
virtual const MdcHitOnTrackmdcHitOnTrack () const
 
virtual const SvtHitOnTrack * svtHitOnTrack () const
 
bool isActive () const
 
bool isUsable () const
 
bool mustUse () const
 
virtual TrkEnums::TrkViewInfo whatView () const =0
 
virtual unsigned layerNumber () const =0
 
double hitRms () const
 
double weight () const
 
double fltLen () const
 
double hitLen () const
 
virtual int ambig () const
 
virtual void setAmbig (int newambig)
 
bool operator== (const TrkHitOnTrk &) const
 
bool operator< (const TrkHitOnTrk &rhs) const
 
virtual const TrajectoryhitTraj () const =0
 
bool hasResidual () const
 
TrkErrCode getFitStuff (HepVector &derivs, double &deltaChi) const
 
TrkErrCode getFitStuff (double &deltaChi) const
 
double resid (bool exclude=false) const
 
bool resid (double &resid, double &residErr, bool exclude=false) const
 
double residual () const
 
virtual bool timeResid (double &resid, double &error) const =0
 
virtual bool timeAbsolute (double &time, double &error) const =0
 
TrkRecoTrkparentTrack () const
 
void setActivity (bool turnOn)
 
void setUsability (int usability)
 
void setFltLen (double f)
 
void setHitRms (double newRms)
 
virtual void print (std::ostream &) const
 
virtual void printAll (std::ostream &) const
 
 TrkHitOnTrk (const TrkFundHit *, double tolerance)
 
virtual ~TrkHitOnTrk ()
 
virtual TrkHitOnTrkclone (TrkRep *parentRep, const TrkDifTraj *trkTraj=0) const =0
 
const TrkRecoTrkgetParentTrack () const
 
const TrkRepgetParentRep () const
 
PdtPid::PidType particleType () const
 
const TrkFundHithit () const
 
TrkFundHithit ()
 
const TrkDifTrajtrkTraj () const
 
virtual const MdcHitOnTrackmdcHitOnTrack () const
 
virtual const SvtHitOnTrack * svtHitOnTrack () const
 
bool isActive () const
 
bool isUsable () const
 
bool mustUse () const
 
virtual TrkEnums::TrkViewInfo whatView () const =0
 
virtual unsigned layerNumber () const =0
 
double hitRms () const
 
double weight () const
 
double fltLen () const
 
double hitLen () const
 
virtual int ambig () const
 
virtual void setAmbig (int newambig)
 
bool operator== (const TrkHitOnTrk &) const
 
bool operator< (const TrkHitOnTrk &rhs) const
 
virtual const TrajectoryhitTraj () const =0
 
bool hasResidual () const
 
TrkErrCode getFitStuff (HepVector &derivs, double &deltaChi) const
 
TrkErrCode getFitStuff (double &deltaChi) const
 
double resid (bool exclude=false) const
 
bool resid (double &resid, double &residErr, bool exclude=false) const
 
double residual () const
 
virtual bool timeResid (double &resid, double &error) const =0
 
virtual bool timeAbsolute (double &time, double &error) const =0
 
TrkRecoTrkparentTrack () const
 
void setActivity (bool turnOn)
 
void setUsability (int usability)
 
void setFltLen (double f)
 
void setHitRms (double newRms)
 
virtual void print (std::ostream &) const
 
virtual void printAll (std::ostream &) const
 

Protected Member Functions

 TrkHitOnTrk (const TrkHitOnTrk &hitToBeCopied, TrkRep *newRep, const TrkDifTraj *trkTraj=0)
 
void setHitResid (double newResid)
 
TrkRepparentRep () const
 
void setHitLen (double h)
 
void setUsedHit ()
 
void setUnusedHit ()
 
virtual TrkErrCode updateMeasurement (const TrkDifTraj *traj, bool maintainAmbiguity)=0
 
TrkErrCode updatePoca (const TrkDifTraj *trkTraj, bool maintainAmbiguity)
 
 TrkHitOnTrk (const TrkHitOnTrk &hitToBeCopied, TrkRep *newRep, const TrkDifTraj *trkTraj=0)
 
void setHitResid (double newResid)
 
TrkRepparentRep () const
 
void setHitLen (double h)
 
void setUsedHit ()
 
void setUnusedHit ()
 
virtual TrkErrCode updateMeasurement (const TrkDifTraj *traj, bool maintainAmbiguity)=0
 
TrkErrCode updatePoca (const TrkDifTraj *trkTraj, bool maintainAmbiguity)
 

Protected Attributes

TrkRep_parentRep
 
TrkFundHit_theHit
 
bool _isActive
 
int _isUsable
 
double _hitRms
 
double _trkLen
 
double _hitLen
 
double _resid
 
const TrkDifTraj_trkTraj
 
TrkPoca_poca
 
double _tolerance
 

Friends

class TrkHotList
 
class TrkRecoTrk
 
class TrkRep
 
class TrkHitOnTrkUpdater
 
class TrkBase::Functors::updateMeasurement
 
class TrkBase::Functors::setActive
 
class TrkBase::Functors::setParent
 

Detailed Description

Member Typedef Documentation

◆ predicate_type [1/2]

typedef std::unary_function<TrkHitOnTrk,bool> TrkHitOnTrk::predicate_type

◆ predicate_type [2/2]

Constructor & Destructor Documentation

◆ TrkHitOnTrk() [1/4]

TrkHitOnTrk::TrkHitOnTrk ( const TrkFundHit hit,
double  tolerance 
)

Definition at line 33 of file TrkHitOnTrk.cxx.

◆ ~TrkHitOnTrk() [1/2]

TrkHitOnTrk::~TrkHitOnTrk ( )
virtual

Definition at line 87 of file TrkHitOnTrk.cxx.

88{
89 delete _poca;
90 if ( hit() != 0 && getParentRep() != 0 ) {
92 }
93}
void setUnusedHit()

◆ TrkHitOnTrk() [2/4]

TrkHitOnTrk::TrkHitOnTrk ( const TrkHitOnTrk hitToBeCopied,
TrkRep newRep,
const TrkDifTraj trkTraj = 0 
)
protected

Definition at line 48 of file TrkHitOnTrk.cxx.

50 : _parentRep(newRep),
51 _theHit(oldHit._theHit),
52 _isActive(oldHit._isActive),
53 _isUsable(oldHit._isUsable),
54 _hitRms(oldHit._hitRms),
55 _trkLen(oldHit._trkLen),
56 _hitLen(oldHit._hitLen),
57 _resid(9999.9),
58 _trkTraj(0),
59 _poca(0),
60 _tolerance(oldHit._tolerance)
61{
62 assert (0 != newRep);
63 if( oldHit._trkTraj!=0 && trkTraj!=0 && oldHit._trkTraj == trkTraj ) {
64 // re-use cache as traj are the same
65 _resid=oldHit._resid;
67 _poca = (oldHit._poca==0 ? 0 :new TrkPoca(*oldHit._poca));
68 } else {
69 double fl = oldHit.fltLen();
70 double dum;
71 const TrkSimpTraj *t1= (oldHit._trkTraj==0?0:oldHit._trkTraj->localTrajectory(fl,dum));
72 const TrkSimpTraj *t2= (trkTraj==0?0:trkTraj->localTrajectory(fl,dum));
73 if( t1 != 0 && t2 != 0 && t1->parameters()->parameter() == t2->parameters()->parameter() ) {
74 // re-use cache as traj are sufficiently equiv
75 _resid=oldHit._resid;
77 _poca = (oldHit._poca==0 ? 0: new TrkPoca(*oldHit._poca));
78
79 }
80 }
81 // Only record hots if on default TrkRep
83 setUsedHit();
84 }
85}
virtual const TrkSimpTraj * localTrajectory(double fltLen, double &localFlt) const =0
const TrkRecoTrk * getParentTrack() const
void setUsedHit()
virtual PdtPid::PidType particleType() const
Definition: TrkRep.cxx:308

◆ TrkHitOnTrk() [3/4]

TrkHitOnTrk::TrkHitOnTrk ( const TrkFundHit ,
double  tolerance 
)

◆ ~TrkHitOnTrk() [2/2]

virtual TrkHitOnTrk::~TrkHitOnTrk ( )
virtual

◆ TrkHitOnTrk() [4/4]

TrkHitOnTrk::TrkHitOnTrk ( const TrkHitOnTrk hitToBeCopied,
TrkRep newRep,
const TrkDifTraj trkTraj = 0 
)
protected

Member Function Documentation

◆ ambig() [1/2]

int TrkHitOnTrk::ambig ( ) const
virtual

Reimplemented in MdcHitOnTrack, and MdcHitOnTrack.

Definition at line 181 of file TrkHitOnTrk.cxx.

182{
183 return 0;// by default no ambiguity
184}

◆ ambig() [2/2]

virtual int TrkHitOnTrk::ambig ( ) const
virtual

Reimplemented in MdcHitOnTrack, and MdcHitOnTrack.

◆ clone() [1/2]

virtual TrkHitOnTrk * TrkHitOnTrk::clone ( TrkRep parentRep,
const TrkDifTraj trkTraj = 0 
) const
pure virtual

◆ clone() [2/2]

virtual TrkHitOnTrk * TrkHitOnTrk::clone ( TrkRep parentRep,
const TrkDifTraj trkTraj = 0 
) const
pure virtual

◆ fltLen() [1/2]

◆ fltLen() [2/2]

double TrkHitOnTrk::fltLen ( ) const
inline

◆ getFitStuff() [1/4]

TrkErrCode TrkHitOnTrk::getFitStuff ( double &  deltaChi) const

Definition at line 271 of file TrkHitOnTrk.cxx.

272{
273 assert (_trkTraj == &(getParentRep()->traj()));
274 deltaChi=_resid/hitRms(); // NOTE: use _INTERNAL_ residual
276}

◆ getFitStuff() [2/4]

TrkErrCode TrkHitOnTrk::getFitStuff ( double &  deltaChi) const

◆ getFitStuff() [3/4]

TrkErrCode TrkHitOnTrk::getFitStuff ( HepVector &  derivs,
double &  deltaChi 
) const

Definition at line 248 of file TrkHitOnTrk.cxx.

249{
250 if (_poca==0 || _poca->status().failure()) {
252 }
253 // FIXME: I wish I could tell poca to NOT iterate
254 // and ONLY compute the distance & derivatives...
256 if (poca.status().failure()) {
258 }
259 if (derivs.num_row() != 0) {
260 poca.fetchDerivs(derivs);
261 } else {
262 derivs = poca.derivs();
263 }
264 double sigInv = 1. / hitRms();
265 deltaChi = _resid * sigInv; // NOTE: use _INTERNAL_ residual
266 derivs *= sigInv;
268}
virtual const Trajectory * hitTraj() const =0

Referenced by TrkHelixRep::resid(), and MdcTrack::storeTrack().

◆ getFitStuff() [4/4]

TrkErrCode TrkHitOnTrk::getFitStuff ( HepVector &  derivs,
double &  deltaChi 
) const

◆ getParentRep() [1/2]

◆ getParentRep() [2/2]

const TrkRep * TrkHitOnTrk::getParentRep ( ) const
inline

◆ getParentTrack() [1/2]

const TrkRecoTrk * TrkHitOnTrk::getParentTrack ( ) const

Definition at line 152 of file TrkHitOnTrk.cxx.

153{
154 return getParentRep()->parentTrack();
155}

Referenced by TrkHitOnTrk().

◆ getParentTrack() [2/2]

const TrkRecoTrk * TrkHitOnTrk::getParentTrack ( ) const

◆ hasResidual() [1/2]

bool TrkHitOnTrk::hasResidual ( ) const
inline

◆ hasResidual() [2/2]

bool TrkHitOnTrk::hasResidual ( ) const
inline

◆ hit() [1/4]

TrkFundHit * TrkHitOnTrk::hit ( )
inline

Definition at line 76 of file InstallArea/include/TrkBase/TrkBase/TrkHitOnTrk.h.

76{return _theHit;}

◆ hit() [2/4]

TrkFundHit * TrkHitOnTrk::hit ( )
inline

◆ hit() [3/4]

◆ hit() [4/4]

const TrkFundHit * TrkHitOnTrk::hit ( ) const
inline

◆ hitLen() [1/2]

double TrkHitOnTrk::hitLen ( ) const
inline

◆ hitLen() [2/2]

double TrkHitOnTrk::hitLen ( ) const
inline

◆ hitRms() [1/2]

◆ hitRms() [2/2]

double TrkHitOnTrk::hitRms ( ) const
inline

◆ hitTraj() [1/2]

virtual const Trajectory * TrkHitOnTrk::hitTraj ( ) const
pure virtual

◆ hitTraj() [2/2]

virtual const Trajectory * TrkHitOnTrk::hitTraj ( ) const
pure virtual

◆ isActive() [1/2]

◆ isActive() [2/2]

bool TrkHitOnTrk::isActive ( ) const
inline

◆ isUsable() [1/2]

bool TrkHitOnTrk::isUsable ( ) const
inline

Definition at line 201 of file InstallArea/include/TrkBase/TrkBase/TrkHitOnTrk.h.

201{return (_isUsable > 0);}

Referenced by setActivity(), and setUsability().

◆ isUsable() [2/2]

bool TrkHitOnTrk::isUsable ( ) const
inline

◆ layerNumber() [1/2]

virtual unsigned TrkHitOnTrk::layerNumber ( ) const
pure virtual

◆ layerNumber() [2/2]

virtual unsigned TrkHitOnTrk::layerNumber ( ) const
pure virtual

◆ mdcHitOnTrack() [1/2]

const MdcHitOnTrack * TrkHitOnTrk::mdcHitOnTrack ( ) const
virtual

◆ mdcHitOnTrack() [2/2]

virtual const MdcHitOnTrack * TrkHitOnTrk::mdcHitOnTrack ( ) const
virtual

Reimplemented in MdcHitOnTrack, and MdcHitOnTrack.

◆ mustUse() [1/2]

bool TrkHitOnTrk::mustUse ( ) const
inline

Definition at line 202 of file InstallArea/include/TrkBase/TrkBase/TrkHitOnTrk.h.

202{return (_isUsable > 1);}

Referenced by setUsability().

◆ mustUse() [2/2]

bool TrkHitOnTrk::mustUse ( ) const
inline

◆ operator<() [1/2]

bool TrkHitOnTrk::operator< ( const TrkHitOnTrk rhs) const
inline

Definition at line 99 of file InstallArea/include/TrkBase/TrkBase/TrkHitOnTrk.h.

99{ return fltLen()<rhs.fltLen();}

◆ operator<() [2/2]

bool TrkHitOnTrk::operator< ( const TrkHitOnTrk rhs) const
inline

◆ operator==() [1/2]

bool TrkHitOnTrk::operator== ( const TrkHitOnTrk rhs) const

Definition at line 175 of file TrkHitOnTrk.cxx.

176{
177 return this == &rhs;
178}

◆ operator==() [2/2]

bool TrkHitOnTrk::operator== ( const TrkHitOnTrk ) const

◆ parentRep() [1/2]

TrkRep * TrkHitOnTrk::parentRep ( ) const
inlineprotected

◆ parentRep() [2/2]

TrkRep * TrkHitOnTrk::parentRep ( ) const
inlineprotected

◆ parentTrack() [1/2]

TrkRecoTrk * TrkHitOnTrk::parentTrack ( ) const

◆ parentTrack() [2/2]

TrkRecoTrk * TrkHitOnTrk::parentTrack ( ) const

◆ particleType() [1/2]

PdtPid::PidType TrkHitOnTrk::particleType ( ) const

Definition at line 158 of file TrkHitOnTrk.cxx.

159{
160 return getParentRep()->particleType();
161}

◆ particleType() [2/2]

PdtPid::PidType TrkHitOnTrk::particleType ( ) const

◆ print() [1/2]

virtual void TrkHitOnTrk::print ( std::ostream &  ) const
virtual

◆ print() [2/2]

virtual void TrkHitOnTrk::print ( std::ostream &  ) const
virtual

◆ printAll() [1/2]

virtual void TrkHitOnTrk::printAll ( std::ostream &  ) const
virtual

◆ printAll() [2/2]

virtual void TrkHitOnTrk::printAll ( std::ostream &  ) const
virtual

◆ resid() [1/4]

double TrkHitOnTrk::resid ( bool  exclude = false) const

Definition at line 191 of file TrkHitOnTrk.cxx.

192{
193 double r(-99999.9),re(-9999.9);
194 bool s=getParentRep()->resid(this,r,re,exclude);
195 if (!s && r<-99999.8) {
196#ifdef MDCPATREC_ROUTINE
197 std::cout<<"ErrMsg(routine) "
198 << "error calling parentRep()->residual()" << std::endl;
199#endif
200 }
201 return r;
202}
XmlRpcServer s
Definition: HelloServer.cpp:11
virtual bool resid(const TrkHitOnTrk *theHot, double &residual, double &residErr, bool exclude=false) const
Definition: TrkRep.cxx:348

Referenced by MdcTrackListBase::arbitrateHits(), MdcHitOnTrack::dcaToWire(), MdcTrkRecon::fillTrackList(), resid(), and MdcTrack::storeTrack().

◆ resid() [2/4]

double TrkHitOnTrk::resid ( bool  exclude = false) const

◆ resid() [3/4]

bool TrkHitOnTrk::resid ( double &  resid,
double &  residErr,
bool  exclude = false 
) const

Definition at line 205 of file TrkHitOnTrk.cxx.

206{
207 assert(getParentRep()!=0);
208 return getParentRep()->resid(this,resid,residErr,exclude);
209}
double resid(bool exclude=false) const

◆ resid() [4/4]

bool TrkHitOnTrk::resid ( double &  resid,
double &  residErr,
bool  exclude = false 
) const

◆ residual() [1/2]

double TrkHitOnTrk::residual ( ) const

Definition at line 212 of file TrkHitOnTrk.cxx.

213{
214 assert (_trkTraj == &(getParentRep()->traj()));
215 return _resid;
216}

Referenced by TrkHelixRep::resid(), and TrkRep::resid().

◆ residual() [2/2]

double TrkHitOnTrk::residual ( ) const

◆ setActivity() [1/2]

void TrkHitOnTrk::setActivity ( bool  turnOn)

Definition at line 96 of file TrkHitOnTrk.cxx.

97{
98 if (!isUsable() || isActive()==turnOn) return;
99 if (getParentRep() != 0) { // needed until Rep-less HoTs go away
100 turnOn ? parentRep()->activateHot(this)
101 : parentRep()->deactivateHot(this);
102 } else {
103 _isActive = turnOn;
104 }
105}
virtual void deactivateHot(TrkHitOnTrk *theHot)
Definition: TrkRep.cxx:167
virtual void activateHot(TrkHitOnTrk *theHot)
Definition: TrkRep.cxx:154

Referenced by MdcTrackListBase::arbitrateHits(), MdcTrackList::dropMultiHotInLayer(), and MdcTrackList::pickHits().

◆ setActivity() [2/2]

void TrkHitOnTrk::setActivity ( bool  turnOn)

◆ setAmbig() [1/2]

void TrkHitOnTrk::setAmbig ( int  newambig)
virtual

Reimplemented in MdcHitOnTrack, and MdcHitOnTrack.

Definition at line 187 of file TrkHitOnTrk.cxx.

188{} // by default nothing to set

Referenced by updatePoca().

◆ setAmbig() [2/2]

virtual void TrkHitOnTrk::setAmbig ( int  newambig)
virtual

Reimplemented in MdcHitOnTrack, and MdcHitOnTrack.

◆ setFltLen() [1/2]

void TrkHitOnTrk::setFltLen ( double  f)
inline

◆ setFltLen() [2/2]

void TrkHitOnTrk::setFltLen ( double  f)
inline

◆ setHitLen() [1/2]

void TrkHitOnTrk::setHitLen ( double  h)
inlineprotected

◆ setHitLen() [2/2]

void TrkHitOnTrk::setHitLen ( double  h)
inlineprotected

◆ setHitResid() [1/2]

void TrkHitOnTrk::setHitResid ( double  newResid)
inlineprotected

◆ setHitResid() [2/2]

void TrkHitOnTrk::setHitResid ( double  newResid)
inlineprotected

◆ setHitRms() [1/2]

void TrkHitOnTrk::setHitRms ( double  newRms)
inline

◆ setHitRms() [2/2]

void TrkHitOnTrk::setHitRms ( double  newRms)
inline

◆ setUnusedHit() [1/2]

void TrkHitOnTrk::setUnusedHit ( )
protected

Definition at line 170 of file TrkHitOnTrk.cxx.

171{
172 if (hit() != 0) hit()->setUnusedHit(this);
173}
const TrkHitOnTrk * setUnusedHit(const TrkHitOnTrk *hit)
Definition: TrkFundHit.cxx:75

Referenced by TrkRecoTrk::changeDefault(), and ~TrkHitOnTrk().

◆ setUnusedHit() [2/2]

void TrkHitOnTrk::setUnusedHit ( )
protected

◆ setUsability() [1/2]

void TrkHitOnTrk::setUsability ( int  usability)

Definition at line 108 of file TrkHitOnTrk.cxx.

109{
110 _isUsable = usability;
111 if (isActive() && !isUsable()) {
112 _isActive = false;
113 if(getParentRep() != 0)parentRep()->deactivateHot(this);
114 }
115 if (!isActive() && mustUse()) {
116 _isActive = true;
117 if(getParentRep() != 0)parentRep()->activateHot(this);
118 }
119}

Referenced by MdcTrackList::pickHits(), and MdcHitOnTrack::updateMeasurement().

◆ setUsability() [2/2]

void TrkHitOnTrk::setUsability ( int  usability)

◆ setUsedHit() [1/2]

void TrkHitOnTrk::setUsedHit ( )
protected

Definition at line 164 of file TrkHitOnTrk.cxx.

165{
166 if (hit() != 0) hit()->setUsedHit(this);
167}
const TrkHitOnTrk * setUsedHit(const TrkHitOnTrk *hit)
Definition: TrkFundHit.cxx:58

Referenced by TrkRecoTrk::changeDefault(), and TrkHitOnTrk().

◆ setUsedHit() [2/2]

void TrkHitOnTrk::setUsedHit ( )
protected

◆ svtHitOnTrack() [1/2]

const SvtHitOnTrack * TrkHitOnTrk::svtHitOnTrack ( ) const
virtual

◆ svtHitOnTrack() [2/2]

virtual const SvtHitOnTrack * TrkHitOnTrk::svtHitOnTrack ( ) const
virtual

◆ timeAbsolute() [1/2]

virtual bool TrkHitOnTrk::timeAbsolute ( double &  time,
double &  error 
) const
pure virtual

◆ timeAbsolute() [2/2]

virtual bool TrkHitOnTrk::timeAbsolute ( double &  time,
double &  error 
) const
pure virtual

◆ timeResid() [1/2]

virtual bool TrkHitOnTrk::timeResid ( double &  resid,
double &  error 
) const
pure virtual

◆ timeResid() [2/2]

virtual bool TrkHitOnTrk::timeResid ( double &  resid,
double &  error 
) const
pure virtual

◆ trkTraj() [1/2]

const TrkDifTraj * TrkHitOnTrk::trkTraj ( ) const
inline

◆ trkTraj() [2/2]

const TrkDifTraj * TrkHitOnTrk::trkTraj ( ) const
inline

◆ updateMeasurement() [1/2]

◆ updateMeasurement() [2/2]

virtual TrkErrCode TrkHitOnTrk::updateMeasurement ( const TrkDifTraj traj,
bool  maintainAmbiguity 
)
protectedpure virtual

◆ updatePoca() [1/2]

TrkErrCode TrkHitOnTrk::updatePoca ( const TrkDifTraj trkTraj,
bool  maintainAmbiguity 
)
protected

Definition at line 219 of file TrkHitOnTrk.cxx.

220{
222 if (_poca==0) {
223 _poca = new TrkPoca(*_trkTraj,fltLen(),
225 } else {
228 }
229 if(_poca->status().failure()) {
230 if(isActive()){
231#ifdef MDCPATREC_WARNING
232 std::cout<<"ErrMsg(warning) "
233 << " TrkPoca failed in TrkHitOnTrk::updatePoca"
234 << std::endl;
235#endif
236 }
237 delete _poca; _poca=0;
239 }
240 _trkLen = _poca->flt1();
241 _hitLen = _poca->flt2();
242 double dca=_poca->doca();
243 if (!maintainAmb) setAmbig(dca>0?+1:-1);
245}
virtual const TrkDifTraj & traj() const =0
virtual void setAmbig(int newambig)

Referenced by MdcHitOnTrack::updateMeasurement(), and TrkBmSpotOnTrk::updateMeasurement().

◆ updatePoca() [2/2]

TrkErrCode TrkHitOnTrk::updatePoca ( const TrkDifTraj trkTraj,
bool  maintainAmbiguity 
)
protected

◆ weight() [1/2]

double TrkHitOnTrk::weight ( ) const

Definition at line 122 of file TrkHitOnTrk.cxx.

123{
124 // could be cached
125 double rms=hitRms();
126 assert(rms > 0);
127 return double(1) / ( rms * rms );
128}

Referenced by MdcTrackListBase::arbitrateHits().

◆ weight() [2/2]

double TrkHitOnTrk::weight ( ) const

◆ whatView() [1/2]

virtual TrkEnums::TrkViewInfo TrkHitOnTrk::whatView ( ) const
pure virtual

◆ whatView() [2/2]

virtual TrkEnums::TrkViewInfo TrkHitOnTrk::whatView ( ) const
pure virtual

Friends And Related Function Documentation

◆ TrkBase::Functors::setActive

◆ TrkBase::Functors::setParent

◆ TrkBase::Functors::updateMeasurement

◆ TrkHitOnTrkUpdater

◆ TrkHotList

◆ TrkRecoTrk

◆ TrkRep

TrkRep
friend

Member Data Documentation

◆ _hitLen

double TrkHitOnTrk::_hitLen
protected

◆ _hitRms

double TrkHitOnTrk::_hitRms
protected

Definition at line 167 of file InstallArea/include/TrkBase/TrkBase/TrkHitOnTrk.h.

Referenced by hitRms(), and setHitRms().

◆ _isActive

bool TrkHitOnTrk::_isActive
protected

◆ _isUsable

int TrkHitOnTrk::_isUsable
protected

◆ _parentRep

TrkRep * TrkHitOnTrk::_parentRep
protected

◆ _poca

◆ _resid

double TrkHitOnTrk::_resid
protected

◆ _theHit

TrkFundHit * TrkHitOnTrk::_theHit
protected

Definition at line 164 of file InstallArea/include/TrkBase/TrkBase/TrkHitOnTrk.h.

Referenced by hit().

◆ _tolerance

double TrkHitOnTrk::_tolerance
protected

◆ _trkLen

double TrkHitOnTrk::_trkLen
protected

◆ _trkTraj

const TrkDifTraj * TrkHitOnTrk::_trkTraj
protected

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