Пример #1
0
deepInspectionElectronThresholds_HI = [15]

electronEfficiencyBins_HI = []
electronEfficiencyBins_HI.extend(list(xrange(1, 26, 1)))
electronEfficiencyBins_HI.extend(list(xrange(26, 42, 2)))
electronEfficiencyBins_HI.extend(list(xrange(42, 45, 3)))
electronEfficiencyBins_HI.extend(list(xrange(45, 50, 5)))
electronEfficiencyBins_HI.extend(list(xrange(50, 70, 10)))
electronEfficiencyBins_HI.extend(list(xrange(70, 101, 30)))

photonEfficiencyThresholds_HI = electronEfficiencyThresholds_HI
photonEfficiencyBins_HI = electronEfficiencyBins_HI

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(
    l1tEGammaOfflineDQM,
    TriggerFilter=cms.InputTag('hltEle20WPLoose1GsfTrackIsoFilter', '', 'HLT'),
    TriggerPath=cms.string('HLT_Ele20_WPLoose_Gsf_v4'),
    electronEfficiencyThresholds=cms.vdouble(electronEfficiencyThresholds_HI),
    electronEfficiencyBins=cms.vdouble(electronEfficiencyBins_HI),
    deepInspectionElectronThresholds=cms.vdouble(
        deepInspectionElectronThresholds_HI),
    photonEfficiencyThresholds=cms.vdouble(photonEfficiencyThresholds_HI),
    photonEfficiencyBins=cms.vdouble(photonEfficiencyBins_HI))

# emulator module
l1tEGammaOfflineDQMEmu = l1tEGammaOfflineDQM.clone(
    stage2CaloLayer2EGammaSource=cms.InputTag("simCaloStage2Digis"),
    histFolder=cms.string('L1TEMU/L1TObjects/L1TEGamma/L1TriggerVsReco'),
)
Пример #2
0
            dir2=cms.untracked.string(
                "L1TEMU/L1TObjects/L1TEtSum/L1TriggerVsReco"),
            outputDir=cms.untracked.string(
                "L1TEMU/L1TObjects/L1TEtSum/L1TriggerVsReco/Comparison"),
            plots=cms.untracked.vstring(allPlots)
        ),
    )
)

# modifications for the pp reference run
variables_HI = variables

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

allPlots_HI = []
allPlots_HI.extend(allEfficiencyPlots_HI)
allPlots_HI.extend(resolution_plots)
allPlots_HI.extend(plots2D)

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(
    l1tEtSumEmuDiff,
    plotCfgs={0: dict(plots=allPlots_HI)}
)
Пример #3
0
# emulator module
l1tMuonDQMOfflineEmu = l1tMuonDQMOffline.clone(
    gmtInputTag  = cms.untracked.InputTag("simGmtStage2Digis"),
    histFolder = cms.untracked.string('L1TEMU/L1TObjects/L1TMuon/L1TriggerVsReco')
)

# modifications for the pp reference run
# A list of pt cut + quality cut pairs for which efficiency plots should be made
ptQualCuts_HI = [[12, 12], [7, 8], [5, 4]]
cutsPSets_HI = []
for ptQualCut in ptQualCuts_HI:
    cutsPSets_HI.append(cms.untracked.PSet(ptCut = cms.untracked.int32(ptQualCut[0]),
                                           qualCut = cms.untracked.int32(ptQualCut[1])))
from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tMuonDQMOffline,
    tagPtCut = cms.untracked.double(14.),
    cuts = cms.untracked.VPSet(cutsPSets_HI),
    triggerNames = cms.untracked.vstring(
        "HLT_HIL3Mu12_v*",
    )
)
ppRef_2017.toModify(l1tMuonDQMOfflineEmu,
    tagPtCut = cms.untracked.double(14.),
    cuts = cms.untracked.VPSet(cutsPSets_HI),
    triggerNames = cms.untracked.vstring(
        "HLT_HIL3Mu12_v*",
    )
)


    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)), ))

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

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

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tStage2CaloLayer2Efficiency,
                    plotCfgs={
                        0: dict(plots=allEfficiencyPlots_HI),
                    })
