Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-23 02:25:33

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMOffline.L1Trigger import L1TTauOffline_cfi
0003 
0004 variables = {
0005     'tau': L1TTauOffline_cfi.tauEfficiencyThresholds,
0006 }
0007 
0008 plots = {
0009     'tau': [
0010         "efficiencyIsoTauET_EB", "efficiencyIsoTauET_EE",
0011         "efficiencyIsoTauET_EB_EE"
0012     ],
0013     'NonIsotau': [
0014         "efficiencyNonIsoTauET_EB", "efficiencyNonIsoTauET_EE",
0015         "efficiencyNonIsoTauET_EB_EE"
0016     ],
0017 }
0018 
0019 allEfficiencyPlots = []
0020 add_plot = allEfficiencyPlots.append
0021 for variable, thresholds in variables.items():
0022     for plot in plots[variable]:
0023         for threshold in thresholds:
0024             plotName = '{0}_threshold_{1}'.format(plot, threshold)
0025             add_plot(plotName)
0026 
0027 resolution_plots = [
0028     "resolutionTauET_EB", "resolutionTauET_EE",
0029     "resolutionTauET_EB_EE", "resolutionTauPhi_EB", "resolutionTauPhi_EE",
0030     "resolutionTauPhi_EB_EE", "resolutionTauEta",
0031 
0032 ]
0033 plots2D = [
0034     'L1TauETvsTauET_EB', 'L1TauETvsTauET_EE', 'L1TauETvsTauET_EB_EE',
0035     'L1TauPhivsTauPhi_EB', 'L1TauPhivsTauPhi_EE', 'L1TauPhivsTauPhi_EB_EE',
0036     'L1TauEtavsTauEta',
0037 ]
0038 
0039 allPlots = []
0040 allPlots.extend(allEfficiencyPlots)
0041 allPlots.extend(resolution_plots)
0042 allPlots.extend(plots2D)
0043 
0044 from DQMOffline.L1Trigger.L1TDiffHarvesting_cfi import l1tDiffHarvesting
0045 l1tTauEmuDiff = l1tDiffHarvesting.clone(
0046     plotCfgs=cms.untracked.VPSet(
0047         cms.untracked.PSet(  # EMU comparison
0048             dir1=cms.untracked.string("L1T/L1TObjects/L1TTau/L1TriggerVsReco"),
0049             dir2=cms.untracked.string("L1TEMU/L1TObjects/L1TTau/L1TriggerVsReco"),
0050             outputDir=cms.untracked.string(
0051                 "L1TEMU/L1TObjects/L1TTau/L1TriggerVsReco/Comparison"),
0052             plots=cms.untracked.vstring(allPlots)
0053         ),
0054     )
0055 )