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 
13 #include <vector>
14 #include <fstream>
15 #include <string>
16 #include <map>
17 #include "TH1.h"
18 #include "TPaveText.h"
21 
23 {
24  public:
25 
26  static int getMEList(std::string name, std::vector<std::string>& values);
27  static bool checkME(std::string element, std::string name, std::string& full_path);
28  static int getMEList(std::string name, std::string& dir_path, std::vector<std::string>& me_names);
29 
30  static void split(const std::string& str, std::vector<std::string>& tokens,
31  const std::string& delimiters=" ");
32  static void getStatusColor(int status, int& rval, int&gval, int& bval);
33  static void getStatusColor(int status, int& icol, std::string& tag);
34  static void getStatusColor(double status, int& rval, int&gval, int& bval);
35  static int getStatus(MonitorElement* me);
36 
37  static int computeHistoBin(std::string& module_path);
38  static int computeErrorCode(DQMStore * bei, std::string& module_path);
39  static int computeErrorCode(int status);
40  static void fillPaveText(TPaveText* pave, std::map<std::string,std::pair<int,double> > messages);
41  static void createStatusLegendMessages(std::map<std::string,std::pair<int,double> >& messages);
42  static std::map<std::string,std::string> sourceCodeMap();
43  static void setDrawingOption(TH1* hist,float xlow=-1.,float xhigh=-1.);
44  static std::vector<std::string> getQTestNameList(MonitorElement* me);
45 
46 };
47 
48 #endif
static void fillPaveText(TPaveText *pave, std::map< std::string, std::pair< int, double > > messages)
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)
dictionary map
Definition: Association.py:196
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)
unsigned long long int rval
Definition: vlib.h:23
static int computeErrorCode(DQMStore *bei, std::string &module_path)
tuple status
Definition: ntuplemaker.py:245
static std::vector< std::string > getQTestNameList(MonitorElement *me)