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 TkDetMap;
17 class SiStripDetCabling;
18 
20 public:
23 
26 
27  void bookStatus(DQMStore& dqm_store);
28  void resetStatus();
29  void fillDummyStatus();
30  void fillStatus(DQMStore& dqm_store, const edm::ESHandle<SiStripDetCabling>& cabling, const edm::EventSetup& eSetup);
31  void fillStatusAtLumi(DQMStore& dqm_store);
32  void printStatusReport();
33  void fillFaultyModuleStatus(DQMStore& dqm_store, const edm::EventSetup& eSetup);
34 
35 private:
36  struct SubDetMEs {
41  };
42 
43  void fillDetectorStatus(DQMStore& dqm_store, const edm::ESHandle<SiStripDetCabling>& cabling);
44  void fillSubDetStatus(DQMStore& dqm_store,
45  const edm::ESHandle<SiStripDetCabling>& cabling,
46  SubDetMEs& mes,
47  unsigned int xbin,
48  float& gflag);
49  void getModuleStatus(DQMStore& dqm_store,
50  std::vector<MonitorElement*>& layer_mes,
51  int& errdet,
52  int& errdet_hasBadChan,
53  int& errdet_hasTooManyDigis,
54  int& errdet_hasTooManyClu,
55  int& errdet_hasExclFed,
56  int& errdet_hasDcsErr);
57 
58  void fillStatusHistogram(MonitorElement const*, int xbin, int ybin, float val);
60 
61  void fillDetectorStatusAtLumi(DQMStore& dqm_store);
62 
63  std::map<std::string, SubDetMEs> SubDetMEsMap;
64  std::map<std::string, std::string> SubDetFolderMap;
65 
77 
78  std::map<uint32_t, uint16_t> badModuleList;
79 
81 
82  bool bookedStripStatus_{false};
83 
85 };
86 #endif
SiStripQualityChecker::SubDetMEs::SummaryFlag
MonitorElement * SummaryFlag
Definition: SiStripQualityChecker.h:39
SiStripQualityChecker::MonitorElement
dqm::harvesting::MonitorElement MonitorElement
Definition: SiStripQualityChecker.h:21
ESHandle.h
SiStripQualityChecker::SubDetMEs
Definition: SiStripQualityChecker.h:36
SiStripQualityChecker::SubDetMEs::DetFraction
MonitorElement * DetFraction
Definition: SiStripQualityChecker.h:37
SiStripQualityChecker::SubDetMEsMap
std::map< std::string, SubDetMEs > SubDetMEsMap
Definition: SiStripQualityChecker.h:63
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
SiStripQualityChecker::initialiseBadModuleList
void initialiseBadModuleList()
Definition: SiStripQualityChecker.cc:526
SiStripQualityChecker::printStatusReport
void printStatusReport()
Definition: SiStripQualityChecker.cc:358
SiStripQualityChecker::SubDetMEs::SToNFlag
MonitorElement * SToNFlag
Definition: SiStripQualityChecker.h:38
SiStripQualityChecker::DetFractionReportMap_hasExclFed
MonitorElement * DetFractionReportMap_hasExclFed
Definition: SiStripQualityChecker.h:70
SiStripQualityChecker
Definition: SiStripQualityChecker.h:19
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripDetCabling
Definition: SiStripDetCabling.h:21
SiStripQualityChecker::~SiStripQualityChecker
~SiStripQualityChecker()
Definition: SiStripQualityChecker.cc:33
edm::ESHandle< SiStripDetCabling >
SiStripQualityChecker::fillStatus
void fillStatus(DQMStore &dqm_store, const edm::ESHandle< SiStripDetCabling > &cabling, const edm::EventSetup &eSetup)
Definition: SiStripQualityChecker.cc:195
TkDetMap
Definition: TkDetMap.h:175
SiStripQualityChecker::fillStatusHistogram
void fillStatusHistogram(MonitorElement const *, int xbin, int ybin, float val)
Definition: SiStripQualityChecker.cc:474
SiStripQualityChecker::fillDetectorStatusAtLumi
void fillDetectorStatusAtLumi(DQMStore &dqm_store)
Definition: SiStripQualityChecker.cc:544
SiStripQualityChecker::DetFractionReportMap
MonitorElement * DetFractionReportMap
Definition: SiStripQualityChecker.h:66
SiStripQualityChecker::TrackSummaryReportMap
MonitorElement * TrackSummaryReportMap
Definition: SiStripQualityChecker.h:75
SiStripQualityChecker::fillSubDetStatus
void fillSubDetStatus(DQMStore &dqm_store, const edm::ESHandle< SiStripDetCabling > &cabling, SubDetMEs &mes, unsigned int xbin, float &gflag)
Definition: SiStripQualityChecker.cc:246
SiStripQualityChecker::SubDetFolderMap
std::map< std::string, std::string > SubDetFolderMap
Definition: SiStripQualityChecker.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripQualityChecker::fillDummyStatus
void fillDummyStatus()
Definition: SiStripQualityChecker.cc:144
SiStripQualityChecker::fillStatusAtLumi
void fillStatusAtLumi(DQMStore &dqm_store)
Definition: SiStripQualityChecker.cc:535
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripQualityChecker::SiStripQualityChecker
SiStripQualityChecker(edm::ParameterSet const &ps)
Definition: SiStripQualityChecker.cc:21
SiStripQualityChecker::fillFaultyModuleStatus
void fillFaultyModuleStatus(DQMStore &dqm_store, const edm::EventSetup &eSetup)
Definition: SiStripQualityChecker.cc:486
SiStripQualityChecker::tkDetMap_
const TkDetMap * tkDetMap_
Definition: SiStripQualityChecker.h:84
SiStripQualityChecker::resetStatus
void resetStatus()
Definition: SiStripQualityChecker.cc:172
SiStripQualityChecker::TrackSummaryReportGlobal
MonitorElement * TrackSummaryReportGlobal
Definition: SiStripQualityChecker.h:76
SiStripQualityChecker::fillDetectorStatus
void fillDetectorStatus(DQMStore &dqm_store, const edm::ESHandle< SiStripDetCabling > &cabling)
Definition: SiStripQualityChecker.cc:215
edm::EventSetup
Definition: EventSetup.h:57
SiStripQualityChecker::DetFractionReportMap_hasDcsErr
MonitorElement * DetFractionReportMap_hasDcsErr
Definition: SiStripQualityChecker.h:71
heppy_batch.val
val
Definition: heppy_batch.py:351
SiStripQualityChecker::bookedStripStatus_
bool bookedStripStatus_
Definition: SiStripQualityChecker.h:82
SiStripQualityChecker::DetFractionReportMap_hasBadChan
MonitorElement * DetFractionReportMap_hasBadChan
Definition: SiStripQualityChecker.h:67
SiStripQualityChecker::badModuleList
std::map< uint32_t, uint16_t > badModuleList
Definition: SiStripQualityChecker.h:78
SiStripQualityChecker::SummaryReportGlobal
MonitorElement * SummaryReportGlobal
Definition: SiStripQualityChecker.h:74
SiStripQualityChecker::getModuleStatus
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)
Definition: SiStripQualityChecker.cc:389
EventSetup.h
SiStripQualityChecker::bookStatus
void bookStatus(DQMStore &dqm_store)
Definition: SiStripQualityChecker.cc:40
SiStripQualityChecker::DetFractionReportMap_hasTooManyDigis
MonitorElement * DetFractionReportMap_hasTooManyDigis
Definition: SiStripQualityChecker.h:68
SiStripQualityChecker::DQMStore
dqm::harvesting::DQMStore DQMStore
Definition: SiStripQualityChecker.h:22
ParameterSet.h
SiStripQualityChecker::SummaryReportMap
MonitorElement * SummaryReportMap
Definition: SiStripQualityChecker.h:73
SiStripQualityChecker::DetFractionReportMap_hasTooManyClu
MonitorElement * DetFractionReportMap_hasTooManyClu
Definition: SiStripQualityChecker.h:69
SiStripQualityChecker::SubDetMEs::detectorTag
std::string detectorTag
Definition: SiStripQualityChecker.h:40
SiStripQualityChecker::pSet_
const edm::ParameterSet pSet_
Definition: SiStripQualityChecker.h:80
SiStripQualityChecker::SToNReportMap
MonitorElement * SToNReportMap
Definition: SiStripQualityChecker.h:72