00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ST_BTOF_RAWHIT_COLLECTION_H
00014 #define ST_BTOF_RAWHIT_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 StBTofRawHit;
00024
00025 #ifndef ST_NO_DEF_TEMPLATE_ARGS
00026 typedef vector<StBTofRawHit*> rawHitVector;
00027 #else
00028 typedef vector<StBTofRawHit*, allocator<StBTofRawHit*> > rawHitVector;
00029 #endif
00030
00035 class StBTofRawHitCollection {
00036 public:
00038 StBTofRawHitCollection();
00039 virtual ~StBTofRawHitCollection();
00040
00042 bool push_back(StBTofRawHit* hit);
00044 size_t size() const;
00046 StBTofRawHit* front() const;
00048 StBTofRawHit* back() const;
00050 StBTofRawHit* getRawHit(size_t index) const;
00051 void clear();
00052
00053 private:
00055 rawHitVector mHitVector;
00056 };
00057 #endif