CMS 3D CMS Logo

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 
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 beginJob() override;
51  void endJob() override;
53 
54  enum { kChannels = 75848, kEBChannels = 61200, kEEChannels = 14648};
55  enum { kGains = 3, kFirstGainId = 1};
56  private:
58  unsigned int cnt_evt_;
59  std::string ECALType_; // EB or EE
60  std::string runType_; // Pedes or Other
61  unsigned int startevent_;
62  std::vector<int> maskedChannels_;
63  std::vector<int> maskedEEChannels_;
64  unsigned int m_firstRun ;
65  unsigned int m_lastRun ;
73 };
74 #endif
std::vector< int > maskedChannels_
EcalPedestalHistory(const edm::ParameterSet &)
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