CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripQualityChecker.h
Go to the documentation of this file.
1 #ifndef _SiStripQualityChecker_h_
2 #define _SiStripQualityChecker_h_
3 
8 
9 #include <iostream>
10 #include <fstream>
11 #include <sstream>
12 #include <map>
13 #include <vector>
14 #include <string>
15 
16 class DQMStore;
17 class MonitorElement;
18 class TkDetMap;
19 class SiStripDetCabling;
20 
22 
23  public:
24 
25 
27  virtual ~SiStripQualityChecker();
28 
29 
30  void bookStatus(DQMStore* dqm_store);
31  void resetStatus();
32  void fillDummyStatus();
33  void fillStatus(DQMStore* dqm_store, const edm::ESHandle< SiStripDetCabling >& cabling, const edm::EventSetup& eSetup);
34  void fillStatusAtLumi(DQMStore* dqm_store);
35  void printStatusReport();
36  void fillFaultyModuleStatus(DQMStore* dqm_store, const edm::EventSetup& eSetup);
37 
38  private:
39 
40  struct SubDetMEs{
45  };
46 
47  void fillDetectorStatus(DQMStore* dqm_store, const edm::ESHandle< SiStripDetCabling >& cabling);
48  void fillSubDetStatus(DQMStore* dqm_store,const edm::ESHandle< SiStripDetCabling >& cabling, SubDetMEs& mes, unsigned int xbin,float& gflag);
49  void getModuleStatus(DQMStore* dqm_store, std::vector<MonitorElement*>& layer_mes, int& errdet, int& errdet_hasBadChan, int& errdet_hasTooManyDigis, int& errdet_hasTooManyClu, int& errdet_hasExclFed, int& errdet_hasDcsErr);
50 
51  void fillStatusHistogram(MonitorElement*, int xbin, int ybin, float val);
53 
54  void fillDetectorStatusAtLumi(DQMStore* dqm_store);
55 
56  std::map<std::string, SubDetMEs> SubDetMEsMap;
57  std::map<std::string, std::string> SubDetFolderMap;
58 
67 
69 
71 
73 
74  std::map<uint32_t,uint16_t> badModuleList;
75 
77 
81 
83 
87 
88 };
89 #endif
void fillStatus(DQMStore *dqm_store, const edm::ESHandle< SiStripDetCabling > &cabling, const edm::EventSetup &eSetup)
void bookStatus(DQMStore *dqm_store)
void fillDetectorStatusAtLumi(DQMStore *dqm_store)
void fillDetectorStatus(DQMStore *dqm_store, const edm::ESHandle< SiStripDetCabling > &cabling)
std::map< std::string, std::string > SubDetFolderMap
MonitorElement * DetFractionReportMap_hasTooManyDigis
SiStripQualityChecker(edm::ParameterSet const &ps)
std::map< std::string, SubDetMEs > SubDetMEsMap
void fillFaultyModuleStatus(DQMStore *dqm_store, const edm::EventSetup &eSetup)
MonitorElement * DetFractionReportMap
MonitorElement * DetFractionReportMap_hasTooManyClu
void getModuleStatus(DQMStore *dqm_store, std::vector< MonitorElement * > &layer_mes, int &errdet, int &errdet_hasBadChan, int &errdet_hasTooManyDigis, int &errdet_hasTooManyClu, int &errdet_hasExclFed, int &errdet_hasDcsErr)
MonitorElement * DetFractionReportMap_hasBadChan
MonitorElement * TrackSummaryReportGlobal
void fillStatusAtLumi(DQMStore *dqm_store)
MonitorElement * SummaryReportMap
MonitorElement * SummaryReportGlobal
MonitorElement * SToNReportMap
MonitorElement * DetFractionReportMap_hasExclFed
MonitorElement * TrackSummaryReportMap
std::map< uint32_t, uint16_t > badModuleList
void fillSubDetStatus(DQMStore *dqm_store, const edm::ESHandle< SiStripDetCabling > &cabling, SubDetMEs &mes, unsigned int xbin, float &gflag)
MonitorElement * DetFractionReportMap_hasDcsErr
void fillStatusHistogram(MonitorElement *, int xbin, int ybin, float val)