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(DQMStore *bei, std::string &module_path);
36  static int computeErrorCode(int status);
37  static void fillPaveText(TPaveText *pave, const std::map<std::string, std::pair<int, double>> &messages);
38  static void createStatusLegendMessages(std::map<std::string, std::pair<int, double>> &messages);
39  static std::map<std::string, std::string> sourceCodeMap();
40  static void setDrawingOption(TH1 *hist, float xlow = -1., float xhigh = -1.);
41  static std::vector<std::string> getQTestNameList(MonitorElement *me);
42 };
43 
44 #endif
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 std::map< std::string, std::string > sourceCodeMap()
static void split(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")
static int computeHistoBin(std::string &module_path)
static void setDrawingOption(TH1 *hist, float xlow=-1., float xhigh=-1.)
static int getStatus(MonitorElement *me)
static void fillPaveText(TPaveText *pave, const std::map< std::string, std::pair< int, double >> &messages)
static void getStatusColor(int status, int &rval, int &gval, int &bval)
unsigned long long int rval
Definition: vlib.h:21
dqm::legacy::MonitorElement MonitorElement
static int computeErrorCode(DQMStore *bei, std::string &module_path)
#define str(s)
static void createStatusLegendMessages(std::map< std::string, std::pair< int, double >> &messages)
static std::vector< std::string > getQTestNameList(MonitorElement *me)