CMS 3D CMS Logo

SiStripMonitorPedestals.h
Go to the documentation of this file.
1 #ifndef SiStripMonitorPedestals_SiStripMonitorPedestals_h
2 #define SiStripMonitorPedestals_SiStripMonitorPedestals_h
3 // -*- C++ -*-
4 //
5 // Package: SiStripMonitorPedestals
6 // Class : SiStripMonitorPedestals
7 //
16 //
17 // Original Author: gennai, dutta
18 // Created: Sat Feb 4 20:49:51 CET 2006
19 //
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
31 
33 
34 // data formats
39 
40 // cabling
43 
45 
46 #include "boost/cstdint.hpp"
47 #include <iomanip>
48 #include <string>
49 
50 class ApvAnalysisFactory;
51 class MonitorElement;
52 class DQMStore;
53 class SiStripDetCabling;
54 
56 public:
58  ~SiStripMonitorPedestals() override;
59 
60  void analyze(const edm::Event &, const edm::EventSetup &) override;
61  void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override;
62  void endJob() override;
63  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
64 
65 private:
67 
68  void resetMEs(uint32_t idet);
69  void createMEs(DQMStore::IBooker &, edm::EventSetup const &eSetup);
70  void fillCondDBMEs(edm::EventSetup const &eSetup);
71 
72  struct ModMEs {
76 
83 
86 
87  // MonitorElements for CondDB data display
91  };
92 
95  std::map<uint32_t, ModMEs> PedMEs;
98  bool analyzed;
99  bool firstEvent;
100 
101  // The following to be put inside the parametersets
102  int16_t nEvUpdate_;
103  int16_t signalCutPeds_;
104  int16_t nEvTot_;
105  int16_t nEvInit_;
113  unsigned long long m_cacheID_;
114 
115  static const std::string RunMode1;
116  static const std::string RunMode2;
117  static const std::string RunMode3;
118 };
119 
120 #endif
void fillCondDBMEs(edm::EventSetup const &eSetup)
edm::ESHandle< SiStripDetCabling > detcabling
static const std::string RunMode1
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
static const std::string RunMode3
SiStripMonitorPedestals(const edm::ParameterSet &)
ApvAnalysisFactory * apvFactory_
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
static const std::string RunMode2
void createMEs(DQMStore::IBooker &, edm::EventSetup const &eSetup)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::map< uint32_t, ModMEs > PedMEs
Definition: Run.h:45