1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
import FWCore.ParameterSet.Config as cms
from DQMOffline.L1Trigger import L1TEGammaOffline_cfi
variables = {
'electron': L1TEGammaOffline_cfi.electronEfficiencyThresholds,
'photon': L1TEGammaOffline_cfi.photonEfficiencyThresholds,
}
deepInspectionThresholds = {
'electron': L1TEGammaOffline_cfi.deepInspectionElectronThresholds,
'photon': [],
}
plots = {
'electron': [
"efficiencyElectronET_EB", "efficiencyElectronET_EE",
"efficiencyElectronET_EB_EE", "efficiencyElectronPhi_vs_Eta",
],
'photon': [
"efficiencyPhotonET_EB", "efficiencyPhotonET_EE",
"efficiencyPhotonET_EB_EE"
]
}
deepInspectionPlots = {
'electron': [
'efficiencyElectronEta', 'efficiencyElectronPhi',
'efficiencyElectronNVertex'
],
'photon': [],
}
variables_HI = {
'electron': L1TEGammaOffline_cfi.electronEfficiencyThresholds_HI,
'photon': L1TEGammaOffline_cfi.photonEfficiencyThresholds_HI,
}
deepInspectionThresholds_HI = {
'electron': L1TEGammaOffline_cfi.deepInspectionElectronThresholds_HI,
'photon': [],
}
# remove photon variables (code to produce them is currently commented out)
variables['photon'] = []
variables_HI['photon'] = []
from DQMOffline.L1Trigger.L1TCommon import generateEfficiencyStrings as ges
efficiencyStrings = list(ges(variables, plots))
efficiencyStrings += list(ges(deepInspectionThresholds, deepInspectionPlots))
efficiencyStrings_HI = list(ges(variables_HI, plots))
efficiencyStrings_HI += list(ges(deepInspectionThresholds_HI,
deepInspectionPlots))
from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
l1tEGammaEfficiency = DQMEDHarvester(
"DQMGenericClient",
commands=cms.vstring(),
resolution=cms.vstring(),
subDirs=cms.untracked.vstring('L1T/L1TObjects/L1TEGamma/L1TriggerVsReco'),
efficiency=cms.vstring(),
efficiencyProfile=cms.untracked.vstring(efficiencyStrings),
)
l1tEGammaEmuEfficiency = l1tEGammaEfficiency.clone(
subDirs = ['L1TEMU/L1TObjects/L1TEGamma/L1TriggerVsReco']
)
from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tEGammaEfficiency, efficiencyProfile=efficiencyStrings_HI)
ppRef_2017.toModify(l1tEGammaEmuEfficiency, efficiencyProfile=efficiencyStrings_HI)
|