StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPxlHitCollection.h
1 
5 /***************************************************************************
6  *
7  * $Id: StPxlHitCollection.h,v 2.1 2013/03/05 14:40:40 ullrich Exp $
8  *
9  * Author: X. Dong, Jan 2013
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *
16  * $Log: StPxlHitCollection.h,v $
17  * Revision 2.1 2013/03/05 14:40:40 ullrich
18  * Initial Revision.
19  *
20  **************************************************************************/
21 #ifndef StPxlHitCollection_hh
22 #define StPxlHitCollection_hh
23 
24 #include "StObject.h"
25 #include "StPxlSectorHitCollection.h"
26 
27 class StPxlHit;
28 
29 class StPxlHitCollection : public StObject {
30 public:
33 
34  bool addHit(StPxlHit*);
35  unsigned int numberOfHits() const;
36  unsigned int numberOfSectors() const;
37 
38  StPxlSectorHitCollection* sector(unsigned int);
39  const StPxlSectorHitCollection* sector(unsigned int) const;
40 
41 private:
42  enum { mNumberOfSectors = 10 };
43  StPxlSectorHitCollection mSectors[mNumberOfSectors];
44 
45  ClassDef(StPxlHitCollection,1)
46 };
47 
48 inline unsigned int StPxlHitCollection::numberOfSectors() const { return mNumberOfSectors; }
49 
50 #endif