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 
24 // user include files
31 
33 
34 // data formats
39 
40 // cabling
43 
45 
47 #include <iomanip>
48 #include <string>
49 #include <cstdint>
50 
51 class ApvAnalysisFactory;
52 class SiStripDetCabling;
53 
55 public:
57  ~SiStripMonitorPedestals() override;
58 
59  void analyze(const edm::Event &, const edm::EventSetup &) override;
60  void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override;
61  void endJob() override;
62  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
63 
64 private:
66 
67  void resetMEs(uint32_t idet);
68  void createMEs(DQMStore::IBooker &, edm::EventSetup const &eSetup);
69  void fillCondDBMEs(edm::EventSetup const &eSetup);
70 
71  struct ModMEs {
75 
82 
85 
86  // MonitorElements for CondDB data display
90  };
91 
94  std::map<uint32_t, ModMEs> PedMEs;
97  bool analyzed;
98  bool firstEvent;
99 
100  // The following to be put inside the parametersets
101  int16_t nEvUpdate_;
102  int16_t signalCutPeds_;
103  int16_t nEvTot_;
104  int16_t nEvInit_;
112 
119 
120  static const std::string RunMode1;
121  static const std::string RunMode2;
122  static const std::string RunMode3;
123 };
124 
125 #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_