StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuEpdHitCollection.h
1 /****************************************************************
2  *
3  * Author: Mike Lisa
4  *
5  *****************************************************************
6  *
7  * Description:
8  * patterned after StMuBTofHitCollection
9  *
10  *****************************************************************
11  *
12  *
13  ****************************************************************/
14 
15 #ifndef ST_MU_EPD_HIT_COLLECTION_H
16 #define ST_MU_EPD_HIT_COLLECTION_H
17 
18 #include <vector>
19 #ifndef ST_NO_NAMESPACES
20 using std::vector;
21 using std::copy;
22 #endif
23 
24 
25 #include "StMuEpdHit.h"
26 
27 #ifndef ST_NO_DEF_TEMPLATE_ARGS
28 typedef vector<StMuEpdHit*> ehitVector;
29 #else
30 typedef vector<StMuEpdHit*, allocator<StMuEpdHit*> > ehitVector;
31 #endif
32 
34 public:
36  virtual ~StMuEpdHitCollection();
37 
38  // Do not use default
39 // StMuEpdHitCollection(const StMuEpdHitCollection& old);
40 // StMuEpdHitCollection& operator=(const StMuEpdHitCollection& old);
41 
42  bool push_back(StMuEpdHit* hit);
43  size_t size() const;
44  StMuEpdHit* front() const;
45  StMuEpdHit* back() const;
46  StMuEpdHit* getHit(size_t index) const;
47 
48  void clear();
49 
50 protected:
51 
52  ehitVector mHitVector;
53 };
54 
55 #endif