test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelUtility.h
Go to the documentation of this file.
1 #ifndef SiPixelUtility_H
2 #define SiPixelUtility_H
3 
11 #include <vector>
12 #include <fstream>
13 #include <string>
14 #include <map>
15 #include "TH1.h"
16 #include "TPaveText.h"
19 
21 {
22  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,
29  const std::string& delimiters=" ");
30  static void getStatusColor(int status, int& rval, int&gval, int& bval);
31  static void getStatusColor(int status, int& icol, std::string& tag);
32  static void getStatusColor(double status, int& rval, int&gval, int& bval);
33  static int getStatus(MonitorElement* me);
34 
35  static int computeHistoBin(std::string& module_path);
36  static int computeErrorCode(DQMStore * bei, std::string& module_path);
37  static int computeErrorCode(int status);
38  static void fillPaveText(TPaveText* pave, const std::map<std::string,std::pair<int,double> >& messages);
39  static void createStatusLegendMessages(std::map<std::string,std::pair<int,double> >& messages);
40  static std::map<std::string,std::string> sourceCodeMap();
41  static void setDrawingOption(TH1* hist,float xlow=-1.,float xhigh=-1.);
42  static std::vector<std::string> getQTestNameList(MonitorElement* me);
43 
44 };
45 
46 #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 getStatusColor(int status, int &rval, int &gval, int &bval)
static void createStatusLegendMessages(std::map< std::string, std::pair< int, double > > &messages)
static void fillPaveText(TPaveText *pave, const std::map< std::string, std::pair< int, double > > &messages)
unsigned long long int rval
Definition: vlib.h:22
static int computeErrorCode(DQMStore *bei, std::string &module_path)
tuple status
Definition: ntuplemaker.py:245
static std::vector< std::string > getQTestNameList(MonitorElement *me)