/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DQM/SiPixelMonitorClient/interface/SiPixelUtility.h
43 строки
2 KB
Marcel Andre Schneider
Remove a bunch of QTest code in DQMStore etc.
27 ноя 2019, 13:19
27 ноя 2019, 13:19
8935021
Код
Авторство
О чём код?
#ifndef SiPixelUtility_H #define SiPixelUtility_H /** \class SiPixelUtility * * * Class that handles the SiPixel Quality Tests * * \author Petra Merkel */ #include "DQMServices/Core/interface/DQMStore.h" #include "TH1.h" #include "TPaveText.h" #include <fstream> #include <map> #include <string> #include <vector> class SiPixelUtility { public: typedef dqm::legacy::MonitorElement MonitorElement; typedef dqm::legacy::DQMStore DQMStore; static int getMEList(std::string name, std::vector<std::string> &values); static bool checkME(std::string element, std::string name, std::string &full_path); static int getMEList(std::string name, std::string &dir_path, std::vector<std::string> &me_names); static void split(const std::string &str, std::vector<std::string> &tokens, const std::string &delimiters = " "); static void getStatusColor(int status, int &rval, int &gval, int &bval); static void getStatusColor(int status, int &icol, std::string &tag); static void getStatusColor(double status, int &rval, int &gval, int &bval); static int getStatus(MonitorElement *me); static int computeHistoBin(std::string &module_path); static int computeErrorCode(int status); static void fillPaveText(TPaveText *pave, const std::map<std::string, std::pair<int, double>> &messages); static void createStatusLegendMessages(std::map<std::string, std::pair<int, double>> &messages); static std::map<std::string, std::string> sourceCodeMap(); static void setDrawingOption(TH1 *hist, float xlow = -1., float xhigh = -1.); static std::vector<std::string> getQTestNameList(MonitorElement *me); }; #endif