00001 #include <map> 00002 #include <string> 00003 00004 00005 class TmCcu { 00006 public: 00007 TmCcu(int crate,int slot,int ring, int addr); 00008 ~TmCcu(); 00009 int red,green,blue; 00010 float value; 00011 std::string text; 00012 int count; 00013 int idex; 00014 int crate; 00015 int nmod;//number of modules connected to this ccu 00016 std::string cmodid;//list of modules connected to this ccu 00017 int layer;//tracker layer of connected modules 00018 int mpos;//ccu position in ring 00019 int getCcuCrate(){int res = (int) (idex/10000000); return res;} 00020 int getCcuSlot(){int res = (int) (idex/100000); int res1=(int)(res/100);return res - res1*100;} 00021 int getCcuRing(){int res = (int) (idex%100000); int res1=(int)(res/1000);return res1 ;} 00022 int getCcuAddr(){int res = (int) (idex%1000); return res;} 00023 };