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