StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcTpcHitCollection.hh
1 /***************************************************************************
2  *
3  * $Id: StMcTpcHitCollection.hh,v 2.4 2012/03/22 00:50:46 perev Exp $
4  * $Log: StMcTpcHitCollection.hh,v $
5  * Revision 2.4 2012/03/22 00:50:46 perev
6  * private => protected
7  *
8  * Revision 2.3 2009/07/24 19:08:09 perev
9  * Cleanup + Btof added (Geurts)
10  *
11  * Revision 2.2 2005/01/27 23:40:49 calderon
12  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
13  *
14  * Revision 2.1 1999/11/19 19:06:34 calderon
15  * Recommit after redoing the files.
16  *
17  * Revision 2.0 1999/11/17 02:12:16 calderon
18  * Completely revised for new StEvent
19  *
20  * Revision 1.2 1999/09/23 21:25:53 calderon
21  * Added Log & Id
22  * Modified includes according to Yuri
23  *
24  *
25  **************************************************************************/
26 #ifndef StMcTpcHitCollection_hh
27 #define StMcTpcHitCollection_hh
28 
29 #include "StMcTpcSectorHitCollection.hh"
30 
31 class StMcTpcHit;
32 
34 public:
36  virtual ~StMcTpcHitCollection();
37  // StMcTpcHitCollection(const StMcTpcHitCollection&); use default
38  // StMcTpcHitCollection& operator=(const StMcTpcHitCollection&); use default
39 
40  bool addHit(StMcTpcHit*);
41  unsigned long numberOfHits() const;
42  unsigned int numberOfSectors() const;
43 
44  StMcTpcSectorHitCollection* sector(unsigned int);
45  const StMcTpcSectorHitCollection* sector(unsigned int) const;
46 
47 protected:
48  enum { mNumberOfSectors = 24 };
49  StMcTpcSectorHitCollection mSectors[mNumberOfSectors];
50  ClassDef(StMcTpcHitCollection,1)
51 };
52 
53 #endif