CMS 3D CMS Logo

SiPixelUtility.h
Go to the documentation of this file.
1 #ifndef SiPixelUtility_H
2 #define SiPixelUtility_H
3 
13 #include "TH1.h"
14 #include "TPaveText.h"
15 #include <fstream>
16 #include <map>
17 #include <string>
18 #include <vector>
19 
21 public:
22  static int getMEList(std::string name, std::vector<std::string> &values);
23  static bool checkME(std::string element, std::string name, std::string &full_path);
24  static int getMEList(std::string name, std::string &dir_path, std::vector<std::string> &me_names);
25 
26  static void split(const std::string &str, std::vector<std::string> &tokens, const std::string &delimiters = " ");
27  static void getStatusColor(int status, int &rval, int &gval, int &bval);
28  static void getStatusColor(int status, int &icol, std::string &tag);
29  static void getStatusColor(double status, int &rval, int &gval, int &bval);
30  static int getStatus(MonitorElement *me);
31 
32  static int computeHistoBin(std::string &module_path);
33  static int computeErrorCode(DQMStore *bei, std::string &module_path);
34  static int computeErrorCode(int status);
35  static void fillPaveText(TPaveText *pave, const std::map<std::string, std::pair<int, double>> &messages);
36  static void createStatusLegendMessages(std::map<std::string, std::pair<int, double>> &messages);
37  static std::map<std::string, std::string> sourceCodeMap();
38  static void setDrawingOption(TH1 *hist, float xlow = -1., float xhigh = -1.);
39  static std::vector<std::string> getQTestNameList(MonitorElement *me);
40 };
41 
42 #endif
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:22
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)