CMS 3D CMS Logo

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
27 
30 
37 
39 
41 
42 #include <boost/cstdint.hpp>
43 
45  public:
46  explicit SiPixelPhase1Summary(const edm::ParameterSet& conf);
47  ~SiPixelPhase1Summary() override;
48 
49  // virtual void analyze(const edm::Event&, const edm::EventSetup&);
50  //void dqmBeginRun(const edm::Run&, edm::EventSetup const&) ;
51  //virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
52  protected:
53  void beginRun(edm::Run const& run, edm::EventSetup const& eSetup) override;
54 
55  void dqmEndLuminosityBlock(DQMStore::IBooker & iBooker, DQMStore::IGetter & iGetter, edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c) override;
56  //(edm::LuminosityBlock const&, edm::EventSetup const&) override;
57  void dqmEndJob(DQMStore::IBooker & iBooker, DQMStore::IGetter & iGetter) override;
58  // virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
59 
63 
64  private:
68  bool firstLumi;
69 
70  std::map<std::string,MonitorElement*> summaryMap_;
71  MonitorElement * reportSummary; //Float value of the average of the ins in the grand summary
72 
73  std::map<std::string,std::string> summaryPlotName_;
74 
75  //The dead and innefficient roc trend plot
76  std::map<trendPlots,MonitorElement*> deadROCTrends_;
77  std::map<trendPlots,MonitorElement*> ineffROCTrends_;
78 
79  //book the summary plots
80  void bookSummaries(DQMStore::IBooker & iBooker);
81 
82  //Book trend plots
83  void bookTrendPlots(DQMStore::IBooker & iBooker);
84 
85  void fillSummaries(DQMStore::IBooker & iBooker, DQMStore::IGetter & iGetter);
86 
87  void fillTrendPlots(DQMStore::IBooker & iBooker, DQMStore::IGetter & iGetter, int lumiSeg = 0);
88 
89  };
90 
91 #endif
SiPixelPhase1Summary(const edm::ParameterSet &conf)
std::map< std::string, std::string > summaryPlotName_
std::map< trendPlots, MonitorElement * > deadROCTrends_
void fillSummaries(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter)
std::map< trendPlots, MonitorElement * > ineffROCTrends_
void fillTrendPlots(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, int lumiSeg=0)
std::map< std::string, MonitorElement * > summaryMap_
void beginRun(edm::Run const &run, edm::EventSetup const &eSetup) override
edm::ParameterSet conf_
void bookTrendPlots(DQMStore::IBooker &iBooker)
MonitorElement * reportSummary
void dqmEndJob(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter) override
void bookSummaries(DQMStore::IBooker &iBooker)
void dqmEndLuminosityBlock(DQMStore::IBooker &iBooker, DQMStore::IGetter &iGetter, edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c) override
Definition: Run.h:43