BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
HoughTrackList Class Reference

#include <HoughTrackList.h>

Public Member Functions

 HoughTrackList ()
 
 HoughTrackList (const HoughMap &houghMap)
 
int getTrackNum () const
 
HoughTrackgetTrack (int i)
 
void remove (HoughTrack *)
 
void add (HoughTrack *track)
 

Detailed Description

Definition at line 9 of file HoughTrackList.h.

Constructor & Destructor Documentation

◆ HoughTrackList() [1/2]

HoughTrackList::HoughTrackList ( )

Definition at line 7 of file HoughTrackList.cxx.

7 {
8}

◆ HoughTrackList() [2/2]

HoughTrackList::HoughTrackList ( const HoughMap houghMap)

Definition at line 9 of file HoughTrackList.cxx.

9 {
10// _trackhoughmap=houghMap;
11 _tracklist=houghMap.getTrackList();
12}
const vector< HoughTrack > getTrackList() const
Definition: HoughMap.h:37

Member Function Documentation

◆ add()

void HoughTrackList::add ( HoughTrack track)

Definition at line 21 of file HoughTrackList.cxx.

21 {
22 _tracklist.push_back(*track);
23}

◆ getTrack()

HoughTrack & HoughTrackList::getTrack ( int  i)
inline

Definition at line 14 of file HoughTrackList.h.

14{return (_tracklist[i]); }

Referenced by MdcHoughFinder::execute().

◆ getTrackNum()

int HoughTrackList::getTrackNum ( ) const
inline

Definition at line 13 of file HoughTrackList.h.

13{return _tracklist.size(); }

Referenced by MdcHoughFinder::execute().

◆ remove()

void HoughTrackList::remove ( HoughTrack track)

Definition at line 13 of file HoughTrackList.cxx.

13 {
14
15 vector<HoughTrack>::iterator iter = _tracklist.begin();
16 for(;iter!=_tracklist.end();iter++){
17 if( track == &(*iter) ) { _tracklist.erase(iter);iter--;}
18 }
19 //if( iter !=_tracklist.end() ) _tracklist.erase(iter);
20}
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)

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