CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalGainsCheck.h
Go to the documentation of this file.
1 #ifndef HcalGainsCheck_h
2 #define HcalGainsCheck_h
3 
4 //
5 // R.Ofierzynski 9.12.2007
6 //
7 // Code to check pedestals for completeness and to compare to previous pedestals
8 
9 #include <string>
10 #include <iostream>
11 #include <fstream>
12 #include <sstream>
13 #include <map>
14 #include <vector>
15 #include <algorithm>
16 
20 
23 
29 
32 
38 
41 
42 #include "TFile.h"
43 #include "TH1.h"
44 #include "TH2.h"
45 
47 public:
49 
50  ~HcalGainsCheck() override {}
51 
52  void beginJob() override;
53  void endJob() override;
54 
55  void analyze(const edm::Event& ev, const edm::EventSetup& es) override;
56 
57 private:
58  // std::string front;
59  // vecDetId getMissingDetIds(std::vector<HcalPedestals> &);
64  bool emapflag;
66  double epsilon;
70 
71  TFile* f;
72  //plots:
73  TH2F* ocMapUp;
74  TH2F* ocMapRef;
75  // TH2F* valMapUp;
76  // TH2F* valMapRef;
77 
86  TH1F* gainsUpCap0;
87  TH1F* gainsUpCap1;
88  TH1F* gainsUpCap2;
89  TH1F* gainsUpCap3;
90  TH1F* gainsRefCap0;
91  TH1F* gainsRefCap1;
92  TH1F* gainsRefCap2;
93  TH1F* gainsRefCap3;
102 };
103 #endif
TH1F * diffUpRefCap1
TH1F * gainsUpCap1vsEta
void endJob() override
~HcalGainsCheck() override
edm::ESGetToken< HcalElectronicsMap, HcalElectronicsMapRcd > m_tokmap
TH1F * diffUpRefCap3
TH1F * gainsRefCap2vsEta
TH1F * ratioUpRefCap2
TH1F * gainsUpCap0vsEta
bool ev
TH1F * diffUpRefCap2
TH1F * gainsUpCap2vsEta
TH1F * diffUpRefCap0
TH1F * gainsRefCap0vsEta
void analyze(const edm::Event &ev, const edm::EventSetup &es) override
void beginJob() override
TH1F * gainsUpCap3vsEta
TH1F * gainsRefCap3vsEta
HcalGainsCheck(edm::ParameterSet const &ps)
std::string dumpupdate
TH1F * ratioUpRefCap3
TH1F * ratioUpRefCap0
TH1F * gainsRefCap1vsEta
edm::ESGetToken< HcalGains, HcalGainsRcd > m_tok1
std::string outfile
TH1F * ratioUpRefCap1
std::string dumprefs
std::string rootfile
edm::ESGetToken< HcalGains, HcalGainsRcd > m_tok2