CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/CommonTools/TrackerMap/interface/TmPsu.h

Go to the documentation of this file.
00001 #include <map>
00002 #include <string>
00003 
00004 class TmModule;
00005 
00006 class TmPsu  {
00007  public:
00008   TmPsu(int dcs,int branch, int rack, int crate,int board);
00009   ~TmPsu();
00010   int id;
00011   int idex;
00012   std::string psId;//ex: TECminus_5_6_4_2_3...
00013   int getPsuDcs(){int res = (int) (id%100000); return  (int)(id - res)/100000;}
00014   int getPsuBranch(){int res1 = (int)(id%100000); int res = (int)(res1%1000); return (int) (res1 -res)/1000;}
00015   int getPsuRack(){int res = (int) (idex%1000); return (idex - res)/1000;}
00016   int getPsuCrate(){int res1 = (int) (idex%1000); int res=(int)(res1%100);return (int)(res1 - res)/100;}
00017   int getPsuBoard(){int res2 = (int) (idex%1000); int res1=(int)(res2%100);return res1;}
00018     
00019   
00020   int red,green,blue;
00021   int redHV2,greenHV2,blueHV2;
00022   int redHV3,greenHV3,blueHV3;
00023   float value;
00024   float valueHV3;
00025   float valueHV2;
00026   int count;
00027   int countHV2;
00028   int countHV3;
00029   int nmod;
00030   int nmodHV2;
00031   int nmodHV3;
00032   std::string cmodid_LV;//list of modules connected to the LV channels of this psu
00033   std::string cmodid_HV2;
00034   std::string cmodid_HV3;
00035   std::string text;
00036   std::string textHV2; 
00037   std::string textHV3;
00038  
00039  
00040   };
00041   
00042   
00043    
00044