41 return _theTrack->
getRep(_myHypo);
45TrkHitList::theRep()
const
47 return _theTrack->
getRep(_myHypo);
61 _theTrack->_fitNumber[_myHypo]++;
73 if (theHit == 0)
return false;
75#ifdef MDCPATREC_WARNING
76 cout <<
"ErrMsg(warning) "<<
77 "TrkHitList: you just deleted a hit that was not on the track." << endl;
81 std::pair<TrkRepIter,TrkRepIter> reps = _theTrack->
uniqueReps();
82 for (
TrkRepIter i= reps.first; i != reps.second; ++i) {
85 if (h != 0) i->removeHot(h);
93 if (theHot == 0)
return 0;
96#ifdef MDCPATREC_WARNING
97 cout <<
"ErrMsg(warning)"
98 <<
"You just tried to add a hit to a track twice. "
99 <<
" Don't do that. "<< endl;
104 std::pair<TrkRepIter,TrkRepIter> reps = _theTrack->
uniqueReps();
105 for (
TrkRepIter i=reps.first; i != reps.second; ++i) {
108 if (i->particleType() == _theTrack->
defaultType()) defaultHot = h;
118#ifdef MDCPATREC_WARNING
119 cout <<
"ErrMsg(warning)"
120 <<
"You just tried to add a hit to a track twice."
121 <<
" Don't do that. " << endl;
127 std::pair<TrkRepIter,TrkRepIter> reps = _theTrack->
uniqueReps();
128 for (
TrkRepIter i= reps.first; i != reps.second; ++i) {
132 if (i->particleType() == _theTrack->
defaultType()) defaultHot = h;
bool usedOnTrack(const TrkRecoTrk *t) const
hot_iterator begin() const
TrkHitOnTrk * appendHot(const TrkHitOnTrk *theHot)
const TrkHotList & hotList() const
bool removeHit(const TrkFundHit *theHit)
bool append(const TrkHitList &list)
TrkHitOnTrk * appendHit(const TrkHitUse &theHit)
virtual TrkHitOnTrk * clone(TrkRep *parentRep, const TrkDifTraj *trkTraj=0) const =0
const TrkFundHit * hit() const
const TrkFundHit & hit() const
virtual TrkHitOnTrk * createHitOnTrk(const TrkRep &) const =0
PdtPid::PidType defaultType() const
std::pair< TrkRepIter, TrkRepIter > uniqueReps() const
TrkRep * getRep(PdtPid::PidType hypo)
virtual TrkErrCode fit()=0
virtual TrkHotList * hotList()