TrkHotList Class Reference

#include <TrkHotList.h>

Inheritance diagram for TrkHotList:

TrkHotListEmpty TrkHotListFull TrkHotListUnowned List of all members.

Public Types

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

Public Member Functions

 TrkHotList ()
virtual TrkHotListclone (TrkBase::Functors::cloneHot) const =0
virtual TrkHotListresetParent (TrkBase::Functors::setParent)
virtual ~TrkHotList ()
hot_iterator begin () const
hot_iterator end () const
nc_hot_iterator begin ()
nc_hot_iterator end ()
virtual bool hitCapable () const =0
virtual int nActive (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0
virtual int nMdc (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0
virtual int nSvt (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0
virtual int nHit (TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0
virtual bool hasSvtView (TrkEnums::TrkViewInfo view, int layer) const
virtual TrkView svtView (int layer) const =0
virtual unsigned firstMdcLayer () const =0
virtual unsigned lastMdcLayer () const =0
virtual double startFoundRange () const =0
virtual double endFoundRange () const =0
virtual bool isActive (unsigned ihot) const =0
virtual void append (TrkHitOnTrk *)=0
virtual void remove (TrkHitOnTrk *)=0
virtual void updateHots ()=0
virtual TrkHitOnTrkfindHot (const TrkFundHit *) const =0
virtual void sort ()
void print (std::ostream &o) const
void printAll (std::ostream &o) const

Protected Types

typedef std::vector< TrkHitOnTrk * > hotlist_t

Private Member Functions

 TrkHotList (const TrkHotList &rhs)
TrkHotListoperator= (const TrkHotList &)
virtual const hotlist_thotlist () const =0
virtual hotlist_thotlist ()=0

Friends

struct iterator_traits
struct const_iterator_traits
class TrkHotListUnowned
class TrkHotListFull

Classes

struct  const_iterator_traits
struct  iterator_traits

Detailed Description

Definition at line 30 of file TrkHotList.h.


Member Typedef Documentation

typedef TrkHitOnTrkIter<TrkHotList::const_iterator_traits> TrkHotList::hot_iterator

Definition at line 43 of file TrkHotList.h.

typedef std::vector<TrkHitOnTrk*> TrkHotList::hotlist_t [protected]

Definition at line 76 of file TrkHotList.h.

typedef TrkHitOnTrkIter<TrkHotList::iterator_traits> TrkHotList::nc_hot_iterator

Definition at line 47 of file TrkHotList.h.


Constructor & Destructor Documentation

TrkHotList::TrkHotList (  ) 

Definition at line 22 of file TrkHotList.cxx.

00023 {
00024 }

TrkHotList::~TrkHotList (  )  [virtual]

Definition at line 26 of file TrkHotList.cxx.

00027 {
00028 }

TrkHotList::TrkHotList ( const TrkHotList rhs  )  [private]


Member Function Documentation

virtual void TrkHotList::append ( TrkHitOnTrk  )  [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkRep::addHot(), and TrkHotListUnowned::append().

nc_hot_iterator TrkHotList::begin ( void   )  [inline]

Definition at line 48 of file TrkHotList.h.

References begin(), and hotlist().

00048 { return nc_hot_iterator(hotlist().begin()); }

hot_iterator TrkHotList::begin ( void   )  const [inline]

Definition at line 44 of file TrkHotList.h.

References hotlist().

Referenced by 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(), resetParent(), sort(), TrkHotListFull::startFoundRange(), TrkHotListFull::svtView(), TrkHotListFull::TrkHotListFull(), and TrkHotListFull::updateHots().

00044 { return hot_iterator(hotlist().begin()); }

virtual TrkHotList* TrkHotList::clone ( TrkBase::Functors::cloneHot   )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkRep::TrkRep(), and TrkSimpleRep::TrkSimpleRep().

nc_hot_iterator TrkHotList::end ( void   )  [inline]

Definition at line 49 of file TrkHotList.h.

References end(), and hotlist().

00049 { return nc_hot_iterator(hotlist().end()); }

hot_iterator TrkHotList::end ( void   )  const [inline]

Definition at line 45 of file TrkHotList.h.

References hotlist().

Referenced by TrkRecoTrk::changeDefault(), MdcxTrackFinder::dropMultiHotInLayer(), MdcTrackList::dropMultiHotInLayer(), MdcTrackList::dumpAxCombine(), MdcTrackList::dumpCircle(), MdcTrackList::dumpHelix(), MdcTrackList::dumpStCombine(), end(), TrkHitList::end(), TrkHotListFull::endFoundRange(), MdcHoughFinder::execute(), TrkHotListFull::findHot(), TrkHotListFull::firstMdcLayer(), TrkHelixFitter::fit(), TrkHotListFull::lastMdcLayer(), TrkHotListFull::nActive(), TrkHotListFull::nHit(), TrkHotListFull::nMdc(), TrkHotListFull::nSvt(), resetParent(), sort(), TrkHotListFull::startFoundRange(), TrkHotListFull::svtView(), TrkHotListFull::TrkHotListFull(), and TrkHotListFull::updateHots().

00045 { return hot_iterator(hotlist().end()); }

virtual double TrkHotList::endFoundRange (  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkRep::endFoundRange(), and TrkHotListUnowned::endFoundRange().

virtual TrkHitOnTrk* TrkHotList::findHot ( const TrkFundHit  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkHotListUnowned::findHot().

virtual unsigned TrkHotList::firstMdcLayer (  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkHotListUnowned::firstMdcLayer().

bool TrkHotList::hasSvtView ( TrkEnums::TrkViewInfo  view,
int  layer 
) const [virtual]

Definition at line 56 of file TrkHotList.cxx.

References TrkView::contains(), and svtView().

00057 {
00058   TrkView need(view);
00059   TrkView have = svtView(layer);
00060   return have.contains(need);
00061 }

virtual bool TrkHotList::hitCapable (  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkRep::hitCapable(), and TrkHotListUnowned::hitCapable().

virtual hotlist_t& TrkHotList::hotlist (  )  [private, pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

virtual const hotlist_t& TrkHotList::hotlist (  )  const [private, pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by begin(), end(), TrkHotListUnowned::hotlist(), sort(), and TrkHotListFull::TrkHotListFull().

virtual bool TrkHotList::isActive ( unsigned  ihot  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkHotListUnowned::isActive().

virtual unsigned TrkHotList::lastMdcLayer (  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkHotListUnowned::lastMdcLayer().

virtual int TrkHotList::nActive ( TrkEnums::TrkViewInfo  view = TrkEnums::bothView  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by HoughValidUpdate::execute(), TrkRep::nActive(), and TrkHotListUnowned::nActive().

virtual int TrkHotList::nHit ( TrkEnums::TrkViewInfo  view = TrkEnums::bothView  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkHelixFitter::fit(), and TrkHotListUnowned::nHit().

virtual int TrkHotList::nMdc ( TrkEnums::TrkViewInfo  view = TrkEnums::bothView  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkRep::nMdc(), and TrkHotListUnowned::nMdc().

virtual int TrkHotList::nSvt ( TrkEnums::TrkViewInfo  view = TrkEnums::bothView  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkRep::nSvt(), and TrkHotListUnowned::nSvt().

TrkHotList& TrkHotList::operator= ( const TrkHotList  )  [private]

Reimplemented in TrkHotListEmpty.

void TrkHotList::print ( std::ostream o  )  const

void TrkHotList::printAll ( std::ostream o  )  const

Referenced by MdcTrackList::finishCircle(), and MdcTrackList::finishHelix().

virtual void TrkHotList::remove ( TrkHitOnTrk  )  [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkHotListUnowned::remove(), and TrkRep::removeHot().

TrkHotList * TrkHotList::resetParent ( TrkBase::Functors::setParent   )  [virtual]

Definition at line 64 of file TrkHotList.cxx.

References begin(), and end().

Referenced by TrkRep::TrkRep().

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

void TrkHotList::sort (  )  [virtual]

Definition at line 71 of file TrkHotList.cxx.

References begin(), end(), and hotlist().

Referenced by TrkHitList::fit(), and TrkHotListFull::updateHots().

00072 {
00073   std::sort(hotlist().begin(),
00074       hotlist().end(),
00075       bes::Collection::PtrLess());
00076 }

virtual double TrkHotList::startFoundRange (  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkRep::startFoundRange(), and TrkHotListUnowned::startFoundRange().

virtual TrkView TrkHotList::svtView ( int  layer  )  const [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by hasSvtView(), and TrkHotListUnowned::svtView().

virtual void TrkHotList::updateHots (  )  [pure virtual]

Implemented in TrkHotListEmpty, TrkHotListFull, and TrkHotListUnowned.

Referenced by TrkRep::updateHots(), and TrkHotListUnowned::updateHots().


Friends And Related Function Documentation

friend struct const_iterator_traits [friend]

Definition at line 75 of file TrkHotList.h.

friend struct iterator_traits [friend]

Definition at line 74 of file TrkHotList.h.

friend class TrkHotListFull [friend]

Definition at line 93 of file TrkHotList.h.

friend class TrkHotListUnowned [friend]

Definition at line 92 of file TrkHotList.h.


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