00001 #ifndef EmcCCount_h 00002 #define EmcCCount_h 1 00003 00004 #include "Trigger/EmcTCFinder.h" 00005 #include "Trigger/TrigPara.h" 00006 00007 class IBesGlobalTrigSvc; 00008 class BesGlobalTrigSvc; 00009 00010 using namespace TrigConf; 00011 00012 class EmcCCount{ 00013 public: 00014 EmcCCount(); 00015 ~EmcCCount(); 00016 void getClusterId(); 00017 bool findCluster(int partId,int TCThetaNb,int TCPhiNb); 00018 inline int getBClusterPhi(int i) { return BClusterPhi[i]; } 00019 inline int getWEClusterPhi(int i) { return WEClusterPhi[i]; } 00020 inline int getEEClusterPhi(int i) { return EEClusterPhi[i]; } 00021 inline int getBClusterId(int i,int j) { return BClusterId[i][j]; } 00022 inline int getEEClusterId(int i,int j) { return EEClusterId[i][j]; } 00023 inline int getWEClusterId(int i,int j) { return WEClusterId[i][j]; } 00024 inline bool getEClus_Z() { return EClus_Z; } 00025 inline bool getWClus_Z() { return WClus_Z; } 00026 private: 00027 EmcTCFinder* m_EmcTCFinder; 00028 00029 int BClusterPhi[TrigConf::TCPHINO_B]; 00030 int WEClusterPhi[TrigConf::TCPHINO_E/2]; 00031 int EEClusterPhi[TrigConf::TCPHINO_E/2]; 00032 00033 int BClusterId[TrigConf::TCTHETANO_B][TrigConf::TCPHINO_B]; 00034 int EEClusterId[TrigConf::TCTHETANO_E][TrigConf::TCPHINO_E/2]; 00035 int WEClusterId[TrigConf::TCTHETANO_E][TrigConf::TCPHINO_E/2]; 00036 00037 bool EClus_Z; 00038 bool WClus_Z; 00039 00040 BesGlobalTrigSvc* m_pIBGT; 00041 IBesGlobalTrigSvc* m_tmpSvc; 00042 }; 00043 #endif