00001 00005 /******************************************** 00006 * 00007 * $Id: StPmdDetector.h,v 1.2 2003/05/12 12:07:13 subhasis Exp $ 00008 * 00009 * Author: Subhasis Chattopadhyay 00010 ******************************************** 00011 * 00012 * Description: Base class for PMD detector 00013 * 00014 ******************************************** 00015 * $Log: StPmdDetector.h,v $ 00016 * Revision 1.2 2003/05/12 12:07:13 subhasis 00017 * Mapping added 00018 * 00019 ********************************************/ 00020 #ifndef StPmdDetector_hh 00021 #define StPmdDetector_hh 00022 00023 #include "StObject.h" 00024 class StPmdHit; 00025 class StPmdModule; 00026 class StPmdClusterCollection; 00027 00028 class StPmdDetector : public StObject { 00029 public: 00030 StPmdDetector(); 00031 StPmdDetector(Int_t, unsigned int); 00032 ~StPmdDetector(); 00033 00034 unsigned int numberOfModules() const; 00035 00036 bool addHit(StPmdHit*); 00037 unsigned int numberOfHits() const; 00038 00039 StPmdModule* module(unsigned int); 00040 Int_t module_hit(Int_t); 00041 00042 void setModule(StPmdModule*,int); // 00043 00044 StPmdClusterCollection* cluster(); 00045 void setCluster(StPmdClusterCollection*); 00046 00047 private: 00048 Int_t mDetectorId; 00049 UInt_t mNumberOfModules; 00050 00051 Int_t mModules_NHit[12]; 00052 StPmdModule *mModules[12]; 00053 StPmdClusterCollection *mClusters; 00054 00055 ClassDef(StPmdDetector,1) 00056 }; 00057 #endif
1.5.9