Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:07

0001 #include <map>
0002 #include <string>
0003 
0004 class TmModule;
0005 
0006 class TmPsu {
0007 public:
0008   TmPsu(int dcs, int branch, int rack, int crate, int board);
0009   ~TmPsu();
0010   int id;
0011   int idex;
0012   std::string psId;  //ex: TECminus_5_6_4_2_3...
0013   int getPsuDcs() {
0014     int res = (int)(id % 100000);
0015     return (int)(id - res) / 100000;
0016   }
0017   int getPsuBranch() {
0018     int res1 = (int)(id % 100000);
0019     int res = (int)(res1 % 1000);
0020     return (int)(res1 - res) / 1000;
0021   }
0022   int getPsuRack() {
0023     int res = (int)(idex % 1000);
0024     return (idex - res) / 1000;
0025   }
0026   int getPsuCrate() {
0027     int res1 = (int)(idex % 1000);
0028     int res = (int)(res1 % 100);
0029     return (int)(res1 - res) / 100;
0030   }
0031   int getPsuBoard() {
0032     int res2 = (int)(idex % 1000);
0033     int res1 = (int)(res2 % 100);
0034     return res1;
0035   }
0036 
0037   int red, green, blue;
0038   int redHV2, greenHV2, blueHV2;
0039   int redHV3, greenHV3, blueHV3;
0040   float value;
0041   float valueHV3;
0042   float valueHV2;
0043   int count;
0044   int countHV2;
0045   int countHV3;
0046   int nmod;
0047   int nmodHV2;
0048   int nmodHV3;
0049   std::string cmodid_LV;  //list of modules connected to the LV channels of this psu
0050   std::string cmodid_HV2;
0051   std::string cmodid_HV3;
0052   std::string text;
0053   std::string textHV2;
0054   std::string textHV3;
0055 };