File indexing completed on 2023-03-17 10:45:31
0001 #include <map>
0002 #include <string>
0003
0004 class TmCcu {
0005 public:
0006 TmCcu(int crate, int slot, int ring, int addr);
0007 ~TmCcu();
0008 int red, green, blue;
0009 float value;
0010 std::string text;
0011 int count;
0012 int idex;
0013 int crate;
0014 int nmod;
0015 std::string cmodid;
0016 int layer;
0017 int mpos;
0018 int getCcuCrate() {
0019 int res = (int)(idex / 10000000);
0020 return res;
0021 }
0022 int getCcuSlot() {
0023 int res = (int)(idex / 100000);
0024 int res1 = (int)(res / 100);
0025 return res - res1 * 100;
0026 }
0027 int getCcuRing() {
0028 int res = (int)(idex % 100000);
0029 int res1 = (int)(res / 1000);
0030 return res1;
0031 }
0032 int getCcuAddr() {
0033 int res = (int)(idex % 1000);
0034 return res;
0035 }
0036 };