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 MonitorElement;
20 class TrackerTopology;
21 
23 public:
24  static int getMEList(std::string const& name,
25  std::vector<std::string>& values);
26  static bool checkME(std::string const& element,
27  std::string const& name,
28  std::string& full_path);
29  static int getMEList(std::string const& name,
30  std::string& dir_path,
31  std::vector<std::string>& me_names);
32 
33  static void split(std::string const& str,
34  std::vector<std::string>& tokens,
35  std::string const& delimiters = " ");
36  static void getMEStatusColor(int status, int& rval, int& gval, int& bval);
37  static void
38  getDetectorStatusColor(int status, int& rval, int& gval, int& bval);
39  static void getMEStatusColor(int status, int& icol, std::string& tag);
40  static int getMEStatus(MonitorElement const* me);
41  static int getMEStatus(MonitorElement const* me, int& bad_channels);
42  static void getModuleFolderList(DQMStore& dqm_store,
43  std::vector<std::string>& m_ids);
44  static void getModuleFolderList(DQMStore::IBooker& ibooker,
45  DQMStore::IGetter& igetter,
46  std::vector<std::string>& m_ids);
47  static void getMEValue(MonitorElement const* me, std::string& val);
48  static bool goToDir(DQMStore& dqm_store, std::string const& name);
49  static bool goToDir(DQMStore::IBooker& ibooker,
50  DQMStore::IGetter& igetter,
51  std::string const& name);
52  static void getSubDetectorTag(uint32_t det_id,
54  const TrackerTopology* tTopo);
55  static void setBadModuleFlag(std::string& hname, uint16_t& flg);
56  static void getBadModuleStatus(uint16_t flag, std::string& message);
57  static void getTopFolderPath(DQMStore& dqm_store,
58  std::string const& top_dir,
59  std::string& path);
60  static void getTopFolderPath(DQMStore::IBooker& ibooker,
61  DQMStore::IGetter& igetter,
62  std::string const& top_dir,
63  std::string& path);
64 };
65 
66 #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")
unsigned long long int rval
Definition: vlib.h:22
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)