StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcSvtHitCollection.hh
1 /***************************************************************************
2  *
3  * $Id: StMcSvtHitCollection.hh,v 2.6 2012/03/22 00:48:45 perev Exp $
4  * $Log: StMcSvtHitCollection.hh,v $
5  * Revision 2.6 2012/03/22 00:48:45 perev
6  * private => protected
7  *
8  * Revision 2.5 2009/07/24 19:08:08 perev
9  * Cleanup + Btof added (Geurts)
10  *
11  * Revision 2.4 2005/01/27 23:40:48 calderon
12  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
13  *
14  * Revision 2.3 2000/04/18 23:46:12 calderon
15  * Fix bug in reurning barrel number
16  * Enumerations for the Max barrels, ladders & wafers modified for
17  * SSD inclusion in current scheme.
18  *
19  * Revision 2.2 2000/03/06 18:05:22 calderon
20  * 1) Modified SVT Hits storage scheme from layer-ladder-wafer to
21  * barrel-ladder-wafer.
22  * 2) Added Rich Hit class and collection, and links to them in other
23  * classes.
24  *
25  * Revision 2.1 1999/11/19 19:06:33 calderon
26  * Recommit after redoing the files.
27  *
28  * Revision 2.0 1999/11/17 02:12:16 calderon
29  * Completely revised for new StEvent
30  *
31  * Revision 1.2 1999/09/23 21:25:52 calderon
32  * Added Log & Id
33  * Modified includes according to Yuri
34  *
35  *
36  **************************************************************************/
37 #ifndef StMcSvtHitCollection_hh
38 #define StMcSvtHitCollection_hh
39 
40 #include "StMcSvtBarrelHitCollection.hh"
41 class StMcSvtHit;
42 
44 public:
46  virtual ~StMcSvtHitCollection();
47  // StMcSvtHitCollection(const StMcSvtHitCollection&); use default
48  // StMcSvtHitCollection& operator=(const StMcSvtHitCollection&); use default
49 
50  bool addHit(StMcSvtHit*);
51  unsigned long numberOfHits() const;
52  unsigned int numberOfBarrels() const;
53 
54  StMcSvtBarrelHitCollection* barrel(unsigned int);
55  const StMcSvtBarrelHitCollection* barrel(unsigned int) const;
56 
57 protected:
58  enum { mNumberOfBarrels = 4 }; // Keeping the SSD along with SVT
59  StMcSvtBarrelHitCollection mBarrels[mNumberOfBarrels];
60  ClassDef(StMcSvtHitCollection,1)
61 };
62 
63 #endif