ppRef_2017.toModify(l1tStage2CaloLayer2EmuEfficiency,
                    plotCfgs={
                        0: dict(plots=allEfficiencyPlots_HI),
                    })
Пример #5
0
# modifications for the pp reference run
jetEfficiencyThresholds_HI = [8, 16, 24, 44, 60, 80, 90]
jetEfficiencyBins_HI = []
jetEfficiencyBins_HI.extend(list(range(0, 60, 2)))
jetEfficiencyBins_HI.extend(list(range(60, 90, 5)))
jetEfficiencyBins_HI.extend(list(range(90, 120, 10)))
jetEfficiencyBins_HI.extend(list(range(120, 180, 20)))
jetEfficiencyBins_HI.extend(list(range(180, 300, 40)))
jetEfficiencyBins_HI.extend(list(range(300, 401, 100)))

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017

ppRef_2017.toModify(
    l1tEtSumJetOfflineDQM,
    TriggerFilter=cms.InputTag('hltEle20WPLoose1GsfTrackIsoFilter', '', 'HLT'),
    TriggerPath=cms.string('HLT_Ele20_WPLoose_Gsf_v4'),
    jetEfficiencyThresholds=cms.vdouble(jetEfficiencyThresholds_HI),
    jetEfficiencyBins=cms.vdouble(jetEfficiencyBins_HI),
)

# emulator module
l1tEtSumJetOfflineDQMEmu = l1tEtSumJetOfflineDQM.clone(
    stage2CaloLayer2JetSource="simCaloStage2Digis",
    stage2CaloLayer2EtSumSource="simCaloStage2Digis",
    histFolderEtSum='L1TEMU/L1TObjects/L1TEtSum/L1TriggerVsReco',
    histFolderJet='L1TEMU/L1TObjects/L1TJet/L1TriggerVsReco')

# sequences
l1tEtSumJetOfflineDQMSeq = cms.Sequence(
    cms.ignore(goodPFJetsForL1T) + l1tPFMetNoMuForDQM + l1tEtSumJetOfflineDQM)
        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
for variable, thresholds in variables_HI.iteritems():
    for plot in plots[variable]:
        for threshold in thresholds:
            plotName = '{0}_threshold_{1}'.format(plot, threshold)
            add_plot(plotName)

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tStage2CaloLayer2Efficiency,
    plotCfgs = {
        0:dict(plots = allEfficiencyPlots_HI),
        1:dict(plots = allEfficiencyPlots_HI)
    }
)

Пример #7
0
    'electron': L1TEGammaOffline_cfi.electronEfficiencyThresholds_HI,
    'photon': L1TEGammaOffline_cfi.photonEfficiencyThresholds_HI,
}

deepInspectionThresholds_HI = {
    'electron': L1TEGammaOffline_cfi.deepInspectionElectronThresholds_HI,
    'photon': [],
}

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

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

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tEGammaEfficiency,
    plotCfgs = {
        0:dict(plots = allEfficiencyPlots_HI),
        1:dict(plots = allEfficiencyPlots_HI)
    }
)
Пример #8
0
                effName = effNameVar+"_"+qualStrings[ptQualCut[1]]
                efficiencyStrings.append(effName+" '"+effName+";;L1 muon efficiency' "+effNumName+" "+effDenName)
    return efficiencyStrings

from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
from DQMOffline.L1Trigger.L1TMuonDQMOffline_cfi import ptQualCuts, ptQualCuts_HI

l1tMuonDQMEfficiency = DQMEDHarvester("DQMGenericClient",
    subDirs = cms.untracked.vstring("L1T/L1TObjects/L1TMuon/L1TriggerVsReco/"),
    efficiency = cms.vstring(),
    efficiencyProfile = cms.untracked.vstring(generateEfficiencyStrings(ptQualCuts)),
    resolution = cms.vstring(),
    outputFileName = cms.untracked.string(""),
    verbose = cms.untracked.uint32(0)
)

