TrkHotListUnowned Class Reference

#include <TrkHotListUnowned.h>

Inheritance diagram for TrkHotListUnowned:

TrkHotList TrkHitOnTrkUpdater List of all members.

Public Types

typedef TrkHitOnTrkIter< TrkHotList::const_iterator_traitshot_iterator
typedef TrkHitOnTrkIter< TrkHotList::iterator_traitsnc_hot_iterator

Public Member Functions

 TrkHotListUnowned (TrkHotList *other, bool takehotlist=false)
 TrkHotListUnowned (const TrkHotListUnowned &rhs)
TrkHotListUnownedoperator= (const TrkHotListUnowned &)
TrkHotListclone (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 *)
TrkHitOnTrkfindHot (const TrkFundHit *) const
virtual void updateHots ()
const TrkHotListmyHotList () const
TrkHotListtakeHotList ()
virtual TrkHotListresetParent (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

Detailed Description

Definition at line 30 of file TrkHotListUnowned.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

TrkHotListUnowned::TrkHotListUnowned ( TrkHotList other,
bool  takehotlist = false 
)

Definition at line 26 of file TrkHotListUnowned.cxx.

Referenced by clone().

00026                                                                 :
00027   _hotl(other),_ownhots(take)
00028 {
00029 }

TrkHotListUnowned::TrkHotListUnowned ( const TrkHotListUnowned rhs  ) 

TrkHotListUnowned::~TrkHotListUnowned (  )  [virtual]

Definition at line 37 of file TrkHotListUnowned.cxx.

References _hotl, and _ownhots.

00038 {
00039   if(_ownhots)delete _hotl;
00040 }


Member Function Documentation

void TrkHotListUnowned::append ( TrkHitOnTrk  )  [virtual]

Implements TrkHotList.

Definition at line 43 of file TrkHotListUnowned.cxx.

References _hotl, and TrkHotList::append().

00044 {
00045   _hotl->append(newHot);
00046 }

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().

00056 {
00057   return _hotl->findHot(theHit);
00058 }

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().

00133 {
00134   return _hotl->hotlist();
00135 }

const std::vector< TrkHitOnTrk * > & TrkHotListUnowned::hotlist (  )  const [protected, virtual]

Implements TrkHotList.

Definition at line 126 of file TrkHotListUnowned.cxx.

References _hotl, and TrkHotList::hotlist().

00127 {
00128   return _hotl->hotlist();
00129 }

bool TrkHotListUnowned::isActive ( unsigned  ihot  )  const [virtual]

Implements TrkHotList.

Definition at line 147 of file TrkHotListUnowned.cxx.

References _hotl, and TrkHotList::isActive().

00147                                                {
00148   return _hotl->isActive(ihot);
00149 }

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]

Definition at line 58 of file TrkHotListUnowned.h.

References _hotl.

00058 { return _hotl; }

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().

00062 {
00063   return _hotl->nActive(view);
00064 }

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().

00068 {
00069   return _hotl->nHit(view);
00070 }

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().

00081 {
00082   return _hotl->nMdc(view);
00083 }

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().

00087 {
00088   return _hotl->nSvt(view);
00089 }

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().

00050 {
00051   _hotl->remove(deadHot);
00052 }

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().

00065 {
00066   std::for_each(begin(),end(),f);
00067   return this;
00068 }

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().

00110                                           {
00111   return _hotl->svtView(layer);
00112 }

TrkHotList * TrkHotListUnowned::takeHotList (  ) 

Definition at line 138 of file TrkHotListUnowned.cxx.

References _hotl, and _ownhots.

00138                                {
00139   if(_ownhots){
00140     _ownhots = false;
00141     return _hotl;
00142   } else
00143     return 0;
00144 }

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);}


Friends And Related Function Documentation

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.


Member Data Documentation

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().


Generated on Tue Nov 29 23:36:15 2016 for BOSS_7.0.2 by  doxygen 1.4.7