CMS 3D CMS Logo

SiStripActionExecutor.h
Go to the documentation of this file.
1 #ifndef _SiStripActionExecutor_h_
2 #define _SiStripActionExecutor_h_
3 
8 
10 
14 
15 #include <map>
16 #include <vector>
17 #include <string>
18 #include <TTree.h>
19 
20 class MonitorUserInterface;
21 class SiStripFedCabling;
22 class SiStripDetCabling;
23 
25 public:
28 
30  virtual ~SiStripActionExecutor();
31 
32  bool readConfiguration();
33  bool readTkMapConfiguration(const edm::EventSetup& eSetup);
34 
35  void saveMEs(DQMStore& dqm_store, std::string fname);
36  void createSummary(DQMStore& dqm_store);
37  void createSummaryOffline(DQMStore& dqm_store);
38  void createTkMap(const edm::ParameterSet& tkmapPset,
39  DQMStore& dqm_store,
40  std::string& map_type,
41  const edm::EventSetup& eSetup);
42  void createOfflineTkMap(const edm::ParameterSet& tkmapPset,
43  DQMStore& dqm_store,
44  std::string& map_type,
45  const edm::EventSetup& eSetup);
46  void createTkInfoFile(std::vector<std::string> tkhmap_names, TTree* tkinfo_tree, DQMStore& dqm_store);
47 
48  void createStatus(DQMStore& dqm_store);
49  void fillDummyStatus();
50  void fillStatus(DQMStore& dqm_store,
51  edm::ESHandle<SiStripDetCabling> const& fedcabling,
52  edm::EventSetup const& eSetup);
53  void fillStatusAtLumi(DQMStore& dqm_store);
54 
56  void createShiftReport(DQMStore& dqm_store);
57  void printReportSummary(MonitorElement* me, std::ostringstream& str_val, std::string name);
58  void printShiftHistoParameters(DQMStore& dqm_store,
59  std::map<std::string, std::vector<std::string>> const& layout_map,
60  std::ostringstream& str_val);
61  void printFaultyModuleList(DQMStore& dqm_store, std::ostringstream& str_val);
62  void createFaultyModuleMEs(DQMStore& dqm_store);
63 
64 private:
65  std::vector<std::string> tkMapMENames{};
66 
67  std::unique_ptr<SiStripSummaryCreator> summaryCreator_{nullptr};
68  std::unique_ptr<SiStripTrackerMapCreator> tkMapCreator_{nullptr};
69  std::unique_ptr<SiStripQualityChecker> qualityChecker_{nullptr};
70  std::unique_ptr<SiStripConfigWriter> configWriter_{nullptr};
71 
73 };
74 #endif
dqm::harvesting::DQMStore DQMStore
std::unique_ptr< SiStripSummaryCreator > summaryCreator_
void createTkMap(const edm::ParameterSet &tkmapPset, DQMStore &dqm_store, std::string &map_type, const edm::EventSetup &eSetup)
void saveMEs(DQMStore &dqm_store, std::string fname)
void fillStatusAtLumi(DQMStore &dqm_store)
void createTkInfoFile(std::vector< std::string > tkhmap_names, TTree *tkinfo_tree, DQMStore &dqm_store)
SiStripActionExecutor(edm::ParameterSet const &ps)
void createSummary(DQMStore &dqm_store)
bool readTkMapConfiguration(const edm::EventSetup &eSetup)
std::unique_ptr< SiStripTrackerMapCreator > tkMapCreator_
void fillStatus(DQMStore &dqm_store, edm::ESHandle< SiStripDetCabling > const &fedcabling, edm::EventSetup const &eSetup)
std::unique_ptr< SiStripQualityChecker > qualityChecker_
std::vector< std::string > tkMapMENames
edm::ParameterSet const pSet_
std::unique_ptr< SiStripConfigWriter > configWriter_
void printFaultyModuleList(DQMStore &dqm_store, std::ostringstream &str_val)
void createFaultyModuleMEs(DQMStore &dqm_store)
void createStatus(DQMStore &dqm_store)
Contains cabling info at the device level, including DetId, APV pair numbers, hardware addresses...
string fname
main script
void createSummaryOffline(DQMStore &dqm_store)
void printReportSummary(MonitorElement *me, std::ostringstream &str_val, std::string name)
void createShiftReport(DQMStore &dqm_store)
dqm::harvesting::MonitorElement MonitorElement
void createOfflineTkMap(const edm::ParameterSet &tkmapPset, DQMStore &dqm_store, std::string &map_type, const edm::EventSetup &eSetup)
void printShiftHistoParameters(DQMStore &dqm_store, std::map< std::string, std::vector< std::string >> const &layout_map, std::ostringstream &str_val)