StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StPmdDetector.h
1 
5 /********************************************
6  *
7  * $Id: StPmdDetector.h,v 1.2 2003/05/12 12:07:13 subhasis Exp $
8  *
9  * Author: Subhasis Chattopadhyay
10  ********************************************
11  *
12  * Description: Base class for PMD detector
13  *
14  ********************************************
15  * $Log: StPmdDetector.h,v $
16  * Revision 1.2 2003/05/12 12:07:13 subhasis
17  * Mapping added
18  *
19  ********************************************/
20 #ifndef StPmdDetector_hh
21 #define StPmdDetector_hh
22 
23 #include "StObject.h"
24 class StPmdHit;
25 class StPmdModule;
27 
28 class StPmdDetector : public StObject {
29 public:
30  StPmdDetector();
31  StPmdDetector(Int_t, unsigned int);
32  ~StPmdDetector();
33 
34  unsigned int numberOfModules() const;
35 
36  bool addHit(StPmdHit*);
37  unsigned int numberOfHits() const;
38 
39  StPmdModule* module(unsigned int);
40  Int_t module_hit(Int_t);
41 
42  void setModule(StPmdModule*,int); //
43 
44  StPmdClusterCollection* cluster();
46 
47 private:
48  Int_t mDetectorId;
49  UInt_t mNumberOfModules;
50 
51  Int_t mModules_NHit[12];
52  StPmdModule *mModules[12];
53  StPmdClusterCollection *mClusters;
54 
55  ClassDef(StPmdDetector,1)
56 };
57 #endif
void setModule(StPmdModule *, int)
number of hits in the module
bool addHit(StPmdHit *)
no of modules
Int_t module_hit(Int_t)
module number
unsigned int numberOfHits() const
for adding hits to detector
void setCluster(StPmdClusterCollection *)
number of clusters
unsigned int numberOfModules() const
destructor
~StPmdDetector()
constructor
StPmdModule * module(unsigned int)
number of hits