Skip to content

Commit

Permalink
enabled new L1T EGamma efficiency plots in the harvester
Browse files Browse the repository at this point in the history
  • Loading branch information
kreczko committed Aug 22, 2017
1 parent 50ca638 commit 5fa6981
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion DQMOffline/L1Trigger/python/L1TEGammaEfficiency_cfi.py
Expand Up @@ -6,17 +6,30 @@
'photon': L1TEGammaOffline_cfi.photonEfficiencyThresholds,
}

deepInspectionThresholds = {
'electron': L1TEGammaOffline_cfi.deepInspectionElectronThresholds,
'photon': [],
}

plots = {
'electron': [
"efficiencyElectronET_EB", "efficiencyElectronET_EE",
"efficiencyElectronET_EB_EE"
"efficiencyElectronET_EB_EE", "efficiencyElectronPhi_vs_Eta",
],
'photon': [
"efficiencyPhotonET_EB", "efficiencyPhotonET_EE",
"efficiencyPhotonET_EB_EE"
]
}

deepInspectionPlots = {
'electron': [
'efficiencyElectronEta', 'efficiencyElectronPhi',
'efficiencyElectronNVertex'
],
'photon': [],
}

allEfficiencyPlots = []
add_plot = allEfficiencyPlots.append
for variable, thresholds in variables.iteritems():
Expand All @@ -25,6 +38,12 @@
plotName = '{0}_threshold_{1}'.format(plot, threshold)
add_plot(plotName)

for variable, thresholds in deepInspectionThresholds.iteritems():
for plot in deepInspectionPlots[variable]:
for threshold in thresholds:
plotName = '{0}_threshold_{1}'.format(plot, threshold)
add_plot(plotName)

from DQMOffline.L1Trigger.L1TEfficiencyHarvesting_cfi import l1tEfficiencyHarvesting
l1tEGammaEfficiency = l1tEfficiencyHarvesting.clone(
plotCfgs=cms.untracked.VPSet(
Expand Down

0 comments on commit 5fa6981

Please sign in to comment.