#include <TrkHotListUnowned.h>
Inheritance diagram for TrkHotListUnowned:
Public Types | |
typedef TrkHitOnTrkIter< TrkHotList::const_iterator_traits > | hot_iterator |
typedef TrkHitOnTrkIter< TrkHotList::iterator_traits > | nc_hot_iterator |
Public Member Functions | |
TrkHotListUnowned (TrkHotList *other, bool takehotlist=false) | |
TrkHotListUnowned (const TrkHotListUnowned &rhs) | |
TrkHotListUnowned & | operator= (const TrkHotListUnowned &) |
TrkHotList * | clone (TrkBase::Functors::cloneHot) const |
virtual | ~TrkHotListUnowned () |
virtual bool | hitCapable () const |
virtual int | nActive (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const |
virtual int | nMdc (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const |
virtual int | nSvt (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const |
virtual int | nHit (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const |
virtual TrkView | svtView (int layer) const |
virtual unsigned | firstMdcLayer () const |
virtual unsigned | lastMdcLayer () const |
virtual double | startFoundRange () const |
virtual double | endFoundRange () const |
virtual bool | isActive (unsigned ihot) const |
void | append (TrkHitOnTrk *) |
void | remove (TrkHitOnTrk *) |
TrkHitOnTrk * | findHot (const TrkFundHit *) const |
virtual void | updateHots () |
const TrkHotList * | myHotList () const |
TrkHotList * | takeHotList () |
virtual TrkHotList * | resetParent (TrkBase::Functors::setParent) |
hot_iterator | begin () const |
nc_hot_iterator | begin () |
hot_iterator | end () const |
nc_hot_iterator | end () |
virtual bool | hasSvtView (TrkEnums::TrkViewInfo view, int layer) const |
virtual void | sort () |
void | print (std::ostream &o) const |
void | printAll (std::ostream &o) const |
Protected Types | |
typedef std::vector< TrkHitOnTrk * > | hotlist_t |
Protected Member Functions | |
virtual const std::vector< TrkHitOnTrk * > & | hotlist () const |
virtual std::vector< TrkHitOnTrk * > & | hotlist () |
Private Member Functions | |
TrkErrCode | updateMeasurement (TrkHitOnTrk &hot, const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const |
TrkBase::Functors::updateMeasurement | updateMeasurement (const TrkDifTraj *traj=0, bool maintainAmbiguity=false) const |
void | setActivity (TrkHitOnTrk &hot, bool active) const |
void | setParent (TrkHitOnTrk &hot, TrkRep *parent) const |
TrkBase::Functors::setParent | setParent (TrkRep *parent) const |
TrkBase::Functors::setActive | setActive (bool active) const |
Private Attributes | |
TrkHotList * | _hotl |
bool | _ownhots |
Friends | |
struct | iterator_traits |
struct | const_iterator_traits |
Definition at line 30 of file TrkHotListUnowned.h.
typedef TrkHitOnTrkIter<TrkHotList::const_iterator_traits> TrkHotList::hot_iterator [inherited] |
Definition at line 43 of file TrkHotList.h.
typedef std::vector<TrkHitOnTrk*> TrkHotList::hotlist_t [protected, inherited] |
Definition at line 76 of file TrkHotList.h.
typedef TrkHitOnTrkIter<TrkHotList::iterator_traits> TrkHotList::nc_hot_iterator [inherited] |
Definition at line 47 of file TrkHotList.h.
TrkHotListUnowned::TrkHotListUnowned | ( | TrkHotList * | other, | |
bool | takehotlist = false | |||
) |
TrkHotListUnowned::TrkHotListUnowned | ( | const TrkHotListUnowned & | rhs | ) |
TrkHotListUnowned::~TrkHotListUnowned | ( | ) | [virtual] |
void TrkHotListUnowned::append | ( | TrkHitOnTrk * | ) | [virtual] |
Implements TrkHotList.
Definition at line 43 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::append().
nc_hot_iterator TrkHotList::begin | ( | void | ) | [inline, inherited] |
Definition at line 48 of file TrkHotList.h.
References TrkHotList::begin(), and TrkHotList::hotlist().
00048 { return nc_hot_iterator(hotlist().begin()); }
hot_iterator TrkHotList::begin | ( | void | ) | const [inline, inherited] |
Definition at line 44 of file TrkHotList.h.
References TrkHotList::hotlist().
Referenced by TrkHotList::begin(), TrkHitList::begin(), TrkRecoTrk::changeDefault(), MdcxTrackFinder::dropMultiHotInLayer(), MdcTrackList::dropMultiHotInLayer(), MdcTrackList::dumpAxCombine(), MdcTrackList::dumpCircle(), MdcTrackList::dumpHelix(), MdcTrackList::dumpStCombine(), TrkHotListFull::endFoundRange(), MdcHoughFinder::execute(), HoughValidUpdate::execute(), TrkHotListFull::findHot(), TrkHotListFull::firstMdcLayer(), TrkHelixFitter::fit(), TrkHotListFull::lastMdcLayer(), TrkHotListFull::nActive(), TrkHotListFull::nHit(), TrkHotListFull::nMdc(), TrkHotListFull::nSvt(), TrkHotList::resetParent(), TrkHotList::sort(), TrkHotListFull::startFoundRange(), TrkHotListFull::svtView(), TrkHotListFull::TrkHotListFull(), and TrkHotListFull::updateHots().
00044 { return hot_iterator(hotlist().begin()); }
TrkHotList * TrkHotListUnowned::clone | ( | TrkBase::Functors::cloneHot | ) | const [virtual] |
Implements TrkHotList.
Definition at line 32 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotListUnowned().
00033 { 00034 return new TrkHotListUnowned(_hotl); 00035 }
nc_hot_iterator TrkHotList::end | ( | void | ) | [inline, inherited] |
Definition at line 49 of file TrkHotList.h.
References TrkHotList::end(), and TrkHotList::hotlist().
00049 { return nc_hot_iterator(hotlist().end()); }
hot_iterator TrkHotList::end | ( | void | ) | const [inline, inherited] |
Definition at line 45 of file TrkHotList.h.
References TrkHotList::hotlist().
Referenced by TrkRecoTrk::changeDefault(), MdcxTrackFinder::dropMultiHotInLayer(), MdcTrackList::dropMultiHotInLayer(), MdcTrackList::dumpAxCombine(), MdcTrackList::dumpCircle(), MdcTrackList::dumpHelix(), MdcTrackList::dumpStCombine(), TrkHotList::end(), TrkHitList::end(), TrkHotListFull::endFoundRange(), MdcHoughFinder::execute(), TrkHotListFull::findHot(), TrkHotListFull::firstMdcLayer(), TrkHelixFitter::fit(), TrkHotListFull::lastMdcLayer(), TrkHotListFull::nActive(), TrkHotListFull::nHit(), TrkHotListFull::nMdc(), TrkHotListFull::nSvt(), TrkHotList::resetParent(), TrkHotList::sort(), TrkHotListFull::startFoundRange(), TrkHotListFull::svtView(), TrkHotListFull::TrkHotListFull(), and TrkHotListFull::updateHots().
00045 { return hot_iterator(hotlist().end()); }
double TrkHotListUnowned::endFoundRange | ( | ) | const [virtual] |
Implements TrkHotList.
Definition at line 98 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::endFoundRange().
00099 { 00100 return _hotl->endFoundRange(); 00101 }
TrkHitOnTrk * TrkHotListUnowned::findHot | ( | const TrkFundHit * | ) | const [virtual] |
Implements TrkHotList.
Definition at line 55 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::findHot().
unsigned TrkHotListUnowned::firstMdcLayer | ( | ) | const [virtual] |
Implements TrkHotList.
Definition at line 115 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::firstMdcLayer().
00115 { 00116 return _hotl->firstMdcLayer(); 00117 }
bool TrkHotList::hasSvtView | ( | TrkEnums::TrkViewInfo | view, | |
int | layer | |||
) | const [virtual, inherited] |
Definition at line 56 of file TrkHotList.cxx.
References TrkView::contains(), and TrkHotList::svtView().
00057 { 00058 TrkView need(view); 00059 TrkView have = svtView(layer); 00060 return have.contains(need); 00061 }
bool TrkHotListUnowned::hitCapable | ( | ) | const [virtual] |
Implements TrkHotList.
Definition at line 74 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::hitCapable().
00075 { 00076 return _hotl->hitCapable(); 00077 }
std::vector< TrkHitOnTrk * > & TrkHotListUnowned::hotlist | ( | ) | [protected, virtual] |
Implements TrkHotList.
Definition at line 132 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::hotlist().
const std::vector< TrkHitOnTrk * > & TrkHotListUnowned::hotlist | ( | ) | const [protected, virtual] |
Implements TrkHotList.
Definition at line 126 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::hotlist().
bool TrkHotListUnowned::isActive | ( | unsigned | ihot | ) | const [virtual] |
Implements TrkHotList.
Definition at line 147 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::isActive().
unsigned TrkHotListUnowned::lastMdcLayer | ( | ) | const [virtual] |
Implements TrkHotList.
Definition at line 120 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::lastMdcLayer().
00121 { 00122 return _hotl->lastMdcLayer(); 00123 }
const TrkHotList* TrkHotListUnowned::myHotList | ( | ) | const [inline] |
int TrkHotListUnowned::nActive | ( | TrkEnums::TrkViewInfo | view = TrkEnums::bothView |
) | const [virtual] |
Implements TrkHotList.
Definition at line 61 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::nActive().
int TrkHotListUnowned::nHit | ( | TrkEnums::TrkViewInfo | view = TrkEnums::bothView |
) | const [virtual] |
Implements TrkHotList.
Definition at line 67 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::nHit().
int TrkHotListUnowned::nMdc | ( | TrkEnums::TrkViewInfo | view = TrkEnums::bothView |
) | const [virtual] |
Implements TrkHotList.
Definition at line 80 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::nMdc().
int TrkHotListUnowned::nSvt | ( | TrkEnums::TrkViewInfo | view = TrkEnums::bothView |
) | const [virtual] |
Implements TrkHotList.
Definition at line 86 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::nSvt().
TrkHotListUnowned& TrkHotListUnowned::operator= | ( | const TrkHotListUnowned & | ) |
void TrkHotList::print | ( | std::ostream & | o | ) | const [inherited] |
void TrkHotList::printAll | ( | std::ostream & | o | ) | const [inherited] |
Referenced by MdcTrackList::finishCircle(), and MdcTrackList::finishHelix().
void TrkHotListUnowned::remove | ( | TrkHitOnTrk * | ) | [virtual] |
Implements TrkHotList.
Definition at line 49 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::remove().
TrkHotList * TrkHotList::resetParent | ( | TrkBase::Functors::setParent | ) | [virtual, inherited] |
Definition at line 64 of file TrkHotList.cxx.
References TrkHotList::begin(), and TrkHotList::end().
Referenced by TrkRep::TrkRep().
TrkBase::Functors::setActive TrkHitOnTrkUpdater::setActive | ( | bool | active | ) | const [inline, protected, inherited] |
Definition at line 55 of file TrkHitOnTrkUpdater.h.
00056 { return TrkBase::Functors::setActive(active); }
void TrkHitOnTrkUpdater::setActivity | ( | TrkHitOnTrk & | hot, | |
bool | active | |||
) | const [inline, protected, inherited] |
Definition at line 44 of file TrkHitOnTrkUpdater.h.
References TrkHitOnTrk::setActive().
00044 { 00045 hot.setActive(active); }
TrkBase::Functors::setParent TrkHitOnTrkUpdater::setParent | ( | TrkRep * | parent | ) | const [inline, protected, inherited] |
Definition at line 53 of file TrkHitOnTrkUpdater.h.
00054 { return TrkBase::Functors::setParent(parent); }
void TrkHitOnTrkUpdater::setParent | ( | TrkHitOnTrk & | hot, | |
TrkRep * | parent | |||
) | const [inline, protected, inherited] |
Definition at line 47 of file TrkHitOnTrkUpdater.h.
References TrkHitOnTrk::_parentRep.
Referenced by TrkRep::TrkRep().
00047 { 00048 hot._parentRep = parent; 00049 }
void TrkHotList::sort | ( | ) | [virtual, inherited] |
Definition at line 71 of file TrkHotList.cxx.
References TrkHotList::begin(), TrkHotList::end(), and TrkHotList::hotlist().
Referenced by TrkHitList::fit(), and TrkHotListFull::updateHots().
00072 { 00073 std::sort(hotlist().begin(), 00074 hotlist().end(), 00075 bes::Collection::PtrLess()); 00076 }
double TrkHotListUnowned::startFoundRange | ( | ) | const [virtual] |
Implements TrkHotList.
Definition at line 92 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::startFoundRange().
00093 { 00094 return _hotl->startFoundRange(); 00095 }
TrkView TrkHotListUnowned::svtView | ( | int | layer | ) | const [virtual] |
Implements TrkHotList.
Definition at line 110 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::svtView().
TrkHotList * TrkHotListUnowned::takeHotList | ( | ) |
void TrkHotListUnowned::updateHots | ( | ) | [virtual] |
Implements TrkHotList.
Definition at line 104 of file TrkHotListUnowned.cxx.
References _hotl, and TrkHotList::updateHots().
00105 { 00106 _hotl->updateHots(); 00107 }
TrkBase::Functors::updateMeasurement TrkHitOnTrkUpdater::updateMeasurement | ( | const TrkDifTraj * | traj = 0 , |
|
bool | maintainAmbiguity = false | |||
) | const [inline, protected, inherited] |
Definition at line 51 of file TrkHitOnTrkUpdater.h.
00052 { return TrkBase::Functors::updateMeasurement(traj,maintainAmbiguity); }
TrkErrCode TrkHitOnTrkUpdater::updateMeasurement | ( | TrkHitOnTrk & | hot, | |
const TrkDifTraj * | traj = 0 , |
|||
bool | maintainAmbiguity = false | |||
) | const [inline, protected, inherited] |
Definition at line 41 of file TrkHitOnTrkUpdater.h.
References TrkHitOnTrk::updateMeasurement().
Referenced by TrkHelixFitter::fit(), and TrkHotListFull::updateHots().
00042 { return hot.updateMeasurement(traj,maintainAmbiguity);}
friend struct const_iterator_traits [friend, inherited] |
Definition at line 75 of file TrkHotList.h.
friend struct iterator_traits [friend, inherited] |
Definition at line 74 of file TrkHotList.h.
TrkHotList* TrkHotListUnowned::_hotl [private] |
Definition at line 66 of file TrkHotListUnowned.h.
Referenced by append(), clone(), endFoundRange(), findHot(), firstMdcLayer(), hitCapable(), hotlist(), isActive(), lastMdcLayer(), myHotList(), nActive(), nHit(), nMdc(), nSvt(), remove(), startFoundRange(), svtView(), takeHotList(), updateHots(), and ~TrkHotListUnowned().
bool TrkHotListUnowned::_ownhots [private] |
Definition at line 67 of file TrkHotListUnowned.h.
Referenced by takeHotList(), and ~TrkHotListUnowned().