Validation
HGCalValidation
python
html.py
Go to the documentation of this file.
1
import
os
2
import
collections
3
import
six
4
5
_sampleName = {
6
"RelValCloseByParticleGun_CE_H_Fine_300um"
:
"CloseByParticleGun in CE-H Fine section with 300 um"
,
7
"RelValCloseByParticleGun_CE_H_Fine_200um"
:
"CloseByParticleGun in CE-H Fine section with 200 um"
,
8
"RelValCloseByParticleGun_CE_H_Fine_120um"
:
"CloseByParticleGun in CE-H Fine section with 120 um"
,
9
"RelValCloseByParticleGun_CE_H_Coarse_Scint"
:
"CloseByParticleGun in CE-H Coarse section with scintillator"
,
10
"RelValCloseByParticleGun_CE_H_Coarse_300um"
:
"CloseByParticleGun in CE-H Coarse section with 300 um"
,
11
"RelValCloseByParticleGun_CE_E_Front_300um"
:
"CloseByParticleGun in CE-E Front section with 300 um"
,
12
"RelValCloseByParticleGun_CE_E_Front_200um"
:
"CloseByParticleGun in CE-E Front section with 200 um"
,
13
"RelValCloseByPGun_CE_E_Front_120um"
:
"CloseByParticleGun in CE-E Front section with 120 um"
,
14
"RelValCloseByPGun_CE_H_Fine_300um"
:
"CloseByParticleGun in CE-H Fine section with 300 um"
,
15
"RelValCloseByPGun_CE_H_Fine_200um"
:
"CloseByParticleGun in CE-H Fine section with 200 um"
,
16
"RelValCloseByPGun_CE_H_Fine_120um"
:
"CloseByParticleGun in CE-H Fine section with 120 um"
,
17
"RelValCloseByPGun_CE_H_Coarse_Scint"
:
"CloseByParticleGun in CE-H Coarse section with scintillator"
,
18
"RelValCloseByPGun_CE_H_Coarse_300um"
:
"CloseByParticleGun in CE-H Coarse section with 300 um"
,
19
"RelValCloseByPGun_CE_E_Front_300um"
:
"CloseByParticleGun in CE-E Front section with 300 um"
,
20
"RelValCloseByPGun_CE_E_Front_200um"
:
"CloseByParticleGun in CE-E Front section with 200 um"
,
21
"RelValCloseByPGun_CE_E_Front_120um"
:
"CloseByParticleGun in CE-E Front section with 120 um"
,
22
"RelValTTbar"
:
"TTbar"
,
23
"RelValSingleGammaFlatPt8To150"
:
"Single Gamma Pt 8 GeV to 150 GeV "
,
24
"RelValSingleMuPt10"
:
"Single Muon Pt 10 GeV"
,
25
"RelValSingleMuPt100"
:
"Single Muon Pt 100 GeV"
,
26
"RelValSingleMuPt1000"
:
"Single Muon Pt 1000 GeV"
,
27
"RelValSingleMuFlatPt2To100"
:
"Single Muon Pt 2 GeV to 100 GeV"
,
28
"RelValSingleMuFlatPt0p7To10"
:
"Single Muon Pt 0.7 GeV to 10 GeV"
,
29
"RelValSingleEFlatPt2To100"
:
"Single Electron Pt 2 GeV to 100 GeV"
,
30
"RelValSingleTauFlatPt2To150"
:
"Single Tau Pt 2 GeV to 150 GeV"
,
31
"RelValSinglePiFlatPt0p7To10"
:
"Single Pion Pt 0.7 GeV to 10 GeV"
,
32
"RelValQCD_Pt20toInfMuEnrichPt15"
:
"QCD Pt 20 GeV to Inf with Muon Pt 15 GeV"
,
33
"RelValQCD_Pt15To7000_Flat"
:
"QCD Pt 15 GeV to 7 TeV"
,
34
"RelValZTT"
:
"ZTauTau"
,
35
"RelValZMM"
:
"ZMuMu"
,
36
"RelValZEE"
:
"ZEleEle"
,
37
"RelValB0ToKstarMuMu"
:
"B0 To Kstar Muon Muon"
,
38
"RelValBsToEleEle"
:
"Bs To Electron Electron"
,
39
"RelValBsToMuMu"
:
"Bs To Muon Muon"
,
40
"RelValBsToJpsiGamma"
:
"Bs To Jpsi Gamma"
,
41
"RelValBsToJpsiPhi_mumuKK"
:
"Bs To JpsiPhi_mumuKK"
,
42
"RelValBsToPhiPhi_KKKK"
:
"Bs To PhiPhi_KKKK"
,
43
"RelValDisplacedMuPt30To100"
:
"Displaced Muon Pt 30 GeV to 100 GeV"
,
44
"RelValDisplacedMuPt2To10"
:
"Displaced Muon Pt 2 GeV to 10 GeV"
,
45
"RelValDisplacedMuPt10To30"
:
"Displaced Muon Pt 10 GeV to 30 GeV"
,
46
"RelValTauToMuMuMu"
:
"Tau To Muon Muon Muon"
,
47
"RelValMinBias"
:
"Min Bias"
,
48
"RelValH125GGgluonfusion"
:
"Higgs to gamma gamma"
,
49
"RelValNuGun"
:
"Neutrino gun"
,
50
"RelValZpTT_1500"
:
"Z prime with 1500 GeV nominal mass"
,
51
"RelValTenTau_15_500"
:
"Ten Taus with energy from 15 GeV to 500 GeV"
52
}
53
54
_sampleFileName = {
55
"RelValCloseByParticleGun_CE_H_Fine_300um"
:
"closebycehf300"
,
56
"RelValCloseByParticleGun_CE_H_Fine_200um"
:
"closebycehf200"
,
57
"RelValCloseByParticleGun_CE_H_Fine_120um"
:
"closebycehf120"
,
58
"RelValCloseByParticleGun_CE_H_Coarse_Scint"
:
"closebycehcscint"
,
59
"RelValCloseByParticleGun_CE_H_Coarse_300um"
:
"closebycehc300"
,
60
"RelValCloseByParticleGun_CE_E_Front_300um"
:
"closebyceef300"
,
61
"RelValCloseByParticleGun_CE_E_Front_200um"
:
"closebyceef200"
,
62
"RelValCloseByParticleGun_CE_E_Front_120um"
:
"closebyceef120"
,
63
"RelValTTbar"
:
"ttbar"
,
64
"RelValSingleGammaFlatPt8To150"
:
"gam8"
,
65
"RelValSingleMuPt10"
:
"m10"
,
66
"RelValSingleMuPt100"
:
"m100"
,
67
"RelValSingleMuPt1000"
:
"m1000"
,
68
"RelValSingleMuFlatPt2To100"
:
"mflat2t100"
,
69
"RelValSingleMuFlatPt0p7To10"
:
"mflat0p7t10"
,
70
"RelValSingleEFlatPt2To100"
:
"eflat2t100"
,
71
"RelValSingleTauFlatPt2To150"
:
"tauflat2t150"
,
72
"RelValSinglePiFlatPt0p7To10"
:
"piflat0p7t10"
,
73
"RelValQCD_Pt20toInfMuEnrichPt15"
:
"qcd20enmu15"
,
74
"RelValQCD_Pt15To7000_Flat"
:
"qcdflat15"
,
75
"RelValZTT"
:
"ztautau"
,
76
"RelValZMM"
:
"zmm"
,
77
"RelValZEE"
:
"zee"
,
78
"RelValB0ToKstarMuMu"
:
"b0kstmm"
,
79
"RelValBsToEleEle"
:
"bsee"
,
80
"RelValBsToMuMu"
:
"bsmm"
,
81
"RelValBsToJpsiGamma"
:
"bsjpsg"
,
82
"RelValBsToJpsiPhi_mumuKK"
:
"bsjpspmmkk"
,
83
"RelValBsToPhiPhi_KKKK"
:
"bsjpsppkkkk"
,
84
"RelValDisplacedMuPt30To100"
:
"dm30"
,
85
"RelValDisplacedMuPt2To10"
:
"dm2"
,
86
"RelValDisplacedMuPt10To30"
:
"dm10"
,
87
"RelValTauToMuMuMu"
:
"taummm"
,
88
"RelValMinBias"
:
"minbias"
,
89
"RelValH125GGgluonfusion"
:
"hgg"
,
90
"RelValNuGun"
:
"nug"
,
91
"RelValZpTT_1500"
:
"zp1500tautau"
,
92
"RelValTenTau_15_500"
:
"tentaus15to1500"
93
94
}
95
96
97
_pageNameMap = {
98
"summary"
:
"Summary"
,
99
"hitCalibration"
:
"Reconstructed hits calibration"
,
100
"hitValidation"
:
"Simulated hits, digis, reconstructed hits validation"
,
101
"hgcalLayerClusters"
:
"Layer clusters"
,
102
"ticlMultiClustersFromTrackstersEM"
:
"Electromagnetic multiclusters"
,
103
"ticlMultiClustersFromTrackstersHAD"
:
"Hadronic multiclusters"
,
104
"hgcalMultiClusters"
:
"Old multiclusters"
,
105
"standalone"
:
"Standalone study on simulated hits, digis, reconstructed hits"
106
}
107
108
_sectionNameMapOrder = collections.OrderedDict([
109
# These are for the summary page
110
# Will add later
111
# hgcalLayerClusters
112
(
"hgcalLayerClusters"
,
"Layer clusters"
),
113
# ticlMultiClustersFromTrackstersEM
114
(
"ticlMultiClustersFromTrackstersEM"
,
"Electromagnetic multiclusters"
),
115
# ticlMultiClustersFromTrackstersHAD
116
(
"ticlMultiClustersFromTrackstersHAD"
,
"Hadronic multiclusters"
),
117
# hgcalMultiClusters
118
(
"hgcalMultiClusters"
,
"Old multiclusters"
),
119
])
120
121
#This is the summary section, where we define which plots will be shown in the summary page.
122
_summary = {}
123
124
#Objects to keep in summary
125
_summobj = [
'hitCalibration'
,
'hitValidation'
,
'hgcalLayerClusters'
,
'ticlMultiClustersFromTrackstersEM'
,
'ticlMultiClustersFromTrackstersHAD'
]
126
#_summobj = ['hitCalibration','hitValidation', 'hgcalLayerClusters']
127
128
#Plots to keep in summary from hitCalibration
129
summhitcalib=[
130
'Layer_Occupancy/LayerOccupancy_LayerOccupancy.png'
,
131
'ReconstructableEnergyOverCPenergy/ReconstructableEnergyOverCPenergy_h_EoP_CPene_300_calib_fraction.png'
,
132
'ReconstructableEnergyOverCPenergy/ReconstructableEnergyOverCPenergy_h_EoP_CPene_200_calib_fraction.png'
,
133
'ReconstructableEnergyOverCPenergy/ReconstructableEnergyOverCPenergy_h_EoP_CPene_100_calib_fraction.png'
,
134
'ReconstructableEnergyOverCPenergy/ReconstructableEnergyOverCPenergy_h_EoP_CPene_scint_calib_fraction.png'
135
]
136
137
#Plots to keep in summary from hitValidation
138
summhitvalid = [
139
'SimHits_Validation/HitValidation_heeEnSim.png'
,
140
'SimHits_Validation/HitValidation_hebEnSim.png'
,
141
'SimHits_Validation/HitValidation_hefEnSim.png'
]
142
143
#Plots to keep in summary from layer clusters
144
summlc = [
145
'Efficiencies_zminus/Efficiencies_zminus_globalEfficiencies.png'
,
146
'Efficiencies_zplus/Efficiencies_zplus_globalEfficiencies.png'
,
147
'Duplicates_zminus/Duplicates_zminus_globalEfficiencies.png'
,
148
'Duplicates_zplus/Duplicates_zplus_globalEfficiencies.png'
,
149
'FakeRate_zminus/FakeRate_zminus_globalEfficiencies.png'
,
150
'FakeRate_zplus/FakeRate_zplus_globalEfficiencies.png'
,
151
'MergeRate_zminus/MergeRate_zminus_globalEfficiencies.png'
,
152
'MergeRate_zplus/MergeRate_zplus_globalEfficiencies.png'
,
153
'SelectedCaloParticles_Photons/SelectedCaloParticles_num_caloparticle_eta.png'
,
154
'SelectedCaloParticles_Photons/SelectedCaloParticles_caloparticle_pt.png'
,
155
'SelectedCaloParticles_Photons/SelectedCaloParticles_caloparticle_phi.png'
,
156
'SelectedCaloParticles_Photons/SelectedCaloParticles_caloparticle_energy.png'
,
157
'SelectedCaloParticles_Photons/SelectedCaloParticles_Eta vs Zorigin.png'
158
]
159
160
161
#Plots to keep in summary from ticlMultiClustersFromTrackstersEM
162
summmcEM = [
163
'Efficiencies/Efficiencies_globalEfficiencies.png'
,
164
'Duplicates/Duplicates_globalEfficiencies.png'
,
165
'FakeRate/FakeRate_globalEfficiencies.png'
,
166
'MergeRate/MergeRate_globalEfficiencies.png'
167
]
168
169
#Plots to keep in summary from ticlMultiClustersFromTrackstersHAD
170
summmcHAD = summmcEM
171
172
#Plots to keep in summary from standalone analysis
173
summstandalone = [
174
'hgcalSimHitStudy/RZ_AllDetectors.png'
175
]
176
177
#Let's save the above for later
178
for
obj
in
_summobj:
179
_summary[obj] = {}
180
_summary[
'hitCalibration'
] = summhitcalib
181
_summary[
'hitValidation'
] = summhitvalid
182
_summary[
'hgcalLayerClusters'
] = summlc
183
_summary[
'ticlMultiClustersFromTrackstersEM'
] = summmcEM
184
_summary[
'ticlMultiClustersFromTrackstersHAD'
] = summmcHAD
185
186
187
188
189
190
191
Generated for CMSSW Reference Manual by
1.8.16