CMS 3D CMS Logo

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 public:
25 
26  void bookStatus(DQMStore& dqm_store);
27  void resetStatus();
28  void fillDummyStatus();
29  void fillStatus(DQMStore& dqm_store,
30  const edm::ESHandle<SiStripDetCabling>& cabling,
31  const edm::EventSetup& eSetup);
32  void fillStatusAtLumi(DQMStore& dqm_store);
33  void printStatusReport();
34  void fillFaultyModuleStatus(DQMStore& dqm_store,
35  const edm::EventSetup& eSetup);
36 
37 private:
38  struct SubDetMEs{
43  };
44 
45  void fillDetectorStatus(DQMStore& dqm_store,
46  const edm::ESHandle<SiStripDetCabling>& cabling);
47  void fillSubDetStatus(DQMStore& dqm_store,
48  const edm::ESHandle<SiStripDetCabling>& cabling,
49  SubDetMEs& mes,
50  unsigned int xbin,
51  float& gflag);
52  void getModuleStatus(DQMStore& dqm_store,
53  std::vector<MonitorElement*>& layer_mes,
54  int& errdet,
55  int& errdet_hasBadChan,
56  int& errdet_hasTooManyDigis,
57  int& errdet_hasTooManyClu,
58  int& errdet_hasExclFed,
59  int& errdet_hasDcsErr);
60 
61  void
62  fillStatusHistogram(MonitorElement const*, int xbin, int ybin, float val);
64 
65  void fillDetectorStatusAtLumi(DQMStore& dqm_store);
66 
67  std::map<std::string, SubDetMEs> SubDetMEsMap;
68  std::map<std::string, std::string> SubDetFolderMap;
69 
81 
82  std::map<uint32_t,uint16_t> badModuleList;
83 
85 
86  bool bookedStripStatus_{false};
87 
89 };
90 #endif
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)
void fillSubDetStatus(DQMStore &dqm_store, const edm::ESHandle< SiStripDetCabling > &cabling, SubDetMEs &mes, unsigned int xbin, float &gflag)
void fillStatusHistogram(MonitorElement const *, int xbin, int ybin, float val)
void fillDetectorStatusAtLumi(DQMStore &dqm_store)
void bookStatus(DQMStore &dqm_store)
void fillStatusAtLumi(DQMStore &dqm_store)
MonitorElement * DetFractionReportMap
MonitorElement * DetFractionReportMap_hasTooManyClu
void fillStatus(DQMStore &dqm_store, const edm::ESHandle< SiStripDetCabling > &cabling, const edm::EventSetup &eSetup)
MonitorElement * DetFractionReportMap_hasBadChan
MonitorElement * TrackSummaryReportGlobal
MonitorElement * SummaryReportMap
MonitorElement * SummaryReportGlobal
MonitorElement * SToNReportMap
MonitorElement * DetFractionReportMap_hasExclFed
MonitorElement * TrackSummaryReportMap
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)
void fillDetectorStatus(DQMStore &dqm_store, const edm::ESHandle< SiStripDetCabling > &cabling)
std::map< uint32_t, uint16_t > badModuleList
edm::ParameterSet const pSet_
MonitorElement * DetFractionReportMap_hasDcsErr