CMS 3D CMS Logo

SiStripUtility.h
Go to the documentation of this file.
1 #ifndef SiStripUtility_H
2 #define SiStripUtility_H
3 
11 #include <vector>
12 #include <fstream>
13 #include <string>
14 #include <map>
15 #include <stdint.h>
16 
17 class MonitorElement;
18 class DQMStore;
19 class TrackerTopology;
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 getMEStatusColor(int status, int& rval, int&gval, int& bval);
31  static void getDetectorStatusColor(int status, int& rval, int&gval, int& bval);
32  static void getMEStatusColor(int status, int& icol, std::string& tag);
33  static int getMEStatus(MonitorElement* me);
34  static int getMEStatus(MonitorElement* me, int& bad_channels);
35  static void getModuleFolderList(DQMStore* dqm_store, std::vector<std::string>& m_ids);
36  static void getMEValue(MonitorElement* me, std::string & val);
37  static bool goToDir(DQMStore * dqm_store, std::string name);
38  static void getSubDetectorTag(uint32_t det_id, std::string& subdet_tag, const TrackerTopology* tTopo);
39  static void setBadModuleFlag(std::string & hname, uint16_t& flg);
40  static void getBadModuleStatus(uint16_t flag, std::string& message);
41  static void getTopFolderPath(DQMStore* dqm_store, std::string top_dir, std::string& path);
42 };
43 
44 #endif
static void setBadModuleFlag(std::string &hname, uint16_t &flg)
static void getMEValue(MonitorElement *me, std::string &val)
static void getDetectorStatusColor(int status, int &rval, int &gval, int &bval)
static void getBadModuleStatus(uint16_t flag, std::string &message)
static void split(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")
static bool checkME(std::string element, std::string name, std::string &full_path)
const std::string subdet_tag("SubDet")
unsigned long long int rval
Definition: vlib.h:22
static void getMEStatusColor(int status, int &rval, int &gval, int &bval)
static int getMEStatus(MonitorElement *me)
static int getMEList(std::string name, std::vector< std::string > &values)
static void getSubDetectorTag(uint32_t det_id, std::string &subdet_tag, const TrackerTopology *tTopo)
static void getModuleFolderList(DQMStore *dqm_store, std::vector< std::string > &m_ids)
static bool goToDir(DQMStore *dqm_store, std::string name)
static void getTopFolderPath(DQMStore *dqm_store, std::string top_dir, std::string &path)