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 #include <fstream>
8 #include <sstream>
9 #include <map>
10 #include <vector>
11 #include <string>
12 #include <map>
13 
15 class SiStripDetCabling;
16 class DQMStore;
17 class QReport;
19 
21 
22  public:
23 
26 
27  void plotHistosFromLayout(DQMStore * dqm_store);
28  void createImages(DQMStore* dqm_store);
29 
30  // removing xdaq deps
31  // void getSingleModuleHistos(DQMStore * dqm_store,
32  // const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
33  // void getGlobalHistos(DQMStore* dqm_store,
34  // const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
35  //void getHistosFromPath(DQMStore * dqm_store,
36  // const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
37 // void getTrackerMapHistos(DQMStore* dqm_store,
38  // const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
39  //void getCondDBHistos(DQMStore* dqm_store, bool& plot_flag,
40  // const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
41 
42  //void readModuleAndHistoList(DQMStore* dqm_store,std::string& sname, const edm::ESHandle<SiStripDetCabling>& detcabling,xgi::Output * out);
43  //void readSummaryHistoTree(DQMStore* dqm_store, std::string& str_name,
44  // xgi::Output * out);
45  //void readAlarmTree(DQMStore* dqm_store, std::string& str_name,
46  // xgi::Output * out);
47 
48  //void readStatusMessage(DQMStore* dqm_store, std::multimap<std::string, std::string>& req_map, xgi::Output * out);
49  //void readGlobalHistoList(DQMStore* dqm_store, std::string& dname, xgi::Output * out);
50  //void readLayoutNames(DQMStore* dqm_store, xgi::Output * out);
51 
52  //void readQTestSummary(DQMStore* dqm_store, std::string type, xgi::Output * out);
53 
54  //void readNonGeomHistoTree(DQMStore* dqm_store, std::string& fld_name, xgi::Output * out);
55 
56  //void getImage(const std::multimap<std::string, std::string>& req_map, xgi::Output * out);
57 
58 
59  private:
60 
61  void readConfiguration();
62 
63  void getItemList(const std::multimap<std::string, std::string>& req_map,
64  std::string item_name, std::vector<std::string>& items);
65  bool hasItem(const std::multimap<std::string, std::string>& req_map,
66  std::string item_name);
67  std::string getItemValue(const std::multimap<std::string, std::string>& req_map,
68  std::string item_name);
69  void printSummaryHistoList(DQMStore* dqm_store, std::ostringstream& str_val);
70  void printAlarmList(DQMStore * dqm_store, std::ostringstream& str_val);
71  void printNonGeomHistoList(DQMStore * dqm_store, std::ostringstream& str_val);
72 
73  void selectImage(std::string& name, int status);
74  void selectImage(std::string& name, std::vector<QReport*> & reports);
75  void selectColor(std::string& col, int status);
76  void selectColor(std::string& col, std::vector<QReport*>& reports);
77 
78 
79  //void setHTMLHeader(xgi::Output * out);
80  //void setXMLHeader(xgi::Output * out);
81  //void setPlainHeader(xgi::Output * out);
82 
83 
85 
86  std::map<std::string, std::vector< std::string > > layoutMap;
87  std::vector<std::string> subdetVec;
89 
90 
92 };
93 #endif
void plotHistosFromLayout(DQMStore *dqm_store)
void printAlarmList(DQMStore *dqm_store, std::ostringstream &str_val)
void selectColor(std::string &col, int status)
std::vector< std::string > subdetVec
std::map< std::string, std::vector< std::string > > layoutMap
void createImages(DQMStore *dqm_store)
void printNonGeomHistoList(DQMStore *dqm_store, std::ostringstream &str_val)
void printSummaryHistoList(DQMStore *dqm_store, std::ostringstream &str_val)
void selectImage(std::string &name, int status)
std::string getItemValue(const std::multimap< std::string, std::string > &req_map, std::string item_name)
int col
Definition: cuy.py:1008
bool hasItem(const std::multimap< std::string, std::string > &req_map, std::string item_name)
void getItemList(const std::multimap< std::string, std::string > &req_map, std::string item_name, std::vector< std::string > &items)
tuple status
Definition: mps_update.py:57