00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef ST_MU_BTOF_HIT_COLLECTION_H
00021 #define ST_MU_BTOF_HIT_COLLECTION_H
00022
00023 #include <vector>
00024 #ifndef ST_NO_NAMESPACES
00025 using std::vector;
00026 using std::copy;
00027 #endif
00028
00029
00030 #include "StMuBTofHit.h"
00031
00032 #ifndef ST_NO_DEF_TEMPLATE_ARGS
00033 typedef vector<StMuBTofHit*> bhitVector;
00034 #else
00035 typedef vector<StMuBTofHit*, allocator<StMuBTofHit*> > bhitVector;
00036 #endif
00037
00038 class StMuBTofHitCollection {
00039 public:
00040 StMuBTofHitCollection();
00041 virtual ~StMuBTofHitCollection();
00042
00043
00044
00045
00046
00047 bool push_back(StMuBTofHit* hit);
00048 size_t size() const;
00049 StMuBTofHit* front() const;
00050 StMuBTofHit* back() const;
00051 StMuBTofHit* getHit(size_t index) const;
00052
00053 void clear();
00054
00055 protected:
00056
00057 bhitVector mHitVector;
00058 };
00059
00060 #endif