CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripInformationExtractor.h
Go to the documentation of this file.
1 #ifndef _SiStripInformationExtractor_h_
2 #define _SiStripInformationExtractor_h_
3 
6 
7 
8 #include "xgi/Utils.h"
9 #include "xgi/Method.h"
10 
11 
12 #include <fstream>
13 #include <sstream>
14 #include <map>
15 #include <vector>
16 #include <string>
17 #include <map>
18 
20 class SiStripDetCabling;
21 class DQMStore;
22 class QReport;
24 
26 
27  public:
28 
31 
32  void getSingleModuleHistos(DQMStore * dqm_store,
33  const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
34  void getGlobalHistos(DQMStore* dqm_store,
35  const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
36  void getHistosFromPath(DQMStore * dqm_store,
37  const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
38  void getTrackerMapHistos(DQMStore* dqm_store,
39  const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
40  void getCondDBHistos(DQMStore* dqm_store, bool& plot_flag,
41  const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
42 
44  void plotHistosFromLayout(DQMStore * dqm_store);
45  void readSummaryHistoTree(DQMStore* dqm_store, std::string& str_name,
46  xgi::Output * out);
47  void readAlarmTree(DQMStore* dqm_store, std::string& str_name,
48  xgi::Output * out);
49 
50  void readStatusMessage(DQMStore* dqm_store, std::multimap<std::string, std::string>& req_map, xgi::Output * out);
51  void readGlobalHistoList(DQMStore* dqm_store, std::string& dname, xgi::Output * out);
52  void readLayoutNames(DQMStore* dqm_store, xgi::Output * out);
53 
54  void readQTestSummary(DQMStore* dqm_store, std::string type, xgi::Output * out);
55 
56  void readNonGeomHistoTree(DQMStore* dqm_store, std::string& fld_name, xgi::Output * out);
57 
58  void createImages(DQMStore* dqm_store);
59  void getImage(const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
60 
61  private:
62 
63  void readConfiguration();
64 
65 
66 
67  void getItemList(const std::multimap<std::string, std::string>& req_map,
68  std::string item_name, std::vector<std::string>& items);
69  bool hasItem(const std::multimap<std::string, std::string>& req_map,
70  std::string item_name);
71  std::string getItemValue(const std::multimap<std::string, std::string>& req_map,
72  std::string item_name);
73  void printSummaryHistoList(DQMStore* dqm_store, std::ostringstream& str_val);
74  void printAlarmList(DQMStore * dqm_store, std::ostringstream& str_val);
75  void printNonGeomHistoList(DQMStore * dqm_store, std::ostringstream& str_val);
76 
77  void selectImage(std::string& name, int status);
78  void selectImage(std::string& name, std::vector<QReport*> & reports);
79  void selectColor(std::string& col, int status);
80  void selectColor(std::string& col, std::vector<QReport*>& reports);
81 
82 
83  void setHTMLHeader(xgi::Output * out);
84  void setXMLHeader(xgi::Output * out);
85  void setPlainHeader(xgi::Output * out);
86 
87 
89 
90  std::map<std::string, std::vector< std::string > > layoutMap;
91  std::vector<std::string> subdetVec;
93 
94 
96 };
97 #endif
void readSummaryHistoTree(DQMStore *dqm_store, std::string &str_name, xgi::Output *out)
type
Definition: HCALResponse.h:21
void getSingleModuleHistos(DQMStore *dqm_store, const std::multimap< std::string, std::string > &req_map, xgi::Output *out)
void plotHistosFromLayout(DQMStore *dqm_store)
void getCondDBHistos(DQMStore *dqm_store, bool &plot_flag, const std::multimap< std::string, std::string > &req_map, xgi::Output *out)
void getTrackerMapHistos(DQMStore *dqm_store, const std::multimap< std::string, std::string > &req_map, xgi::Output *out)
void printAlarmList(DQMStore *dqm_store, std::ostringstream &str_val)
void selectColor(std::string &col, int status)
void readModuleAndHistoList(DQMStore *dqm_store, std::string &sname, const edm::ESHandle< SiStripDetCabling > &detcabling, xgi::Output *out)
std::vector< std::string > subdetVec
std::map< std::string, std::vector< std::string > > layoutMap
void readStatusMessage(DQMStore *dqm_store, std::multimap< std::string, std::string > &req_map, xgi::Output *out)
void createImages(DQMStore *dqm_store)
void printNonGeomHistoList(DQMStore *dqm_store, std::ostringstream &str_val)
void readGlobalHistoList(DQMStore *dqm_store, std::string &dname, xgi::Output *out)
void getImage(const std::multimap< std::string, std::string > &req_map, xgi::Output *out)
void readLayoutNames(DQMStore *dqm_store, xgi::Output *out)
void printSummaryHistoList(DQMStore *dqm_store, std::ostringstream &str_val)
void getGlobalHistos(DQMStore *dqm_store, const std::multimap< std::string, std::string > &req_map, xgi::Output *out)
tuple out
Definition: dbtoconf.py:99
void getHistosFromPath(DQMStore *dqm_store, const std::multimap< std::string, std::string > &req_map, xgi::Output *out)
void selectImage(std::string &name, int status)
#define Output(cl)
Definition: vmac.h:193
void readQTestSummary(DQMStore *dqm_store, std::string type, xgi::Output *out)
std::string getItemValue(const std::multimap< std::string, std::string > &req_map, std::string item_name)
tuple status
Definition: ntuplemaker.py:245
int col
Definition: cuy.py:1008
bool hasItem(const std::multimap< std::string, std::string > &req_map, std::string item_name)
void readNonGeomHistoTree(DQMStore *dqm_store, std::string &fld_name, xgi::Output *out)
void getItemList(const std::multimap< std::string, std::string > &req_map, std::string item_name, std::vector< std::string > &items)
void readAlarmTree(DQMStore *dqm_store, std::string &str_name, xgi::Output *out)