CMS 3D CMS Logo

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