StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiTrackContainer.h
1 
13 #ifndef StiTrackContainer_HH
14 #define StiTrackContainer_HH
15 #include "Sti/Base/Named.h"
16 #include "Sti/Base/Described.h"
17 #include <vector>
18 using namespace std;
19 
20 class StiTrack;
21 template<class Filtered>class Filter;
22 
25 {
26  bool operator()(const StiTrack* lhs, const StiTrack* rhs) const;
27 };
28 
29 class StiTrackContainer : public vector<StiTrack*>, public Named, public Described
30 {
31 public:
32 
33  StiTrackContainer(const string & name, const string & description);
34  virtual ~StiTrackContainer();
35  void add(StiTrack * track);
36  int getTrackCount(Filter<StiTrack> * filter) const;
37  void sort();
38 
39 };
40 
41 
44 {
45  push_back(track);
46 }
47 
48 #endif
Abstract definition of a Track.
Definition: StiTrack.h:59
Define the Less-Than operator for track ordering in the track container.
Definition: Named.h:16
void add(StiTrack *track)
Add the given track to the container.