CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
EcalPedestalHistory.h
Go to the documentation of this file.
1 #ifndef ECALPEDESTALHISTORY_H
2 #define ECALPEDESTALHISTORY_H
3 
11 //
12 // $Id: EcalPedestalHistory.h,v 0.0 2016/04/28 $
13 //
14 
15 // system include files
16 #include <memory>
17 
18 // user include files
25 
28 
30 
34 
36 
37 #include <string>
38 #include "TH1.h"
39 #include "TGraph.h"
40 #include "TH2.h"
41 #include <fstream>
42 #include <map>
43 
44 class EcalPedestalHistory : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
45 public:
46  explicit EcalPedestalHistory(const edm::ParameterSet&);
47  ~EcalPedestalHistory() override;
48  void analyze(const edm::Event&, const edm::EventSetup&) override;
49  void beginRun(edm::Run const&, edm::EventSetup const&) override;
50  void endRun(edm::Run const&, edm::EventSetup const&) override;
51  void beginJob() override;
52  void endJob() override;
54 
55  enum { kChannels = 75848, kEBChannels = 61200, kEEChannels = 14648 };
56  enum { kGains = 3, kFirstGainId = 1 };
57 
58 private:
60  unsigned int cnt_evt_;
61  std::string ECALType_; // EB or EE
62  std::string runType_; // Pedes or Other
63  unsigned int startevent_;
64  std::vector<int> maskedChannels_;
65  std::vector<int> maskedEEChannels_;
66  unsigned int m_firstRun;
67  unsigned int m_lastRun;
75 };
76 #endif
std::vector< int > maskedChannels_
EcalPedestalHistory(const edm::ParameterSet &)
void endRun(edm::Run const &, edm::EventSetup const &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< int > maskedEEChannels_
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: Run.h:45
EcalCondDBInterface * econn