/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CommonTools/TrackerMap/interface/TmPsu.h
55 строк
1 KB
Cms Build
Clang-Format
29 май 2019, 08:26
29 май 2019, 08:26
a1ca1e7
Код
Авторство
О чём код?
#include <map> #include <string> class TmModule; class TmPsu { public: TmPsu(int dcs, int branch, int rack, int crate, int board); ~TmPsu(); int id; int idex; std::string psId; //ex: TECminus_5_6_4_2_3... int getPsuDcs() { int res = (int)(id % 100000); return (int)(id - res) / 100000; } int getPsuBranch() { int res1 = (int)(id % 100000); int res = (int)(res1 % 1000); return (int)(res1 - res) / 1000; } int getPsuRack() { int res = (int)(idex % 1000); return (idex - res) / 1000; } int getPsuCrate() { int res1 = (int)(idex % 1000); int res = (int)(res1 % 100); return (int)(res1 - res) / 100; } int getPsuBoard() { int res2 = (int)(idex % 1000); int res1 = (int)(res2 % 100); return res1; } int red, green, blue; int redHV2, greenHV2, blueHV2; int redHV3, greenHV3, blueHV3; float value; float valueHV3; float valueHV2; int count; int countHV2; int countHV3; int nmod; int nmodHV2; int nmodHV3; std::string cmodid_LV; //list of modules connected to the LV channels of this psu std::string cmodid_HV2; std::string cmodid_HV3; std::string text; std::string textHV2; std::string textHV3; };