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

from DQMOffline.L1Trigger.L1TEfficiencyHarvesting_cfi import l1tEfficiencyHarvesting
l1tStage2CaloLayer2Efficiency = l1tEfficiencyHarvesting.clone(
    plotCfgs=cms.untracked.VPSet(
        cms.untracked.PSet(
            numeratorDir=cms.untracked.string("L1T/L1TStage2CaloLayer2/efficiency_raw"),
            outputDir=cms.untracked.string("L1T/L1TStage2CaloLayer2"),
            numeratorSuffix=cms.untracked.string("_Num"),
            denominatorSuffix=cms.untracked.string("_Den"),
            plots=cms.untracked.vstring(allEfficiencyPlots)
        ),
        cms.untracked.PSet(
            numeratorDir=cms.untracked.string("L1TEMU/L1TStage2CaloLayer2/efficiency_raw"),
            outputDir=cms.untracked.string("L1TEMU/L1TStage2CaloLayer2"),
            numeratorSuffix=cms.untracked.string("_Num"),
            denominatorSuffix=cms.untracked.string("_Den"),
            plots=cms.untracked.vstring(allEfficiencyPlots)
        ),
    )
)

# modifications for the pp reference run
variables_HI = variables
variables_HI['jet'] = L1TStep1.jetEfficiencyThresholds_HI

allEfficiencyPlots_HI = []
add_plot = allEfficiencyPlots_HI.append
Exemplo n.º 2
0
    ],
}

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

from DQMOffline.L1Trigger.L1TEfficiencyHarvesting_cfi import l1tEfficiencyHarvesting
l1tJetEfficiency = l1tEfficiencyHarvesting.clone(plotCfgs=cms.untracked.VPSet(
    cms.untracked.PSet(numeratorDir=cms.untracked.string(
        "L1T/L1TObjects/L1TJet/L1TriggerVsReco/efficiency_raw"),
                       outputDir=cms.untracked.string(
                           "L1T/L1TObjects/L1TJet/L1TriggerVsReco"),
                       numeratorSuffix=cms.untracked.string("_Num"),
                       denominatorSuffix=cms.untracked.string("_Den"),
                       plots=cms.untracked.vstring(allEfficiencyPlots)), ))

l1tJetEmuEfficiency = l1tEfficiencyHarvesting.clone(
    plotCfgs=cms.untracked.VPSet(
        cms.untracked.PSet(numeratorDir=cms.untracked.string(
            "L1TEMU/L1TObjects/L1TJet/L1TriggerVsReco/efficiency_raw"),
                           outputDir=cms.untracked.string(
                               "L1TEMU/L1TObjects/L1TJet/L1TriggerVsReco"),
                           numeratorSuffix=cms.untracked.string("_Num"),
                           denominatorSuffix=cms.untracked.string("_Den"),
                           plots=cms.untracked.vstring(allEfficiencyPlots)), ))

# modifications for the pp reference run
Exemplo n.º 3
0
        "efficiencyNonIsoTauET_EB", "efficiencyNonIsoTauET_EE",
        "efficiencyNonIsoTauET_EB_EE"
    ]
}

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

from DQMOffline.L1Trigger.L1TEfficiencyHarvesting_cfi import l1tEfficiencyHarvesting
l1tTauEfficiency = l1tEfficiencyHarvesting.clone(plotCfgs=cms.untracked.VPSet(
    cms.untracked.PSet(
        numeratorDir=cms.untracked.string("L1T/L1TTau/efficiency_raw"),
        outputDir=cms.untracked.string("L1T/L1TTau"),
        numeratorSuffix=cms.untracked.string("_Num"),
        denominatorSuffix=cms.untracked.string("_Den"),
        plots=cms.untracked.vstring(allEfficiencyPlots),
    ),
    cms.untracked.PSet(
        numeratorDir=cms.untracked.string("L1TEMU/L1TTau/efficiency_raw"),
        outputDir=cms.untracked.string("L1TEMU/L1TTau"),
        numeratorSuffix=cms.untracked.string("_Num"),
        denominatorSuffix=cms.untracked.string("_Den"),
        plots=cms.untracked.vstring(allEfficiencyPlots),
    ),
))
import FWCore.ParameterSet.Config as cms

from DQMOffline.L1Trigger.L1TMuonDQMOffline_cfi import muonEfficiencyThresholds

plots = ["EffvsPt", "EffvsEta", "EffvsPhi",
        "EffvsPt_OPEN", "EffvsEta_OPEN", "EffvsPhi_OPEN",
        "EffvsPt_DOUBLE", "EffvsEta_DOUBLE", "EffvsPhi_DOUBLE",
        "EffvsPt_SINGLE", "EffvsEta_SINGLE", "EffvsPhi_SINGLE"]

allEfficiencyPlots = []
for plot in plots:
    for threshold in muonEfficiencyThresholds:
        plotName = '{0}_{1}'.format(plot, threshold)
        allEfficiencyPlots.append(plotName)

from DQMOffline.L1Trigger.L1TEfficiencyHarvesting_cfi import l1tEfficiencyHarvesting
l1tMuonDQMEfficiency = l1tEfficiencyHarvesting.clone(
    plotCfgs = cms.untracked.VPSet(
        cms.untracked.PSet(
            numeratorDir = cms.untracked.string("L1T/L1TMuon/numerators_and_denominators"),
            outputDir = cms.untracked.string("L1T/L1TMuon"),
            numeratorSuffix = cms.untracked.string("_Num"),
            denominatorSuffix = cms.untracked.string("_Den"),
            plots = cms.untracked.vstring(allEfficiencyPlots)
        )
    )
)
}

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

