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
SiStripQualityChecker::SubDetMEs::SummaryFlag
MonitorElement * SummaryFlag
Definition: SiStripQualityChecker.h:41
SiStripQualityChecker::MonitorElement
dqm::harvesting::MonitorElement MonitorElement
Definition: SiStripQualityChecker.h:20
SiStripQualityChecker::SubDetMEs
Definition: SiStripQualityChecker.h:38
TrackerTopology
Definition: TrackerTopology.h:16
SiStripQualityChecker::SubDetMEs::DetFraction
MonitorElement * DetFraction
Definition: SiStripQualityChecker.h:39
SiStripQualityChecker::SubDetMEsMap
std::map< std::string, SubDetMEs > SubDetMEsMap
Definition: SiStripQualityChecker.h:62
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
SiStripQualityChecker::initialiseBadModuleList
void initialiseBadModuleList()
Definition: SiStripQualityChecker.cc:517
SiStripQualityChecker::printStatusReport
void printStatusReport()
Definition: SiStripQualityChecker.cc:354
SiStripQualityChecker::fillFaultyModuleStatus
void fillFaultyModuleStatus(DQMStore &dqm_store, const TrackerTopology *tTopo)
Definition: SiStripQualityChecker.cc:482
SiStripQualityChecker::SubDetMEs::SToNFlag
MonitorElement * SToNFlag
Definition: SiStripQualityChecker.h:40
SiStripQualityChecker::DetFractionReportMap_hasExclFed
MonitorElement * DetFractionReportMap_hasExclFed
Definition: SiStripQualityChecker.h:69
SiStripQualityChecker
Definition: SiStripQualityChecker.h:18
dqm::legacy::DQMStore
Definition: DQMStore.h:727
SiStripDetCabling
Definition: SiStripDetCabling.h:21
SiStripQualityChecker::~SiStripQualityChecker
~SiStripQualityChecker()
Definition: SiStripQualityChecker.cc:33
TkDetMap
Definition: TkDetMap.h:175
SiStripQualityChecker::fillStatusHistogram
void fillStatusHistogram(MonitorElement const *, int xbin, int ybin, float val)
Definition: SiStripQualityChecker.cc:470
SiStripQualityChecker::fillDetectorStatusAtLumi
void fillDetectorStatusAtLumi(DQMStore &dqm_store)
Definition: SiStripQualityChecker.cc:535
SiStripQualityChecker::DetFractionReportMap
MonitorElement * DetFractionReportMap
Definition: SiStripQualityChecker.h:65
SiStripQualityChecker::TrackSummaryReportMap
MonitorElement * TrackSummaryReportMap
Definition: SiStripQualityChecker.h:74
SiStripQualityChecker::SubDetFolderMap
std::map< std::string, std::string > SubDetFolderMap
Definition: SiStripQualityChecker.h:63
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:526
SiStripQualityChecker::fillSubDetStatus
void fillSubDetStatus(DQMStore &dqm_store, const SiStripDetCabling *cabling, SubDetMEs &mes, unsigned int xbin, float &gflag)
Definition: SiStripQualityChecker.cc:245
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripQualityChecker::SiStripQualityChecker
SiStripQualityChecker(edm::ParameterSet const &ps)
Definition: SiStripQualityChecker.cc:21
SiStripQualityChecker::tkDetMap_
const TkDetMap * tkDetMap_
Definition: SiStripQualityChecker.h:83
SiStripQualityChecker::resetStatus
void resetStatus()
Definition: SiStripQualityChecker.cc:172
SiStripQualityChecker::TrackSummaryReportGlobal
MonitorElement * TrackSummaryReportGlobal
Definition: SiStripQualityChecker.h:75
SiStripQualityChecker::fillDetectorStatus
void fillDetectorStatus(DQMStore &dqm_store, const SiStripDetCabling *cabling)
Definition: SiStripQualityChecker.cc:214
SiStripQualityChecker::DetFractionReportMap_hasDcsErr
MonitorElement * DetFractionReportMap_hasDcsErr
Definition: SiStripQualityChecker.h:70
heppy_batch.val
val
Definition: heppy_batch.py:351
SiStripQualityChecker::bookedStripStatus_
bool bookedStripStatus_
Definition: SiStripQualityChecker.h:81
SiStripQualityChecker::DetFractionReportMap_hasBadChan
MonitorElement * DetFractionReportMap_hasBadChan
Definition: SiStripQualityChecker.h:66
SiStripQualityChecker::badModuleList
std::map< uint32_t, uint16_t > badModuleList
Definition: SiStripQualityChecker.h:77
SiStripQualityChecker::SummaryReportGlobal
MonitorElement * SummaryReportGlobal
Definition: SiStripQualityChecker.h:73
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:385
SiStripQualityChecker::bookStatus
void bookStatus(DQMStore &dqm_store)
Definition: SiStripQualityChecker.cc:40
SiStripQualityChecker::DetFractionReportMap_hasTooManyDigis
MonitorElement * DetFractionReportMap_hasTooManyDigis
Definition: SiStripQualityChecker.h:67
SiStripQualityChecker::DQMStore
dqm::harvesting::DQMStore DQMStore
Definition: SiStripQualityChecker.h:21
ParameterSet.h
SiStripQualityChecker::fillStatus
void fillStatus(DQMStore &dqm_store, const SiStripDetCabling *cabling, const TkDetMap *tkDetMap, const TrackerTopology *tTopo)
Definition: SiStripQualityChecker.cc:195
SiStripQualityChecker::SummaryReportMap
MonitorElement * SummaryReportMap
Definition: SiStripQualityChecker.h:72
SiStripQualityChecker::DetFractionReportMap_hasTooManyClu
MonitorElement * DetFractionReportMap_hasTooManyClu
Definition: SiStripQualityChecker.h:68
SiStripQualityChecker::SubDetMEs::detectorTag
std::string detectorTag
Definition: SiStripQualityChecker.h:42
SiStripQualityChecker::pSet_
const edm::ParameterSet pSet_
Definition: SiStripQualityChecker.h:79
SiStripQualityChecker::SToNReportMap
MonitorElement * SToNReportMap
Definition: SiStripQualityChecker.h:71