# emulator efficiency
l1tMuonDQMEmuEfficiency = l1tMuonDQMEfficiency.clone(
    subDirs = cms.untracked.vstring("L1TEMU/L1TObjects/L1TMuon/L1TriggerVsReco/")
)

# modifications for the pp reference run
from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tMuonDQMEfficiency,
    efficiencyProfile = cms.untracked.vstring(generateEfficiencyStrings(ptQualCuts_HI))
)
ppRef_2017.toModify(l1tMuonDQMEmuEfficiency,
    efficiencyProfile = cms.untracked.vstring(generateEfficiencyStrings(ptQualCuts_HI))
)

Пример #9
0
        "HLT_IsoMu18_v*",
        "HLT_IsoMu20_v*",
        "HLT_IsoMu22_v*",
        "HLT_IsoMu24_v*",
        "HLT_IsoMu27_v*",
        "HLT_Mu30_v*",
        "HLT_Mu40_v*"
    ),
    trigInputTag       = cms.untracked.InputTag("hltTriggerSummaryAOD", "", "HLT"),
    trigProcess        = cms.untracked.string("HLT"),
    trigProcess_token  = cms.untracked.InputTag("TriggerResults","","HLT"),

    efficiencyVsPtBins = cms.untracked.vdouble(effVsPtBins),
    efficiencyVsPhiBins = cms.untracked.vdouble(effVsPhiBins),
    efficiencyVsEtaBins = cms.untracked.vdouble(effVsEtaBins),

    verbose   = cms.untracked.bool(False)
)

# modifications for the pp reference run
muonEfficiencyThresholds_HI = [5, 7, 12]
from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tMuonDQMOffline,
    gmtPtCuts = cms.untracked.vint32(muonEfficiencyThresholds_HI),
    tagPtCut = cms.untracked.double(14.),
    triggerNames = cms.untracked.vstring(
        "HLT_HIL3Mu12_v*",
    )
)

Пример #10
0
            outputDir=cms.untracked.string("L1TEMU/L1TObjects/L1TEtSum/L1TriggerVsReco"),
            numeratorSuffix=cms.untracked.string("_Num"),
            denominatorSuffix=cms.untracked.string("_Den"),
            plots=cms.untracked.vstring(allEfficiencyPlots)
        ),
    )
)

# modifications for the pp reference run
variables_HI = variables

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

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tEtSumEfficiency,
    plotCfgs = {
        0:dict(plots = allEfficiencyPlots_HI),
    }
)
ppRef_2017.toModify(l1tEtSumEmuEfficiency,
    plotCfgs = {
        0:dict(plots = allEfficiencyPlots_HI),
    }
)
Пример #11
0
}


from DQMOffline.L1Trigger.L1TCommon import generateEfficiencyStrings

efficiencyStrings = list(generateEfficiencyStrings(variables, plots))

from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
l1tEtSumEfficiency = DQMEDHarvester(
    "DQMGenericClient",
    commands=cms.vstring(),
    resolution=cms.vstring(),
    subDirs=cms.untracked.vstring('L1T/L1TObjects/L1TEtSum/L1TriggerVsReco'),
    efficiency=cms.vstring(),
    efficiencyProfile=cms.untracked.vstring(efficiencyStrings),
)

l1tEtSumEmuEfficiency = l1tEtSumEfficiency.clone(
    subDirs=cms.untracked.vstring(
        'L1TEMU/L1TObjects/L1TEtSum/L1TriggerVsReco'),
)

# modifications for the pp reference run
variables_HI = variables

efficiencyStrings_HI = list(generateEfficiencyStrings(variables_HI, plots))

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tEtSumEfficiency, efficiencyProfile=efficiencyStrings_HI)
ppRef_2017.toModify(l1tEtSumEmuEfficiency, efficiencyProfile=efficiencyStrings_HI)
Пример #12
0
electronEfficiencyBins_HI = []
electronEfficiencyBins_HI.extend(list(xrange(1, 26, 1)))
electronEfficiencyBins_HI.extend(list(xrange(26, 42, 2)))
electronEfficiencyBins_HI.extend(list(xrange(42, 45, 3)))
electronEfficiencyBins_HI.extend(list(xrange(45, 50, 5)))
electronEfficiencyBins_HI.extend(list(xrange(50, 70, 10)))
electronEfficiencyBins_HI.extend(list(xrange(70, 101, 30)))