from DQMOffline.L1Trigger.L1TEfficiencyHarvesting_cfi import l1tEfficiencyHarvesting
l1tStage2CaloLayer2Efficiency = l1tEfficiencyHarvesting.clone(
    plotCfgs=cms.untracked.VPSet(
        cms.untracked.PSet(numeratorDir=cms.untracked.string(
            "L1T/L1TStage2CaloLayer2/efficiency_raw"),
                           outputDir=cms.untracked.string(
                               "L1T/L1TStage2CaloLayer2"),
                           numeratorSuffix=cms.untracked.string("_Num"),
                           denominatorSuffix=cms.untracked.string("_Den"),
                           plots=cms.untracked.vstring(allEfficiencyPlots)), ))

l1tStage2CaloLayer2EmuEfficiency = l1tEfficiencyHarvesting.clone(
    plotCfgs=cms.untracked.VPSet(
        cms.untracked.PSet(numeratorDir=cms.untracked.string(
            "L1TEMU/L1TStage2CaloLayer2/efficiency_raw"),
                           outputDir=cms.untracked.string(
                               "L1TEMU/L1TStage2CaloLayer2"),
                           numeratorSuffix=cms.untracked.string("_Num"),
                           denominatorSuffix=cms.untracked.string("_Den"),
                           plots=cms.untracked.vstring(allEfficiencyPlots)), ))
Exemplo n.º 6
0
for plot in plots:
    for threshold in muonEfficiencyThresholds:
        plotName = '{0}_{1}'.format(plot, threshold)
        allEfficiencyPlots.append(plotName)

allEfficiencyPlots_HI = []
for plot in plots:
    for threshold in muonEfficiencyThresholds_HI:
        plotName = '{0}_{1}'.format(plot, threshold)
        allEfficiencyPlots_HI.append(plotName)

from DQMOffline.L1Trigger.L1TEfficiencyHarvesting_cfi import l1tEfficiencyHarvesting
l1tMuonDQMEfficiency = l1tEfficiencyHarvesting.clone(
    plotCfgs=cms.untracked.VPSet(
        cms.untracked.PSet(numeratorDir=cms.untracked.string(
            "L1T/L1TMuon/numerators_and_denominators"),
                           outputDir=cms.untracked.string("L1T/L1TMuon"),
                           numeratorSuffix=cms.untracked.string("_Num"),
                           denominatorSuffix=cms.untracked.string("_Den"),
                           plots=cms.untracked.vstring(allEfficiencyPlots))))

# modifications for the pp reference run
from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(
    l1tMuonDQMEfficiency,
    plotCfgs=cms.untracked.VPSet(
        cms.untracked.PSet(
            numeratorDir=cms.untracked.string(
                "L1T/L1TMuon/numerators_and_denominators"),
            outputDir=cms.untracked.string("L1T/L1TMuon"),
            numeratorSuffix=cms.untracked.string("_Num"),
            denominatorSuffix=cms.untracked.string("_Den"),
Exemplo n.º 7
0
allEfficiencyPlots = []
add_plot = allEfficiencyPlots.append
for variable, thresholds in variables.iteritems():
    for plot in plots[variable]:
        for threshold in thresholds:
            plotName = '{0}_threshold_{1}'.format(plot, threshold)
            add_plot(plotName)

from DQMOffline.L1Trigger.L1TEfficiencyHarvesting_cfi import l1tEfficiencyHarvesting
l1tTauEfficiency = l1tEfficiencyHarvesting.clone(
    plotCfgs=cms.untracked.VPSet(
        cms.untracked.PSet(
            numeratorDir=cms.untracked.string("L1T/L1TObjects/L1TTau/L1TriggerVsReco/efficiency_raw"),
            outputDir=cms.untracked.string("L1T/L1TObjects/L1TTau/L1TriggerVsReco"),
            numeratorSuffix=cms.untracked.string("_Num"),
            denominatorSuffix=cms.untracked.string("_Den"),
            plots=cms.untracked.vstring(allEfficiencyPlots),

        ),
    )
)

l1tTauEmuEfficiency = l1tEfficiencyHarvesting.clone(
    plotCfgs=cms.untracked.VPSet(
        cms.untracked.PSet(
            numeratorDir=cms.untracked.string(
                "L1TEMU/L1TObjects/L1TTau/L1TriggerVsReco/efficiency_raw"),
            outputDir=cms.untracked.string("L1TEMU/L1TObjects/L1TTau/L1TriggerVsReco"),
            numeratorSuffix=cms.untracked.string("_Num"),
            denominatorSuffix=cms.untracked.string("_Den"),
            plots=cms.untracked.vstring(allEfficiencyPlots),
Exemplo n.º 8
0
            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(
        cms.untracked.PSet(
            numeratorDir=cms.untracked.string("L1T/L1TEGamma/efficiency_raw"),
            outputDir=cms.untracked.string("L1T/L1TEGamma"),
            numeratorSuffix=cms.untracked.string("_Num"),
            denominatorSuffix=cms.untracked.string("_Den"),
            plots=cms.untracked.vstring(allEfficiencyPlots)
        ),
    )
)

l1tEGammaEmuEfficiency = l1tEfficiencyHarvesting.clone(
    plotCfgs=cms.untracked.VPSet(
        cms.untracked.PSet(
            numeratorDir=cms.untracked.string(
                "L1TEMU/L1TEGamma/efficiency_raw"),
            outputDir=cms.untracked.string("L1TEMU/L1TEGamma"),
            numeratorSuffix=cms.untracked.string("_Num"),
            denominatorSuffix=cms.untracked.string("_Den"),
            plots=cms.untracked.vstring(allEfficiencyPlots)