00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef StMuPmdCollection__h
00029 #define StMuPmdCollection__h
00030
00031 #include "TObject.h"
00032 #include "TClonesArray.h"
00033 #include "Stiostream.h"
00034
00035 class StMuPmdCluster;
00036 class StMuPmdHit;
00037
00038 enum {pmd=1, cpv=2};
00039 class StMuPmdCollection: public TObject
00040 {
00041 public:
00042 StMuPmdCollection();
00043 StMuPmdCollection(StMuPmdCollection&);
00044 virtual ~StMuPmdCollection();
00045 void clear(Option_t *option="");
00046 void Clear(Option_t *option=""){clear(option);}
00047 void DeleteThis();
00048
00049 TClonesArray *getClusterArray(int detector) {return mPmdClusters[detector];}
00050 int getNClusters(int detector);
00051 StMuPmdCluster* getCluster(int clusterId,int detector);
00052
00053 void addCluster(int detector);
00054
00055 TClonesArray *getHitArray(int detector) {return mPmdHits[detector];}
00056 int getNHits(int detector);
00057 StMuPmdHit* getHit(int hitId,int detector);
00058
00059 void addHit(int detector);
00060
00061 void setPmdHitArray(TClonesArray *array) {mPmdHits[0]=array;}
00062 void setCpvHitArray(TClonesArray *array) {mPmdHits[1]=array;}
00063 void setPmdClusterArray(TClonesArray *array) {mPmdClusters[0]=array;}
00064 void setCpvClusterArray(TClonesArray *array) {mPmdClusters[1]=array;}
00065 protected:
00066 void init(int detector);
00067
00068 TClonesArray* mPmdClusters[2];
00069 TClonesArray* mPmdHits[2];
00070
00071 ClassDef(StMuPmdCollection,2)
00072 };
00073
00074
00075
00076 #endif
00077