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