00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ST_TOF_DATA_COLLECTION_H
00014 #define ST_TOF_DATA_COLLECTION_H
00015
00016 #include <vector>
00017 #ifndef ST_NO_NAMESPACES
00018 using std::vector;
00019 using std::copy;
00020 #endif
00021
00022
00023 class StTofData;
00024
00025 #ifndef ST_NO_DEF_TEMPLATE_ARGS
00026 typedef vector<StTofData*> dataVector;
00027 #else
00028 typedef vector<StTofData*, allocator<StTofData*> > dataVector;
00029 #endif
00030
00031 class StTofDataCollection {
00032 public:
00033 StTofDataCollection();
00034 virtual ~StTofDataCollection();
00035 bool push_back(StTofData* chan);
00036 size_t size() const;
00037 StTofData* front() const;
00038 StTofData* back() const;
00039 StTofData* getData(size_t index) const;
00040 void clear();
00041
00042 private:
00043 dataVector mDataVector;
00044 };
00045 #endif