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
SiStripUtility::getModuleFolderList
static void getModuleFolderList(DQMStore &dqm_store, std::vector< std::string > &m_ids)
Definition: SiStripUtility.cc:187
SiStripUtility::getMEList
static int getMEList(std::string const &name, std::vector< std::string > &values)
Definition: SiStripUtility.cc:10
mps_update.status
status
Definition: mps_update.py:69
TrackerTopology
Definition: TrackerTopology.h:16
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
SiStripUtility::getDetectorStatusColor
static void getDetectorStatusColor(int status, int &rval, int &gval, int &bval)
Definition: SiStripUtility.cc:122
SiStripUtility::DQMStore
dqm::harvesting::DQMStore DQMStore
Definition: SiStripUtility.h:23
dqm::legacy::DQMStore
Definition: DQMStore.h:727
rval
unsigned long long int rval
Definition: vlib.h:21
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
SiStripUtility
Definition: SiStripUtility.h:21
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
SiStripUtility::getBadModuleStatus
static void getBadModuleStatus(uint16_t flag, std::string &message)
Definition: SiStripUtility.cc:343
str
#define str(s)
Definition: TestProcessor.cc:48
SiStripUtility::getMEValue
static void getMEValue(MonitorElement const *me, std::string &val)
Definition: SiStripUtility.cc:239
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripUtility::goToDir
static bool goToDir(DQMStore &dqm_store, std::string const &name)
Definition: SiStripUtility.cc:252
SiStripUtility::getSubDetectorTag
static void getSubDetectorTag(uint32_t det_id, std::string &subdet_tag, const TrackerTopology *tTopo)
Definition: SiStripUtility.cc:296
SiStripUtility::MonitorElement
dqm::harvesting::MonitorElement MonitorElement
Definition: SiStripUtility.h:24
SiStripUtility::checkME
static bool checkME(std::string const &element, std::string const &name, std::string &full_path)
Definition: SiStripUtility.cc:34
heppy_batch.val
val
Definition: heppy_batch.py:351
SiStripUtility::split
static void split(std::string const &str, std::vector< std::string > &tokens, std::string const &delimiters=" ")
Definition: SiStripUtility.cc:54
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
SiStripUtility::getMEStatusColor
static void getMEStatusColor(int status, int &rval, int &gval, int &bval)
Definition: SiStripUtility.cc:75
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
xuti::subdet_tag
const std::string subdet_tag("SubDet")
SiStripUtility::setBadModuleFlag
static void setBadModuleFlag(std::string &hname, uint16_t &flg)
Definition: SiStripUtility.cc:328
SiStripUtility::getMEStatus
static int getMEStatus(MonitorElement const *me)
Definition: SiStripUtility.cc:169
SiStripUtility::getTopFolderPath
static void getTopFolderPath(DQMStore &dqm_store, std::string const &top_dir, std::string &path)
Definition: SiStripUtility.cc:362
RemoveAddSevLevel.flag
flag
Definition: RemoveAddSevLevel.py:116