CMS 3D CMS Logo

TrackingUtility.h
Go to the documentation of this file.
1 #ifndef TrackingUtility_H
2 #define TrackingUtility_H
3 
10 #include <vector>
11 #include <fstream>
12 #include <string>
13 #include <map>
14 #include <cstdint>
15 
17 
18 class TrackerTopology;
20 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, const std::string& delimiters = " ");
29  static void getMEStatusColor(int status, int& rval, int& gval, int& bval);
30  static void getMEStatusColor(int status, int& icol, std::string& tag);
31  static int getMEStatus(MonitorElement* me);
32  static int getMEStatus(MonitorElement* me, int& bad_channels);
33  static void getModuleFolderList(DQMStore::IBooker& ibooker,
34  DQMStore::IGetter& igetter,
35  std::vector<std::string>& m_ids);
36  static void getMEValue(MonitorElement* me, std::string& val);
37  static bool goToDir(DQMStore::IBooker& ibooker, DQMStore::IGetter& igetter, std::string name);
38  static void setBadModuleFlag(std::string& hname, uint16_t& flg);
39  static void getBadModuleStatus(uint16_t flag, std::string& message);
40  static void getTopFolderPath(DQMStore::IBooker& ibooker,
41  DQMStore::IGetter& igetter,
42  std::string top_dir,
43  std::string& path);
44 };
45 
46 #endif
TrackingUtility::split
static void split(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ")
Definition: TrackingUtility.cc:51
mps_update.status
status
Definition: mps_update.py:69
TrackingUtility::getTopFolderPath
static void getTopFolderPath(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, std::string top_dir, std::string &path)
Definition: TrackingUtility.cc:251
TrackerTopology
Definition: TrackerTopology.h:16
TrackingUtility::getMEList
static int getMEList(std::string name, std::vector< std::string > &values)
Definition: TrackingUtility.cc:8
TrackingUtility::getModuleFolderList
static void getModuleFolderList(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, std::vector< std::string > &m_ids)
Definition: TrackingUtility.cc:138
TrackingUtility::getMEStatusColor
static void getMEStatusColor(int status, int &rval, int &gval, int &bval)
Definition: TrackingUtility.cc:72
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
TrackingUtility::getBadModuleStatus
static void getBadModuleStatus(uint16_t flag, std::string &message)
Definition: TrackingUtility.cc:231
TrackingUtility::DQMStore
dqm::harvesting::DQMStore DQMStore
Definition: TrackingUtility.h:21
dqm::legacy::DQMStore
Definition: DQMStore.h:727
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
str
#define str(s)
Definition: TestProcessor.cc:51
TrackingUtility::setBadModuleFlag
static void setBadModuleFlag(std::string &hname, uint16_t &flg)
Definition: TrackingUtility.cc:216
TrackingUtility::checkME
static bool checkME(std::string element, std::string name, std::string &full_path)
Definition: TrackingUtility.cc:31
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TrackingUtility
Definition: TrackingUtility.h:19
TrackingUtility::getMEValue
static void getMEValue(MonitorElement *me, std::string &val)
Definition: TrackingUtility.cc:180
TrackingUtility::goToDir
static bool goToDir(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter, std::string name)
Definition: TrackingUtility.cc:193
TrackingUtility::getMEStatus
static int getMEStatus(MonitorElement *me)
Definition: TrackingUtility.cc:120
heppy_batch.val
val
Definition: heppy_batch.py:351
dqm::implementation::IGetter
Definition: DQMStore.h:484
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
dqm::implementation::IBooker
Definition: DQMStore.h:43
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
TrackingUtility::MonitorElement
dqm::harvesting::MonitorElement MonitorElement
Definition: TrackingUtility.h:22
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116