CMS 3D CMS Logo

SiStripUtility.h
Go to the documentation of this file.
1 #ifndef SiStripUtility_H
2 #define SiStripUtility_H
3 
12 
13 #include <vector>
14 #include <fstream>
15 #include <string>
16 #include <map>
17 #include <cstdint>
18 
19 class TrackerTopology;
20 
22 public:
25 
26  static int getMEList(std::string const& name, std::vector<std::string>& values);
27  static bool checkME(std::string const& element, std::string const& name, std::string& full_path);
28  static int getMEList(std::string const& name, std::string& dir_path, std::vector<std::string>& me_names);
29 
30  static void split(std::string const& str, std::vector<std::string>& tokens, std::string const& delimiters = " ");
31  static void getMEStatusColor(int status, int& rval, int& gval, int& bval);
32  static void getDetectorStatusColor(int status, int& rval, int& gval, int& bval);
33  static void getMEStatusColor(int status, int& icol, std::string& tag);
34  static int getMEStatus(MonitorElement const* me);
35  static int getMEStatus(MonitorElement const* me, int& bad_channels);
36  static void getModuleFolderList(DQMStore& dqm_store, std::vector<std::string>& m_ids);
37  static void getModuleFolderList(DQMStore::IBooker& ibooker,
38  DQMStore::IGetter& igetter,
39  std::vector<std::string>& m_ids);
40  static void getMEValue(MonitorElement const* me, std::string& val);
41  static bool goToDir(DQMStore& dqm_store, std::string const& name);
42  static bool goToDir(DQMStore::IBooker& ibooker, DQMStore::IGetter& igetter, std::string const& name);
43  static void getSubDetectorTag(uint32_t det_id, std::string& subdet_tag, const TrackerTopology* tTopo);
44  static void setBadModuleFlag(std::string& hname, uint16_t& flg);
45  static void getBadModuleStatus(uint16_t flag, std::string& message);
46  static void getTopFolderPath(DQMStore& dqm_store, std::string const& top_dir, std::string& path);
47  static void getTopFolderPath(DQMStore::IBooker& ibooker,
48  DQMStore::IGetter& igetter,
49  std::string const& top_dir,
50  std::string& path);
51 };
52 
53 #endif
static void setBadModuleFlag(std::string &hname, uint16_t &flg)
static void getModuleFolderList(DQMStore &dqm_store, std::vector< std::string > &m_ids)
static int getMEList(std::string const &name, std::vector< std::string > &values)
static void getDetectorStatusColor(int status, int &rval, int &gval, int &bval)
static void getBadModuleStatus(uint16_t flag, std::string &message)
static void getMEValue(MonitorElement const *me, std::string &val)
const std::string subdet_tag("SubDet")
dqm::harvesting::MonitorElement MonitorElement
dqm::harvesting::DQMStore DQMStore
unsigned long long int rval
Definition: vlib.h:21
static void getMEStatusColor(int status, int &rval, int &gval, int &bval)
static void split(std::string const &str, std::vector< std::string > &tokens, std::string const &delimiters=" ")
static void getSubDetectorTag(uint32_t det_id, std::string &subdet_tag, const TrackerTopology *tTopo)
static bool goToDir(DQMStore &dqm_store, std::string const &name)
static bool checkME(std::string const &element, std::string const &name, std::string &full_path)
static int getMEStatus(MonitorElement const *me)
#define str(s)
static void getTopFolderPath(DQMStore &dqm_store, std::string const &top_dir, std::string &path)