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 DQMStore;
21 class MonitorUserInterface;
22 class SiStripFedCabling;
23 class SiStripDetCabling;
24 
26 public:
28  virtual ~SiStripActionExecutor();
29 
30  bool readConfiguration();
31  bool readTkMapConfiguration(const edm::EventSetup& eSetup);
32 
33  void saveMEs(DQMStore& dqm_store, std::string fname);
34  void createSummary(DQMStore& dqm_store);
35  void createSummaryOffline(DQMStore& dqm_store);
36  void createTkMap(const edm::ParameterSet& tkmapPset,
37  DQMStore& dqm_store,
38  std::string& map_type,
39  const edm::EventSetup& eSetup);
40  void createOfflineTkMap(const edm::ParameterSet& tkmapPset,
41  DQMStore& dqm_store,
42  std::string& map_type,
43  const edm::EventSetup& eSetup);
44  void createTkInfoFile(std::vector<std::string> tkhmap_names,
45  TTree* tkinfo_tree,
46  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);
58  std::ostringstream& str_val,
61  DQMStore& dqm_store,
62  std::map<std::string, std::vector<std::string>> const& layout_map,
63  std::ostringstream& str_val);
64  void printFaultyModuleList(DQMStore& dqm_store, std::ostringstream& str_val);
65  void createFaultyModuleMEs(DQMStore& dqm_store);
66 
67 private:
68  std::vector<std::string> tkMapMENames{};
69 
70  std::unique_ptr<SiStripSummaryCreator> summaryCreator_{nullptr};
71  std::unique_ptr<SiStripTrackerMapCreator> tkMapCreator_{nullptr};
72  std::unique_ptr<SiStripQualityChecker> qualityChecker_{nullptr};
73  std::unique_ptr<SiStripConfigWriter> configWriter_{nullptr};
74 
76 };
77 #endif
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)
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)