photonEfficiencyThresholds_HI = electronEfficiencyThresholds_HI
photonEfficiencyBins_HI = electronEfficiencyBins_HI

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tEGammaOfflineDQM,
    TriggerFilter=cms.InputTag('hltEle20WPLoose1GsfTrackIsoFilter', '', 'HLT'),
    TriggerPath=cms.string('HLT_Ele20_WPLoose_Gsf_v4'),
    electronEfficiencyThresholds=cms.vdouble(electronEfficiencyThresholds_HI),
    electronEfficiencyBins=cms.vdouble(electronEfficiencyBins_HI),
    deepInspectionElectronThresholds=cms.vdouble(deepInspectionElectronThresholds_HI),
    photonEfficiencyThresholds=cms.vdouble(photonEfficiencyThresholds_HI),
    photonEfficiencyBins=cms.vdouble(photonEfficiencyBins_HI)
)

# emulator module
l1tEGammaOfflineDQMEmu = l1tEGammaOfflineDQM.clone(
    stage2CaloLayer2EGammaSource=cms.InputTag("simCaloStage2Digis"),

    histFolder=cms.string('L1TEMU/L1TEGamma'),
)

Пример #13
0
    'electron': L1TEGammaOffline_cfi.electronEfficiencyThresholds_HI,
    'photon': L1TEGammaOffline_cfi.photonEfficiencyThresholds_HI,
}

deepInspectionThresholds_HI = {
    'electron': L1TEGammaOffline_cfi.deepInspectionElectronThresholds_HI,
    'photon': [],
}

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

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

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017

ppRef_2017.toModify(l1tEGammaEfficiency,
                    plotCfgs={
                        0: dict(plots=allEfficiencyPlots_HI),
                        1: dict(plots=allEfficiencyPlots_HI)
                    })
Пример #14
0
l1tStage2CaloLayer2EmuDiff = l1tDiffHarvesting.clone(
    plotCfgs=cms.untracked.VPSet(
        cms.untracked.PSet(  # EMU comparison
            dir1=cms.untracked.string("L1T/L1TStage2CaloLayer2"),
            dir2=cms.untracked.string("L1TEMU/L1TStage2CaloLayer2"),
            outputDir=cms.untracked.string(
                "L1TEMU/L1TStage2CaloLayer2/Comparison"),
            plots=cms.untracked.vstring(allPlots)), ))

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

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

allPlots_HI = []
allPlots_HI.extend(allEfficiencyPlots_HI)
allPlots_HI.extend(resolution_plots)
allPlots_HI.extend(plots2D)

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tStage2CaloLayer2EmuDiff,
                    plotCfgs={0: dict(plots=allPlots_HI)})
Пример #15
0
            "atVertex"),  # 'innermost' and 'outermost' require the TrackExtra
        useSimpleGeometry=cms.bool(True),
        useStation2=cms.bool(True),
        fallbackToME1=cms.bool(False),
    ),
    verbose=cms.untracked.bool(False))

# emulator module
l1tMuonDQMOfflineEmu = l1tMuonDQMOffline.clone(
    gmtInputTag=cms.untracked.InputTag("simGmtStage2Digis"),
    histFolder=cms.untracked.string(
        'L1TEMU/L1TObjects/L1TMuon/L1TriggerVsReco'))

# modifications for the pp reference run
# A list of pt cut + quality cut pairs for which efficiency plots should be made
ptQualCuts_HI = [[12, 12], [7, 8], [5, 4]]
cutsPSets_HI = []
for ptQualCut in ptQualCuts_HI:
    cutsPSets_HI.append(
        cms.untracked.PSet(ptCut=cms.untracked.int32(ptQualCut[0]),
                           qualCut=cms.untracked.int32(ptQualCut[1])))
