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 
7 
8 #include <iostream>
9 #include <fstream>
10 #include <sstream>
11 #include <map>
12 #include <vector>
13 #include <string>
14 
15 class DQMStore;
16 class MonitorElement;
17 class TkDetMap;
18 class SiStripDetCabling;
19 
21 
22  public:
23 
24 
26  virtual ~SiStripQualityChecker();
27 
28 
29  void bookStatus(DQMStore* dqm_store);
30  void resetStatus();
31  void fillDummyStatus();
32  void fillStatus(DQMStore* dqm_store, const edm::ESHandle< SiStripDetCabling >& cabling);
33  void fillStatusAtLumi(DQMStore* dqm_store);
34  void printStatusReport();
35  void fillFaultyModuleStatus(DQMStore* dqm_store);
36 
37  private:
38 
39  struct SubDetMEs{
43  std::string detectorTag;
44  };
45 
46  struct TrackingMEs{
47  std::string HistoName;
49  float LowerCut;
50  float UpperCut;
51  };
52 
53  void fillDetectorStatus(DQMStore* dqm_store, const edm::ESHandle< SiStripDetCabling >& cabling);
54  void fillTrackingStatus(DQMStore* dqm_store);
55  void fillSubDetStatus(DQMStore* dqm_store,const edm::ESHandle< SiStripDetCabling >& cabling, SubDetMEs& mes, unsigned int xbin,float& gflag);
56  void getModuleStatus(DQMStore* dqm_store, std::vector<MonitorElement*>& layer_mes, int& errdet);
57 
58  void fillStatusHistogram(MonitorElement*, int xbin, int ybin, float val);
60 
61  void fillDetectorStatusAtLumi(DQMStore* dqm_store);
62  void fillTrackingStatusAtLumi(DQMStore* dqm_store);
63 
64  std::map<std::string, SubDetMEs> SubDetMEsMap;
65  std::map<std::string, std::string> SubDetFolderMap;
66  std::map<std::string, TrackingMEs> TrackingMEsMap;
67 
71 
73 
75 
77 
78  std::map<uint32_t,uint16_t> badModuleList;
79 
81 
86 
88 
92 
93 };
94 #endif
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
void getModuleStatus(DQMStore *dqm_store, std::vector< MonitorElement * > &layer_mes, int &errdet)
void fillTrackingStatusAtLumi(DQMStore *dqm_store)
SiStripQualityChecker(edm::ParameterSet const &ps)
std::map< std::string, SubDetMEs > SubDetMEsMap
void fillStatus(DQMStore *dqm_store, const edm::ESHandle< SiStripDetCabling > &cabling)
MonitorElement * DetFractionReportMap
MonitorElement * TrackSummaryReportGlobal
void fillStatusAtLumi(DQMStore *dqm_store)
MonitorElement * SummaryReportMap
MonitorElement * SummaryReportGlobal
MonitorElement * SToNReportMap
void fillTrackingStatus(DQMStore *dqm_store)
MonitorElement * TrackSummaryReportMap
std::map< uint32_t, uint16_t > badModuleList
std::map< std::string, TrackingMEs > TrackingMEsMap
void fillSubDetStatus(DQMStore *dqm_store, const edm::ESHandle< SiStripDetCabling > &cabling, SubDetMEs &mes, unsigned int xbin, float &gflag)
void fillFaultyModuleStatus(DQMStore *dqm_store)
void fillStatusHistogram(MonitorElement *, int xbin, int ybin, float val)