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