CMS 3D CMS Logo

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 
21 
24 
30 
33 
39 
42 
43 #include "TFile.h"
44 #include "TH1.h"
45 #include "TH2.h"
46 
48 public:
50 
51  ~HcalGainsCheck() override {}
52 
53  void beginJob() override;
54  void endJob() override;
55 
56  void analyze(const edm::Event& ev, const edm::EventSetup& es) override;
57 
58 private:
59  // std::string front;
60  // vecDetId getMissingDetIds(std::vector<HcalPedestals> &);
65  bool emapflag;
67  double epsilon;
68 
69  TFile* f;
70  //plots:
71  TH2F* ocMapUp;
72  TH2F* ocMapRef;
73  // TH2F* valMapUp;
74  // TH2F* valMapRef;
75 
84  TH1F* gainsUpCap0;
85  TH1F* gainsUpCap1;
86  TH1F* gainsUpCap2;
87  TH1F* gainsUpCap3;
88  TH1F* gainsRefCap0;
89  TH1F* gainsRefCap1;
90  TH1F* gainsRefCap2;
91  TH1F* gainsRefCap3;
100 };
101 #endif
HcalElectronicsMap.h
HcalGainsCheck::ratioUpRefCap3
TH1F * ratioUpRefCap3
Definition: HcalGainsCheck.h:83
HcalGainsCheck::gainsUpCap2
TH1F * gainsUpCap2
Definition: HcalGainsCheck.h:86
HcalGainsCheck::gainsUpCap2vsEta
TH1F * gainsUpCap2vsEta
Definition: HcalGainsCheck.h:94
HcalGainsCheck::diffUpRefCap3
TH1F * diffUpRefCap3
Definition: HcalGainsCheck.h:79
HcalGainsCheck::outfile
std::string outfile
Definition: HcalGainsCheck.h:64
ESHandle.h
HcalElectronicsMapRcd.h
HcalGainsCheck::gainsUpCap3
TH1F * gainsUpCap3
Definition: HcalGainsCheck.h:87
HcalGainsCheck::gainsRefCap1vsEta
TH1F * gainsRefCap1vsEta
Definition: HcalGainsCheck.h:97
HcalGainsCheck::gainsUpCap0
TH1F * gainsUpCap0
Definition: HcalGainsCheck.h:84
HcalGainsCheck::gainsUpCap1vsEta
TH1F * gainsUpCap1vsEta
Definition: HcalGainsCheck.h:93
HcalGenericDetId.h
HcalPedestals.h
EDAnalyzer.h
HcalGainsCheck::gainsRefCap3vsEta
TH1F * gainsRefCap3vsEta
Definition: HcalGainsCheck.h:99
HcalGainsCheck::gainsRefCap0
TH1F * gainsRefCap0
Definition: HcalGainsCheck.h:88
HcalGainsCheck::rootfile
std::string rootfile
Definition: HcalGainsCheck.h:63
HcalGainsCheck::~HcalGainsCheck
~HcalGainsCheck() override
Definition: HcalGainsCheck.h:51
HcalGainsCheck::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &es) override
Definition: HcalGainsCheck.cc:46
HcalGeometry.h
HcalGainsCheck::dumpupdate
std::string dumpupdate
Definition: HcalGainsCheck.h:61
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
HcalGainWidthsRcd.h
HcalGainsCheck::ratioUpRefCap1
TH1F * ratioUpRefCap1
Definition: HcalGainsCheck.h:81
MakerMacros.h
HcalGainsCheck::epsilon
double epsilon
Definition: HcalGainsCheck.h:67
HcalGainsCheck::validategainsflag
bool validategainsflag
Definition: HcalGainsCheck.h:66
HcalGainsCheck::ratioUpRefCap2
TH1F * ratioUpRefCap2
Definition: HcalGainsCheck.h:82
HcalGainsCheck::gainsUpCap3vsEta
TH1F * gainsUpCap3vsEta
Definition: HcalGainsCheck.h:95
HcalGainsCheck::ocMapRef
TH2F * ocMapRef
Definition: HcalGainsCheck.h:72
HcalGainsCheck::dumprefs
std::string dumprefs
Definition: HcalGainsCheck.h:62
HcalGainsCheck::ratioUpRefCap0
TH1F * ratioUpRefCap0
Definition: HcalGainsCheck.h:80
HcalGainsCheck::gainsRefCap3
TH1F * gainsRefCap3
Definition: HcalGainsCheck.h:91
HcalGainsCheck::diffUpRefCap2
TH1F * diffUpRefCap2
Definition: HcalGainsCheck.h:78
HcalGainsCheck::endJob
void endJob() override
Definition: HcalGainsCheck.cc:210
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalGainsCheck::emapflag
bool emapflag
Definition: HcalGainsCheck.h:65
HcalPedestalsRcd.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
HcalGainsCheck::diffUpRefCap1
TH1F * diffUpRefCap1
Definition: HcalGainsCheck.h:77
HcalGainsCheck::HcalGainsCheck
HcalGainsCheck(edm::ParameterSet const &ps)
Definition: HcalGainsCheck.cc:3
HcalGainsCheck::gainsUpCap1
TH1F * gainsUpCap1
Definition: HcalGainsCheck.h:85
HcalGainsCheck::ocMapUp
TH2F * ocMapUp
Definition: HcalGainsCheck.h:71
edm::EventSetup
Definition: EventSetup.h:57
HcalGains.h
HcalGainsCheck::diffUpRefCap0
TH1F * diffUpRefCap0
Definition: HcalGainsCheck.h:76
HcalPedestalWidths.h
HcalGainsCheck::f
TFile * f
Definition: HcalGainsCheck.h:69
HcalGainsRcd.h
HcalGainsCheck::gainsRefCap0vsEta
TH1F * gainsRefCap0vsEta
Definition: HcalGainsCheck.h:96
HcalGainsCheck::gainsRefCap1
TH1F * gainsRefCap1
Definition: HcalGainsCheck.h:89
HcalGainWidths.h
HcalGainsCheck::beginJob
void beginJob() override
Definition: HcalGainsCheck.cc:13
HcalDbASCIIIO.h
HcalGainsCheck
Definition: HcalGainsCheck.h:47
HcalGainsCheck::gainsRefCap2
TH1F * gainsRefCap2
Definition: HcalGainsCheck.h:90
DetId.h
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
EventSetup.h
ParameterSet.h
edm::Event
Definition: Event.h:73
HcalGainsCheck::gainsRefCap2vsEta
TH1F * gainsRefCap2vsEta
Definition: HcalGainsCheck.h:98
HcalGainsCheck::gainsUpCap0vsEta
TH1F * gainsUpCap0vsEta
Definition: HcalGainsCheck.h:92
HcalPedestalWidthsRcd.h