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 
57 private:
59  unsigned int cnt_evt_;
60  std::string ECALType_; // EB or EE
61  std::string runType_; // Pedes or Other
62  unsigned int startevent_;
63  std::vector<int> maskedChannels_;
64  std::vector<int> maskedEEChannels_;
65  unsigned int m_firstRun;
66  unsigned int m_lastRun;
74 };
75 #endif
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
EcalPedestalHistory::kFirstGainId
Definition: EcalPedestalHistory.h:55
EcalPedestalHistory::m_sid
std::string m_sid
Definition: EcalPedestalHistory.h:69
ESHandle.h
edm::Run
Definition: Run.h:45
EcalPedestalHistory
Definition: EcalPedestalHistory.h:44
EcalPedestalHistory::maskedEEChannels_
std::vector< int > maskedEEChannels_
Definition: EcalPedestalHistory.h:64
EBDetId.h
EDAnalyzer.h
EcalPedestalHistory::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: EcalPedestalHistory.cc:379
EcalPedestalHistory::m_lastRun
unsigned int m_lastRun
Definition: EcalPedestalHistory.h:66
EcalPedestalHistory::m_location
std::string m_location
Definition: EcalPedestalHistory.h:67
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
EcalPedestalHistory::m_pass
std::string m_pass
Definition: EcalPedestalHistory.h:71
MakerMacros.h
EcalPedestalHistory::kEBChannels
Definition: EcalPedestalHistory.h:54
EcalPedestalHistory::beginJob
void beginJob() override
Definition: EcalPedestalHistory.cc:358
EcalMappingRcd.h
EcalPedestalHistory::runnumber_
int runnumber_
Definition: EcalPedestalHistory.h:58
EcalPedestalHistory::kGains
Definition: EcalPedestalHistory.h:55
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalPedestalHistory::m_firstRun
unsigned int m_firstRun
Definition: EcalPedestalHistory.h:65
all_monitoring_types.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
EcalFedMap.h
EcalPedestalHistory::m_locationsource
std::string m_locationsource
Definition: EcalPedestalHistory.h:72
EcalPedestalHistory::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition: EcalPedestalHistory.cc:85
EcalElectronicsMapping.h
edm::EventSetup
Definition: EventSetup.h:57
EcalPedestalHistory::kChannels
Definition: EcalPedestalHistory.h:54
EcalPedestalHistory::m_name
std::string m_name
Definition: EcalPedestalHistory.h:73
EcalPedestalHistory::runType_
std::string runType_
Definition: EcalPedestalHistory.h:61
EcalPedestalHistory::startevent_
unsigned int startevent_
Definition: EcalPedestalHistory.h:62
Frameworkfwd.h
EcalPedestalHistory::endJob
void endJob() override
Definition: EcalPedestalHistory.cc:367
EcalPedestalHistory::m_gentag
std::string m_gentag
Definition: EcalPedestalHistory.h:68
EcalPedestalHistory::~EcalPedestalHistory
~EcalPedestalHistory() override
Definition: EcalPedestalHistory.cc:79
EcalPedestalHistory::cnt_evt_
unsigned int cnt_evt_
Definition: EcalPedestalHistory.h:59
EcalPedestalHistory::EcalPedestalHistory
EcalPedestalHistory(const edm::ParameterSet &)
Definition: EcalPedestalHistory.cc:51
EcalPedestalHistory::ECALType_
std::string ECALType_
Definition: EcalPedestalHistory.h:60
EcalPedestalHistory::maskedChannels_
std::vector< int > maskedChannels_
Definition: EcalPedestalHistory.h:63
Oracle.h
ParameterSet.h
edm::Event
Definition: Event.h:73
EcalPedestalHistory::kEEChannels
Definition: EcalPedestalHistory.h:54
EcalCondDBInterface.h
EcalPedestalHistory::econn
EcalCondDBInterface * econn
Definition: EcalPedestalHistory.h:52
EcalPedestalHistory::m_user
std::string m_user
Definition: EcalPedestalHistory.h:70