CMS 3D CMS Logo

TmCcu.h
Go to the documentation of this file.
1 #include <map>
2 #include <string>
3 
4 class TmCcu {
5 public:
6  TmCcu(int crate, int slot, int ring, int addr);
7  ~TmCcu();
8  int red, green, blue;
9  float value;
11  int count;
12  int idex;
13  int crate;
14  int nmod; //number of modules connected to this ccu
15  std::string cmodid; //list of modules connected to this ccu
16  int layer; //tracker layer of connected modules
17  int mpos; //ccu position in ring
18  int getCcuCrate() {
19  int res = (int)(idex / 10000000);
20  return res;
21  }
22  int getCcuSlot() {
23  int res = (int)(idex / 100000);
24  int res1 = (int)(res / 100);
25  return res - res1 * 100;
26  }
27  int getCcuRing() {
28  int res = (int)(idex % 100000);
29  int res1 = (int)(res / 1000);
30  return res1;
31  }
32  int getCcuAddr() {
33  int res = (int)(idex % 1000);
34  return res;
35  }
36 };
std::string cmodid
Definition: TmCcu.h:15
int layer
Definition: TmCcu.h:16
int getCcuRing()
Definition: TmCcu.h:27
int getCcuAddr()
Definition: TmCcu.h:32
int count
Definition: TmCcu.h:11
int nmod
Definition: TmCcu.h:14
int crate
Definition: TmCcu.h:13
Definition: Electron.h:6
int getCcuSlot()
Definition: TmCcu.h:22
~TmCcu()
Definition: TmCcu.cc:17
int getCcuCrate()
Definition: TmCcu.h:18
int green
Definition: TmCcu.h:8
int mpos
Definition: TmCcu.h:17
float value
Definition: TmCcu.h:9
TmCcu(int crate, int slot, int ring, int addr)
Definition: TmCcu.cc:5
int idex
Definition: TmCcu.h:12
int red
Definition: TmCcu.h:8
int blue
Definition: TmCcu.h:8
Definition: TmCcu.h:4
std::string text
Definition: TmCcu.h:10