CMS 3D CMS Logo

SiPixelUtility.h
Go to the documentation of this file.
1 #ifndef SiPixelUtility_H
2 #define SiPixelUtility_H
3 
12 #include "TH1.h"
13 #include "TPaveText.h"
14 #include <fstream>
15 #include <map>
16 #include <string>
17 #include <vector>
18 
20 public:
23 
24  static int getMEList(std::string name, std::vector<std::string> &values);
25  static bool checkME(std::string element, std::string name, std::string &full_path);
26  static int getMEList(std::string name, std::string &dir_path, std::vector<std::string> &me_names);
27 
28  static void split(const std::string &str, std::vector<std::string> &tokens, const std::string &delimiters = " ");
29  static void getStatusColor(int status, int &rval, int &gval, int &bval);
30  static void getStatusColor(int status, int &icol, std::string &tag);
31  static void getStatusColor(double status, int &rval, int &gval, int &bval);
32  static int getStatus(MonitorElement *me);
33 
34  static int computeHistoBin(std::string &module_path);
35  static int computeErrorCode(int status);
36  static void fillPaveText(TPaveText *pave, const std::map<std::string, std::pair<int, double>> &messages);
37  static void createStatusLegendMessages(std::map<std::string, std::pair<int, double>> &messages);
38  static std::map<std::string, std::string> sourceCodeMap();
39  static void setDrawingOption(TH1 *hist, float xlow = -1., float xhigh = -1.);
40  static std::vector<std::string> getQTestNameList(MonitorElement *me);
41 };
42 
43 #endif
SiPixelUtility::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: SiPixelUtility.h:21
SiPixelUtility::checkME
static bool checkME(std::string element, std::string name, std::string &full_path)
Definition: SiPixelUtility.cc:33
mps_update.status
status
Definition: mps_update.py:69
SiPixelUtility::setDrawingOption
static void setDrawingOption(TH1 *hist, float xlow=-1., float xhigh=-1.)
Definition: SiPixelUtility.cc:349
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
SiPixelUtility::getStatusColor
static void getStatusColor(int status, int &rval, int &gval, int &bval)
Definition: SiPixelUtility.cc:74
SiPixelUtility::getQTestNameList
static std::vector< std::string > getQTestNameList(MonitorElement *me)
Definition: SiPixelUtility.cc:145
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiPixelUtility::createStatusLegendMessages
static void createStatusLegendMessages(std::map< std::string, std::pair< int, double >> &messages)
Definition: SiPixelUtility.cc:309
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
SiPixelUtility
Definition: SiPixelUtility.h:19
str
#define str(s)
Definition: TestProcessor.cc:52
SiPixelUtility::computeHistoBin
static int computeHistoBin(std::string &module_path)
Definition: SiPixelUtility.cc:167
SiPixelUtility::split
static void split(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")
Definition: SiPixelUtility.cc:53
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
gpuVertexFinder::hist
__shared__ Hist hist
Definition: gpuClusterTracksDBSCAN.h:48
SiPixelUtility::sourceCodeMap
static std::map< std::string, std::string > sourceCodeMap()
Definition: SiPixelUtility.cc:277
SiPixelUtility::computeErrorCode
static int computeErrorCode(int status)
Definition: SiPixelUtility.cc:150
SiPixelUtility::fillPaveText
static void fillPaveText(TPaveText *pave, const std::map< std::string, std::pair< int, double >> &messages)
Definition: SiPixelUtility.cc:264
SiPixelUtility::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: SiPixelUtility.h:22
SiPixelUtility::getStatus
static int getStatus(MonitorElement *me)
Definition: SiPixelUtility.cc:129
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
contentValuesCheck.messages
messages
Definition: contentValuesCheck.py:44
genParticles_cff.map
map
Definition: genParticles_cff.py:11
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
SiPixelUtility::getMEList
static int getMEList(std::string name, std::vector< std::string > &values)