CMS 3D CMS Logo

SiStripQualityChecker.h
Go to the documentation of this file.
1 #ifndef _SiStripQualityChecker_h_
2 #define _SiStripQualityChecker_h_
3 
6 
7 #include <iostream>
8 #include <fstream>
9 #include <sstream>
10 #include <map>
11 #include <vector>
12 #include <string>
13 
14 class TkDetMap;
15 class TrackerTopology;
16 class SiStripDetCabling;
17 
19 public:
22 
25 
26  void bookStatus(DQMStore& dqm_store);
27  void resetStatus();
28  void fillDummyStatus();
29  void fillStatus(DQMStore& dqm_store,
30  const SiStripDetCabling* cabling,
31  const TkDetMap* tkDetMap,
32  const TrackerTopology* tTopo);
33  void fillStatusAtLumi(DQMStore& dqm_store);
34  void printStatusReport();
35  void fillFaultyModuleStatus(DQMStore& dqm_store, const TrackerTopology* tTopo);
36 
37 private:
38  struct SubDetMEs {
43  };
44 
45  void fillDetectorStatus(DQMStore& dqm_store, const SiStripDetCabling* cabling);
46  void fillSubDetStatus(
47  DQMStore& dqm_store, const SiStripDetCabling* cabling, SubDetMEs& mes, unsigned int xbin, float& gflag);
48  void getModuleStatus(DQMStore& dqm_store,
49  std::vector<MonitorElement*>& layer_mes,
50  int& errdet,
51  int& errdet_hasBadChan,
52  int& errdet_hasTooManyDigis,
53  int& errdet_hasTooManyClu,
54  int& errdet_hasExclFed,
55  int& errdet_hasDcsErr);
56 
57  void fillStatusHistogram(MonitorElement const*, int xbin, int ybin, float val);
59 
60  void fillDetectorStatusAtLumi(DQMStore& dqm_store);
61 
62  std::map<std::string, SubDetMEs> SubDetMEsMap;
63  std::map<std::string, std::string> SubDetFolderMap;
64 
76 
77  std::map<uint32_t, uint16_t> badModuleList;
78 
80 
81  bool bookedStripStatus_{false};
82 
84 };
85 #endif
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)
std::map< std::string, std::string > SubDetFolderMap
void fillFaultyModuleStatus(DQMStore &dqm_store, const TrackerTopology *tTopo)
MonitorElement * DetFractionReportMap_hasTooManyDigis
void fillSubDetStatus(DQMStore &dqm_store, const SiStripDetCabling *cabling, SubDetMEs &mes, unsigned int xbin, float &gflag)
SiStripQualityChecker(edm::ParameterSet const &ps)
std::map< std::string, SubDetMEs > SubDetMEsMap
void fillStatusHistogram(MonitorElement const *, int xbin, int ybin, float val)
void fillStatus(DQMStore &dqm_store, const SiStripDetCabling *cabling, const TkDetMap *tkDetMap, const TrackerTopology *tTopo)
void fillDetectorStatusAtLumi(DQMStore &dqm_store)
void bookStatus(DQMStore &dqm_store)
void fillStatusAtLumi(DQMStore &dqm_store)
MonitorElement * DetFractionReportMap
MonitorElement * DetFractionReportMap_hasTooManyClu
void fillDetectorStatus(DQMStore &dqm_store, const SiStripDetCabling *cabling)
MonitorElement * DetFractionReportMap_hasBadChan
MonitorElement * TrackSummaryReportGlobal
MonitorElement * SummaryReportMap
std::map< uint32_t, uint16_t > badModuleList
MonitorElement * SummaryReportGlobal
MonitorElement * SToNReportMap
MonitorElement * DetFractionReportMap_hasExclFed
MonitorElement * TrackSummaryReportMap
dqm::harvesting::MonitorElement MonitorElement
edm::ParameterSet const pSet_
MonitorElement * DetFractionReportMap_hasDcsErr
dqm::harvesting::DQMStore DQMStore