CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #include <iomanip>
24 #include <string>
25 #include <cstdint>
26 
27 // user include files
34 
35 // data formats
40 
41 // cabling
44 
47 
48 class ApvAnalysisFactory;
49 class SiStripDetCabling;
50 
52 public:
54  ~SiStripMonitorPedestals() override;
55 
56  void analyze(const edm::Event &, const edm::EventSetup &) override;
57  void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override;
58  void endJob() override;
59  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
60 
61 private:
63 
64  void resetMEs(uint32_t idet);
65  void createMEs(DQMStore::IBooker &, edm::EventSetup const &eSetup);
66  void fillCondDBMEs(edm::EventSetup const &eSetup);
67 
68  struct ModMEs {
72 
79 
82 
83  // MonitorElements for CondDB data display
87  };
88 
91  std::map<uint32_t, ModMEs> PedMEs;
94  bool analyzed;
95  bool firstEvent;
96 
97  // The following to be put inside the parametersets
98  int16_t nEvUpdate_;
99  int16_t signalCutPeds_;
100  int16_t nEvTot_;
101  int16_t nEvInit_;
109 
116 
117  static const std::string RunMode1;
118  static const std::string RunMode2;
119  static const std::string RunMode3;
120 };
121 
122 #endif
void fillCondDBMEs(edm::EventSetup const &eSetup)
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > qualityToken_
const SiStripDetCabling * detcabling
static const std::string RunMode1
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > noiseToken_
edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > digiToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
static const std::string RunMode3
SiStripMonitorPedestals(const edm::ParameterSet &)
edm::ESGetToken< SiStripPedestals, SiStripPedestalsRcd > pedestalToken_
ApvAnalysisFactory * apvFactory_
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
static const std::string RunMode2
void createMEs(DQMStore::IBooker &, edm::EventSetup const &eSetup)
void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override
edm::ESWatcher< SiStripDetCablingRcd > detCablingWatcher_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::map< uint32_t, ModMEs > PedMEs
Definition: Run.h:45
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_