from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tMuonDQMOffline,
                    tagPtCut=cms.untracked.double(14.),
                    cuts=cms.untracked.VPSet(cutsPSets_HI),
                    triggerNames=cms.untracked.vstring("HLT_HIL3Mu12_v*", ))
ppRef_2017.toModify(l1tMuonDQMOfflineEmu,
                    tagPtCut=cms.untracked.double(14.),
                    cuts=cms.untracked.VPSet(cutsPSets_HI),
                    triggerNames=cms.untracked.vstring("HLT_HIL3Mu12_v*", ))
Пример #16
0
        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"),
            plots=cms.untracked.vstring(allEfficiencyPlots_HI))))
Пример #17
0
    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
variables_HI = variables
variables_HI['jet'] = L1TStep1.jetEfficiencyThresholds_HI

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

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tJetEfficiency,
                    plotCfgs={
                        0: dict(plots=allEfficiencyPlots_HI),
                    })
ppRef_2017.toModify(l1tJetEmuEfficiency,
                    plotCfgs={
                        0: dict(plots=allEfficiencyPlots_HI),
                    })
        # )
    ),
)

# modifications for the pp reference run
jetEfficiencyThresholds_HI = [8, 16, 24, 44, 60, 80, 90]
jetEfficiencyBins_HI = []
jetEfficiencyBins_HI.extend(list(xrange(0, 60, 2)))
jetEfficiencyBins_HI.extend(list(xrange(60, 90, 5)))
jetEfficiencyBins_HI.extend(list(xrange(90, 120, 10)))
jetEfficiencyBins_HI.extend(list(xrange(120, 180, 20)))
jetEfficiencyBins_HI.extend(list(xrange(180, 300, 40)))
jetEfficiencyBins_HI.extend(list(xrange(300, 401, 100)))

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(
    l1tStage2CaloLayer2OfflineDQM,
    TriggerFilter=cms.InputTag('hltEle20WPLoose1GsfTrackIsoFilter', '', 'HLT'),
    TriggerPath=cms.string('HLT_Ele20_WPLoose_Gsf_v4'),
    jetEfficiencyThresholds=cms.vdouble(jetEfficiencyThresholds_HI),
    jetEfficiencyBins=cms.vdouble(jetEfficiencyBins_HI),
)

# emulator module
l1tStage2CaloLayer2OfflineDQMEmu = l1tStage2CaloLayer2OfflineDQM.clone(
    stage2CaloLayer2JetSource=cms.InputTag("simCaloStage2Digis"),
    stage2CaloLayer2EtSumSource=cms.InputTag("simCaloStage2Digis"),

    histFolder=cms.string('L1TEMU/L1TStage2CaloLayer2'),
)
Пример #19
0
    'ett': ['efficiencyETT'],
    'htt': ['efficiencyHTT'],
}

from DQMOffline.L1Trigger.L1TCommon import generateEfficiencyStrings

efficiencyStrings = list(generateEfficiencyStrings(variables, plots))

from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
l1tEtSumEfficiency = DQMEDHarvester(
    "DQMGenericClient",
    commands=cms.vstring(),
    resolution=cms.vstring(),
    subDirs=cms.untracked.vstring('L1T/L1TObjects/L1TEtSum/L1TriggerVsReco'),
    efficiency=cms.vstring(),
    efficiencyProfile=cms.untracked.vstring(efficiencyStrings),
)

l1tEtSumEmuEfficiency = l1tEtSumEfficiency.clone(
    subDirs=['L1TEMU/L1TObjects/L1TEtSum/L1TriggerVsReco'])

# modifications for the pp reference run
variables_HI = variables

efficiencyStrings_HI = list(generateEfficiencyStrings(variables_HI, plots))

from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
ppRef_2017.toModify(l1tEtSumEfficiency, efficiencyProfile=efficiencyStrings_HI)
ppRef_2017.toModify(l1tEtSumEmuEfficiency,
                    efficiencyProfile=efficiencyStrings_HI)
Пример #20
0
    "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)

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={0: dict(plots=allEfficiencyPlots_HI)})