CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
SiPixelPhase1Summary.h
Go to the documentation of this file.
1 #ifndef SiPixelPhase1Summary_SiPixelPhase1Summary_h
2 #define SiPixelPhase1Summary_SiPixelPhase1Summary_h
3 // -*- C++ -*-
4 //
5 // Package: SiPixelPhase1Summary
6 // Class : SiPixelPhase1Summary
7 //
16 //
17 // Original Author: Duncan Leggat
18 // Created: 2nd December 2016
19 //
20 
21 //#include <memory>
22 
23 // user include files
34 
36 public:
37  explicit SiPixelPhase1Summary(const edm::ParameterSet& conf);
38  ~SiPixelPhase1Summary() override;
39 
40  // virtual void analyze(const edm::Event&, const edm::EventSetup&);
41  //void dqmBeginRun(const edm::Run&, edm::EventSetup const&) ;
42  //virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
43 protected:
44  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
45 
47  DQMStore::IGetter& iGetter,
48  edm::LuminosityBlock const& lumiSeg,
49  edm::EventSetup const& c) override;
50  //(edm::LuminosityBlock const&, edm::EventSetup const&) override;
51  void dqmEndJob(DQMStore::IBooker& iBooker, DQMStore::IGetter& iGetter) override;
52  // virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
53 
57 
58 private:
62  bool firstLumi;
63 
64  std::map<std::string, MonitorElement*> summaryMap_;
66  MonitorElement* reportSummary; //Float value of the average of the ins in the grand summary
67 
68  std::map<std::string, std::string> summaryPlotName_;
69 
70  //The dead and innefficient roc trend plot
71  std::map<trendPlots, MonitorElement*> deadROCTrends_;
72  std::map<trendPlots, MonitorElement*> ineffROCTrends_;
73 
74  //Error thresholds for the dead ROC plots
75  std::vector<double> deadRocThresholds_;
76  std::vector<double> deadRocWarnThresholds_;
77 
78  //book the summary plots
79  void bookSummaries(DQMStore::IBooker& iBooker);
80 
81  //Book trend plots
82  void bookTrendPlots(DQMStore::IBooker& iBooker);
83 
84  void fillSummaries(DQMStore::IBooker& iBooker, DQMStore::IGetter& iGetter);
85 
86  void fillTrendPlots(DQMStore::IBooker& iBooker, DQMStore::IGetter& iGetter, int lumiSeg = 0);
87 };
88 
89 #endif
SiPixelPhase1Summary(const edm::ParameterSet &conf)
MonitorElement * deadROCSummary
std::map< trendPlots, MonitorElement * > ineffROCTrends_
void fillSummaries(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
void fillTrendPlots(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, int lumiSeg=0)
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
edm::ParameterSet conf_
std::map< std::string, std::string > summaryPlotName_
void bookTrendPlots(DQMStore::IBooker &iBooker)
MonitorElement * reportSummary
std::vector< double > deadRocWarnThresholds_
std::map< trendPlots, MonitorElement * > deadROCTrends_
void dqmEndJob(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter) override
std::map< std::string, MonitorElement * > summaryMap_
void bookSummaries(DQMStore::IBooker &iBooker)
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) override
std::vector< double > deadRocThresholds_
Definition: Run.h:45