CMS 3D CMS Logo

TmPsu.h
Go to the documentation of this file.
1 #include <map>
2 #include <string>
3 
4 class TmModule;
5 
6 class TmPsu {
7 public:
8  TmPsu(int dcs, int branch, int rack, int crate, int board);
9  ~TmPsu();
10  int id;
11  int idex;
12  std::string psId; //ex: TECminus_5_6_4_2_3...
13  int getPsuDcs() {
14  int res = (int)(id % 100000);
15  return (int)(id - res) / 100000;
16  }
17  int getPsuBranch() {
18  int res1 = (int)(id % 100000);
19  int res = (int)(res1 % 1000);
20  return (int)(res1 - res) / 1000;
21  }
22  int getPsuRack() {
23  int res = (int)(idex % 1000);
24  return (idex - res) / 1000;
25  }
26  int getPsuCrate() {
27  int res1 = (int)(idex % 1000);
28  int res = (int)(res1 % 100);
29  return (int)(res1 - res) / 100;
30  }
31  int getPsuBoard() {
32  int res2 = (int)(idex % 1000);
33  int res1 = (int)(res2 % 100);
34  return res1;
35  }
36 
37  int red, green, blue;
40  float value;
41  float valueHV3;
42  float valueHV2;
43  int count;
44  int countHV2;
45  int countHV3;
46  int nmod;
47  int nmodHV2;
48  int nmodHV3;
49  std::string cmodid_LV; //list of modules connected to the LV channels of this psu
55 };
int getPsuBranch()
Definition: TmPsu.h:17
int redHV2
Definition: TmPsu.h:38
std::string cmodid_HV2
Definition: TmPsu.h:50
int nmodHV3
Definition: TmPsu.h:48
int count
Definition: TmPsu.h:43
int idex
Definition: TmPsu.h:11
int countHV2
Definition: TmPsu.h:44
float value
Definition: TmPsu.h:40
int getPsuBoard()
Definition: TmPsu.h:31
int red
Definition: TmPsu.h:37
int greenHV3
Definition: TmPsu.h:39
Definition: Electron.h:6
int getPsuDcs()
Definition: TmPsu.h:13
int nmod
Definition: TmPsu.h:46
int blueHV3
Definition: TmPsu.h:39
int greenHV2
Definition: TmPsu.h:38
int getPsuRack()
Definition: TmPsu.h:22
int nmodHV2
Definition: TmPsu.h:47
int green
Definition: TmPsu.h:37
std::string psId
Definition: TmPsu.h:12
int redHV3
Definition: TmPsu.h:39
~TmPsu()
Definition: TmPsu.cc:22
std::string cmodid_HV3
Definition: TmPsu.h:51
int id
Definition: TmPsu.h:10
float valueHV2
Definition: TmPsu.h:42
TmPsu(int dcs, int branch, int rack, int crate, int board)
Definition: TmPsu.cc:5
std::string textHV3
Definition: TmPsu.h:54
std::string text
Definition: TmPsu.h:52
int countHV3
Definition: TmPsu.h:45
std::string cmodid_LV
Definition: TmPsu.h:49
float valueHV3
Definition: TmPsu.h:41
std::string textHV2
Definition: TmPsu.h:53
int blue
Definition: TmPsu.h:37
int blueHV2
Definition: TmPsu.h:38
Definition: TmPsu.h:6
int getPsuCrate()
Definition: TmPsu.h:26