00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ST_BTOF_HIT_COLLECTION_H
00014 #define ST_BTOF_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 StBTofHit;
00023
00024 #ifndef ST_NO_DEF_TEMPLATE_ARGS
00025 typedef vector<StBTofHit*> hitVector;
00026 #else
00027 typedef vector<StBTofHit*, allocator<StBTofHit*> > hitVector;
00028 #endif
00029
00034 class StBTofHitCollection {
00035 public:
00037 StBTofHitCollection();
00038 virtual ~StBTofHitCollection();
00039
00041 bool push_back(StBTofHit* hit);
00043 size_t size() const;
00045 StBTofHit* front() const;
00047 StBTofHit* back() const;
00049 StBTofHit* getHit(size_t index) const;
00050
00051 void clear();
00052
00053 private:
00055 hitVector mHitVector;
00056 };
00057 #endif