CondTools
Hcal
interface
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
17
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
18
#include "
FWCore/Framework/interface/Event.h
"
19
#include "
FWCore/Framework/interface/MakerMacros.h
"
20
21
#include "
FWCore/Framework/interface/EventSetup.h
"
22
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
23
24
#include "
CondFormats/HcalObjects/interface/HcalPedestals.h
"
25
#include "
CondFormats/HcalObjects/interface/HcalPedestalWidths.h
"
26
#include "
CondFormats/HcalObjects/interface/HcalGains.h
"
27
#include "
CondFormats/HcalObjects/interface/HcalGainWidths.h
"
28
#include "
CondFormats/HcalObjects/interface/HcalElectronicsMap.h
"
29
30
#include "
DataFormats/HcalDetId/interface/HcalGenericDetId.h
"
31
#include "
DataFormats/DetId/interface/DetId.h
"
32
33
#include "
CondFormats/DataRecord/interface/HcalPedestalsRcd.h
"
34
#include "
CondFormats/DataRecord/interface/HcalPedestalWidthsRcd.h
"
35
#include "
CondFormats/DataRecord/interface/HcalGainsRcd.h
"
36
#include "
CondFormats/DataRecord/interface/HcalGainWidthsRcd.h
"
37
#include "
CondFormats/DataRecord/interface/HcalElectronicsMapRcd.h
"
38
39
#include "
CalibCalorimetry/HcalAlgos/interface/HcalDbASCIIIO.h
"
40
#include "
Geometry/HcalTowerAlgo/interface/HcalGeometry.h
"
41
42
#include "TFile.h"
43
#include "TH1.h"
44
#include "TH2.h"
45
46
class
HcalGainsCheck
:
public
edm::EDAnalyzer
{
47
public
:
48
HcalGainsCheck
(
edm::ParameterSet
const
& ps);
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> &);
60
std::string
dumpupdate
;
61
std::string
dumprefs
;
62
std::string
rootfile
;
63
std::string
outfile
;
64
bool
emapflag
;
65
bool
validategainsflag
;
66
double
epsilon
;
67
edm::ESGetToken<HcalGains, HcalGainsRcd>
m_tok1
;
68
edm::ESGetToken<HcalGains, HcalGainsRcd>
m_tok2
;
69
edm::ESGetToken<HcalElectronicsMap, HcalElectronicsMapRcd>
m_tokmap
;
70
71
TFile*
f
;
72
//plots:
73
TH2F*
ocMapUp
;
74
TH2F*
ocMapRef
;
75
// TH2F* valMapUp;
76
// TH2F* valMapRef;
77
78
TH1F*
diffUpRefCap0
;
79
TH1F*
diffUpRefCap1
;
80
TH1F*
diffUpRefCap2
;
81
TH1F*
diffUpRefCap3
;
82
TH1F*
ratioUpRefCap0
;
83
TH1F*
ratioUpRefCap1
;
84
TH1F*
ratioUpRefCap2
;
85
TH1F*
ratioUpRefCap3
;
86
TH1F*
gainsUpCap0
;
87
TH1F*
gainsUpCap1
;
88
TH1F*
gainsUpCap2
;
89
TH1F*
gainsUpCap3
;
90
TH1F*
gainsRefCap0
;
91
TH1F*
gainsRefCap1
;
92
TH1F*
gainsRefCap2
;
93
TH1F*
gainsRefCap3
;
94
TH1F*
gainsUpCap0vsEta
;
95
TH1F*
gainsUpCap1vsEta
;
96
TH1F*
gainsUpCap2vsEta
;
97
TH1F*
gainsUpCap3vsEta
;
98
TH1F*
gainsRefCap0vsEta
;
99
TH1F*
gainsRefCap1vsEta
;
100
TH1F*
gainsRefCap2vsEta
;
101
TH1F*
gainsRefCap3vsEta
;
102
};
103
#endif
HcalElectronicsMap.h
HcalGainsCheck::ratioUpRefCap3
TH1F * ratioUpRefCap3
Definition:
HcalGainsCheck.h:85
HcalGainsCheck::gainsUpCap2
TH1F * gainsUpCap2
Definition:
HcalGainsCheck.h:88
HcalGainsCheck::gainsUpCap2vsEta
TH1F * gainsUpCap2vsEta
Definition:
HcalGainsCheck.h:96
HcalGainsCheck::diffUpRefCap3
TH1F * diffUpRefCap3
Definition:
HcalGainsCheck.h:81
HcalGainsCheck::outfile
std::string outfile
Definition:
HcalGainsCheck.h:63
HcalElectronicsMapRcd.h
HcalGainsCheck::gainsUpCap3
TH1F * gainsUpCap3
Definition:
HcalGainsCheck.h:89
HcalGainsCheck::gainsRefCap1vsEta
TH1F * gainsRefCap1vsEta
Definition:
HcalGainsCheck.h:99
HcalGainsCheck::gainsUpCap0
TH1F * gainsUpCap0
Definition:
HcalGainsCheck.h:86
HcalGainsCheck::gainsUpCap1vsEta
TH1F * gainsUpCap1vsEta
Definition:
HcalGainsCheck.h:95
HcalGenericDetId.h
HcalPedestals.h
EDAnalyzer.h
HcalGainsCheck::gainsRefCap3vsEta
TH1F * gainsRefCap3vsEta
Definition:
HcalGainsCheck.h:101
HcalGainsCheck::gainsRefCap0
TH1F * gainsRefCap0
Definition:
HcalGainsCheck.h:90
HcalGainsCheck::rootfile
std::string rootfile
Definition:
HcalGainsCheck.h:62
HcalGainsCheck::~HcalGainsCheck
~HcalGainsCheck() override
Definition:
HcalGainsCheck.h:50
HcalGainsCheck::analyze
void analyze(const edm::Event &ev, const edm::EventSetup &es) override
Definition:
HcalGainsCheck.cc:49
HcalGeometry.h
HcalGainsCheck::dumpupdate
std::string dumpupdate
Definition:
HcalGainsCheck.h:60
edm::EDAnalyzer
Definition:
EDAnalyzer.h:28
HcalGainWidthsRcd.h
HcalGainsCheck::ratioUpRefCap1
TH1F * ratioUpRefCap1
Definition:
HcalGainsCheck.h:83
MakerMacros.h
HcalGainsCheck::epsilon
double epsilon
Definition:
HcalGainsCheck.h:66
HcalGainsCheck::validategainsflag
bool validategainsflag
Definition:
HcalGainsCheck.h:65
HcalGainsCheck::ratioUpRefCap2
TH1F * ratioUpRefCap2
Definition:
HcalGainsCheck.h:84
HcalGainsCheck::gainsUpCap3vsEta
TH1F * gainsUpCap3vsEta
Definition:
HcalGainsCheck.h:97
HcalGainsCheck::ocMapRef
TH2F * ocMapRef
Definition:
HcalGainsCheck.h:74
HcalGainsCheck::dumprefs
std::string dumprefs
Definition:
HcalGainsCheck.h:61
HcalGainsCheck::m_tokmap
edm::ESGetToken< HcalElectronicsMap, HcalElectronicsMapRcd > m_tokmap
Definition:
HcalGainsCheck.h:69
HcalGainsCheck::ratioUpRefCap0
TH1F * ratioUpRefCap0
Definition:
HcalGainsCheck.h:82
HcalGainsCheck::gainsRefCap3
TH1F * gainsRefCap3
Definition:
HcalGainsCheck.h:93
HcalGainsCheck::m_tok2
edm::ESGetToken< HcalGains, HcalGainsRcd > m_tok2
Definition:
HcalGainsCheck.h:68
HcalGainsCheck::diffUpRefCap2
TH1F * diffUpRefCap2
Definition:
HcalGainsCheck.h:80
HcalGainsCheck::endJob
void endJob() override
Definition:
HcalGainsCheck.cc:207
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
HcalGainsCheck::emapflag
bool emapflag
Definition:
HcalGainsCheck.h:64
HcalPedestalsRcd.h
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
HcalGainsCheck::diffUpRefCap1
TH1F * diffUpRefCap1
Definition:
HcalGainsCheck.h:79
HcalGainsCheck::HcalGainsCheck
HcalGainsCheck(edm::ParameterSet const &ps)
Definition:
HcalGainsCheck.cc:3
HcalGainsCheck::gainsUpCap1
TH1F * gainsUpCap1
Definition:
HcalGainsCheck.h:87
HcalGainsCheck::ocMapUp
TH2F * ocMapUp
Definition:
HcalGainsCheck.h:73
edm::EventSetup
Definition:
EventSetup.h:58
HcalGains.h
HcalGainsCheck::diffUpRefCap0
TH1F * diffUpRefCap0
Definition:
HcalGainsCheck.h:78
HcalPedestalWidths.h
edm::ESGetToken< HcalGains, HcalGainsRcd >
HcalGainsCheck::f
TFile * f
Definition:
HcalGainsCheck.h:71
HcalGainsCheck::m_tok1
edm::ESGetToken< HcalGains, HcalGainsRcd > m_tok1
Definition:
HcalGainsCheck.h:67
HcalGainsRcd.h
HcalGainsCheck::gainsRefCap0vsEta
TH1F * gainsRefCap0vsEta
Definition:
HcalGainsCheck.h:98
HcalGainsCheck::gainsRefCap1
TH1F * gainsRefCap1
Definition:
HcalGainsCheck.h:91
HcalGainWidths.h
HcalGainsCheck::beginJob
void beginJob() override
Definition:
HcalGainsCheck.cc:16
HcalDbASCIIIO.h
HcalGainsCheck
Definition:
HcalGainsCheck.h:46
HcalGainsCheck::gainsRefCap2
TH1F * gainsRefCap2
Definition:
HcalGainsCheck.h:92
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:100
HcalGainsCheck::gainsUpCap0vsEta
TH1F * gainsUpCap0vsEta
Definition:
HcalGainsCheck.h:94
HcalPedestalWidthsRcd.h
Generated for CMSSW Reference Manual by
1.8.16