Go to the documentation of this file.00001 #ifndef SiStripUtility_H
00002 #define SiStripUtility_H
00003
00013 #include <vector>
00014 #include <fstream>
00015 #include <string>
00016 #include <map>
00017 #include <stdint.h>
00018
00019 class MonitorElement;
00020 class DQMStore;
00021 class SiStripUtility
00022 {
00023 public:
00024
00025 static int getMEList(std::string name, std::vector<std::string>& values);
00026 static bool checkME(std::string element, std::string name, std::string& full_path);
00027 static int getMEList(std::string name, std::string& dir_path, std::vector<std::string>& me_names);
00028
00029 static void split(const std::string& str, std::vector<std::string>& tokens,
00030 const std::string& delimiters=" ");
00031 static void getMEStatusColor(int status, int& rval, int&gval, int& bval);
00032 static void getDetectorStatusColor(int status, int& rval, int&gval, int& bval);
00033 static void getMEStatusColor(int status, int& icol, std::string& tag);
00034 static int getMEStatus(MonitorElement* me);
00035 static int getMEStatus(MonitorElement* me, int& bad_channels);
00036 static void getModuleFolderList(DQMStore* dqm_store, std::vector<std::string>& m_ids);
00037 static void getMEValue(MonitorElement* me, std::string & val);
00038 static bool goToDir(DQMStore * dqm_store, std::string name);
00039 static void getSubDetectorTag(uint32_t det_id, std::string& subdet_tag);
00040 static void setBadModuleFlag(std::string & hname, uint16_t& flg);
00041 static void getBadModuleStatus(uint16_t flag, std::string& message);
00042 static void getTopFolderPath(DQMStore* dqm_store, std::string type, std::string& path);
00043 };
00044
00045 #endif