StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcSvtBarrelHitCollection.hh
1 /***************************************************************************
2  *
3  * $Id: StMcSvtBarrelHitCollection.hh,v 2.5 2012/03/22 00:48:45 perev Exp $
4  *
5  * Author: Manuel Calderon de la Barca Sanchez, March 2000
6  ***************************************************************************
7  *
8  * Description: Monte Carlo Svt Barrel Hit Collection class
9  *
10  ***************************************************************************
11  *
12  * $Log: StMcSvtBarrelHitCollection.hh,v $
13  * Revision 2.5 2012/03/22 00:48:45 perev
14  * private => protected
15  *
16  * Revision 2.4 2009/07/24 19:08:08 perev
17  * Cleanup + Btof added (Geurts)
18  *
19  * Revision 2.3 2005/01/27 23:40:48 calderon
20  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
21  *
22  * Revision 2.2 2000/04/18 23:46:12 calderon
23  * Fix bug in reurning barrel number
24  * Enumerations for the Max barrels, ladders & wafers modified for
25  * SSD inclusion in current scheme.
26  *
27  * Revision 2.1 2000/03/06 18:05:22 calderon
28  * 1) Modified SVT Hits storage scheme from layer-ladder-wafer to
29  * barrel-ladder-wafer.
30  * 2) Added Rich Hit class and collection, and links to them in other
31  * classes.
32  *
33  *
34  **************************************************************************/
35 #ifndef StMcSvtBarrelHitCollection_hh
36 #define StMcSvtBarrelHitCollection_hh
37 
38 #include "StMcSvtLadderHitCollection.hh"
39 
40 
42 {
43 public:
45  virtual ~StMcSvtBarrelHitCollection();
46  // StMcSvtBarrelHitCollection(const StMcSvtBarrelHitCollection&); use default
47  // const StMcSvtBarrelHitCollection&
48  // operator=(const StMcSvtBarrelHitCollection&); use default
49 
50  unsigned long numberOfHits() const;
51  unsigned int numberOfLadders() const;
52 
53  StMcSvtLadderHitCollection* ladder(unsigned int);
54  const StMcSvtLadderHitCollection* ladder(unsigned int) const;
55 
56  void setBarrelNumber(int);
57 
58 protected:
59  enum { mMaxNumberOfLadders = 20 };
60  int mBarrelNumber;
61  StMcSvtLadderHitCollection mLadders[mMaxNumberOfLadders];
62  ClassDef(StMcSvtBarrelHitCollection,1)
63 };
64 #endif