BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkHotList Class Referenceabstract

#include <TrkHotList.h>

+ Inheritance diagram for TrkHotList:

Public Types

typedef TrkHitOnTrkIter< TrkHotList::const_iterator_traits > hot_iterator
 
typedef TrkHitOnTrkIter< TrkHotList::iterator_traits > nc_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
 

Friends

struct iterator_traits
 
struct const_iterator_traits
 
class TrkHotListUnowned
 
class TrkHotListFull
 

Detailed Description

Definition at line 30 of file TrkHotList.h.

Member Typedef Documentation

◆ hot_iterator

TrkHitOnTrkIter<TrkHotList::const_iterator_traits> TrkHotList::hot_iterator

Definition at line 43 of file TrkHotList.h.

◆ hotlist_t

std::vector<TrkHitOnTrk*> TrkHotList::hotlist_t
protected

Definition at line 76 of file TrkHotList.h.

◆ nc_hot_iterator

TrkHitOnTrkIter<TrkHotList::iterator_traits> TrkHotList::nc_hot_iterator

Definition at line 47 of file TrkHotList.h.

Constructor & Destructor Documentation

◆ TrkHotList()

TrkHotList::TrkHotList ( )

Definition at line 22 of file TrkHotList.cxx.

23{
24}

◆ ~TrkHotList()

TrkHotList::~TrkHotList ( )
virtual

Definition at line 26 of file TrkHotList.cxx.

27{
28}

Member Function Documentation

◆ append()

virtual void TrkHotList::append ( TrkHitOnTrk * )
pure virtual

◆ begin() [1/2]

nc_hot_iterator TrkHotList::begin ( )
inline

Definition at line 48 of file TrkHotList.h.

48{ return nc_hot_iterator(hotlist().begin()); }
TrkHitOnTrkIter< TrkHotList::iterator_traits > nc_hot_iterator
Definition TrkHotList.h:47
hot_iterator begin() const
Definition TrkHotList.h:44

Referenced by begin().

◆ begin() [2/2]

◆ clone()

◆ end() [1/2]

nc_hot_iterator TrkHotList::end ( )
inline

Definition at line 49 of file TrkHotList.h.

49{ return nc_hot_iterator(hotlist().end()); }
hot_iterator end() const
Definition TrkHotList.h:45

Referenced by end().

◆ end() [2/2]

◆ endFoundRange()

virtual double TrkHotList::endFoundRange ( ) const
pure virtual

◆ findHot()

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

◆ firstMdcLayer()

virtual unsigned TrkHotList::firstMdcLayer ( ) const
pure virtual

◆ hasSvtView()

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

Definition at line 56 of file TrkHotList.cxx.

57{
58 TrkView need(view);
59 TrkView have = svtView(layer);
60 return have.contains(need);
61}
virtual TrkView svtView(int layer) const =0
bool contains(const TrkView &other) const
Definition TrkView.cxx:84

◆ hitCapable()

virtual bool TrkHotList::hitCapable ( ) const
pure virtual

◆ isActive()

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

◆ lastMdcLayer()

virtual unsigned TrkHotList::lastMdcLayer ( ) const
pure virtual

◆ nActive()

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

◆ nHit()

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

◆ nMdc()

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

◆ nSvt()

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

◆ print()

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

Definition at line 31 of file TrkHotList.cxx.

32{
33 o << " hitCapable: " << (hitCapable()?"yes":"no")
34 << " nActive: " << nActive()
35 << " nHit: " << nHit()
36 << " startFoundRange: " <<startFoundRange()
37 << " endFoundRange: " << endFoundRange();
38}
virtual double endFoundRange() const =0
virtual bool hitCapable() const =0
virtual double startFoundRange() const =0
virtual int nActive(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0
virtual int nHit(TrkEnums::TrkViewInfo view=TrkEnums::bothView) const =0

Referenced by MdcTrackList::pickHits(), and printAll().

◆ printAll()

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

Definition at line 41 of file TrkHotList.cxx.

42{
43 print(o); o << "\n";
45 int kk=0;
46 while (i!=end()) {
47 kk++;
48 std::cout<< kk << ":" ;
49 i->print(o); o << endl;
50 i->hit()->printAll(o);//yzhang debug
51 i++;
52 }
53}
void print(std::ostream &o) const

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

◆ remove()

virtual void TrkHotList::remove ( TrkHitOnTrk * )
pure virtual

◆ resetParent()

TrkHotList * TrkHotList::resetParent ( TrkBase::Functors::setParent f)
virtual

Definition at line 64 of file TrkHotList.cxx.

65{
66 std::for_each(begin(),end(),f);
67 return this;
68}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")

Referenced by TrkRep::TrkRep().

◆ sort()

void TrkHotList::sort ( )
virtual

Definition at line 71 of file TrkHotList.cxx.

72{
73 std::sort(hotlist().begin(),
74 hotlist().end(),
76}

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

◆ startFoundRange()

virtual double TrkHotList::startFoundRange ( ) const
pure virtual

◆ svtView()

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

◆ updateHots()

virtual void TrkHotList::updateHots ( )
pure virtual

Friends And Related Symbol Documentation

◆ const_iterator_traits

friend struct const_iterator_traits
friend

Definition at line 75 of file TrkHotList.h.

◆ iterator_traits

friend struct iterator_traits
friend

Definition at line 74 of file TrkHotList.h.

◆ TrkHotListFull

friend class TrkHotListFull
friend

Definition at line 93 of file TrkHotList.h.

◆ TrkHotListUnowned

friend class TrkHotListUnowned
friend

Definition at line 92 of file TrkHotList.h.

Referenced by TrkHotListUnowned::clone().


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