CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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(){int res = (int) (id%100000); return (int)(id - res)/100000;}
14  int getPsuBranch(){int res1 = (int)(id%100000); int res = (int)(res1%1000); return (int) (res1 -res)/1000;}
15  int getPsuRack(){int res = (int) (idex%1000); return (idex - res)/1000;}
16  int getPsuCrate(){int res1 = (int) (idex%1000); int res=(int)(res1%100);return (int)(res1 - res)/100;}
17  int getPsuBoard(){int res2 = (int) (idex%1000); int res1=(int)(res2%100);return res1;}
18 
19 
20  int red,green,blue;
23  float value;
24  float valueHV3;
25  float valueHV2;
26  int count;
27  int countHV2;
28  int countHV3;
29  int nmod;
30  int nmodHV2;
31  int nmodHV3;
32  std::string cmodid_LV;//list of modules connected to the LV channels of this psu
33  std::string cmodid_HV2;
34  std::string cmodid_HV3;
35  std::string text;
36  std::string textHV2;
37  std::string textHV3;
38 
39 
40  };
41 
42 
43 
44 
int getPsuBranch()
Definition: TmPsu.h:14
int redHV2
Definition: TmPsu.h:21
std::string cmodid_HV2
Definition: TmPsu.h:33
int nmodHV3
Definition: TmPsu.h:31
int count
Definition: TmPsu.h:26
int idex
Definition: TmPsu.h:11
int countHV2
Definition: TmPsu.h:27
float value
Definition: TmPsu.h:23
int getPsuBoard()
Definition: TmPsu.h:17
int red
Definition: TmPsu.h:20
int greenHV3
Definition: TmPsu.h:22
int getPsuDcs()
Definition: TmPsu.h:13
int nmod
Definition: TmPsu.h:29
int blueHV3
Definition: TmPsu.h:22
int greenHV2
Definition: TmPsu.h:21
int getPsuRack()
Definition: TmPsu.h:15
int nmodHV2
Definition: TmPsu.h:30
int green
Definition: TmPsu.h:20
std::string psId
Definition: TmPsu.h:12
int redHV3
Definition: TmPsu.h:22
~TmPsu()
Definition: TmPsu.cc:24
std::string cmodid_HV3
Definition: TmPsu.h:34
int id
Definition: TmPsu.h:10
float valueHV2
Definition: TmPsu.h:25
TmPsu(int dcs, int branch, int rack, int crate, int board)
Definition: TmPsu.cc:5
std::string textHV3
Definition: TmPsu.h:37
std::string text
Definition: TmPsu.h:35
int countHV3
Definition: TmPsu.h:28
std::string cmodid_LV
Definition: TmPsu.h:32
float valueHV3
Definition: TmPsu.h:24
std::string textHV2
Definition: TmPsu.h:36
int blue
Definition: TmPsu.h:20
int blueHV2
Definition: TmPsu.h:21
Definition: TmPsu.h:6
int getPsuCrate()
Definition: TmPsu.h:16