1 import FWCore.ParameterSet.Config
as cms
10 kinematicSelectedTauValDenominatorQCD = cms.EDFilter(
12 src = cms.InputTag(
'ak4GenJets'),
13 cut = kinematicSelectedTauValDenominatorCut,
14 filter = cms.bool(
False)
18 procAttributes =
dir(proc)
21 helpers.massSearchReplaceAnyInputTag(proc.TauValNumeratorAndDenominatorQCD,
'kinematicSelectedTauValDenominator',
'kinematicSelectedTauValDenominatorQCD')
25 zttModifier = ApplyFunctionToSequence(zttLabeler)
26 proc.TauValNumeratorAndDenominatorQCD.visit(zttModifier)
29 discs_to_retain = [
'ByDecayModeFinding',
'CombinedIsolationDBSumPtCorr3Hits',
'IsolationMVArun2v1DBoldDMwLT',
'IsolationMVArun2v1DBnewDMwLT']
30 proc.RunHPSValidationQCD.discriminators = cms.VPSet([p
for p
in proc.RunHPSValidationQCD.discriminators
if any(disc
in p.discriminator.value()
for disc
in discs_to_retain) ])
33 proc.efficienciesQCD.plots = Utils.SetPlotSequence(proc.TauValNumeratorAndDenominatorQCD)
34 proc.efficienciesQCDSummary = cms.EDProducer(
"TauDQMHistEffProducer",
37 denominator = cms.string(
'RecoTauV/hpsPFTauProducerQCD_Summary/#PAR#PlotDen'),
38 efficiency = cms.string(
'RecoTauV/hpsPFTauProducerQCD_Summary/#PAR#Plot'),
39 numerator = cms.string(
'RecoTauV/hpsPFTauProducerQCD_Summary/#PAR#PlotNum'),
40 parameter = cms.vstring(
'summary'),
41 stepByStep = cms.bool(
True)
47 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'QCD') != -1)]
50 for newAttr
in newProcAttributes:
51 locals()[newAttr] = getattr(proc,newAttr)
54 produceDenominatorQCD = cms.Sequence(
55 kinematicSelectedTauValDenominatorQCD
58 produceDenominator = cms.Sequence(produceDenominatorQCD)
60 runTauValidationBatchMode = cms.Sequence(
62 +TauValNumeratorAndDenominatorQCD
65 runTauValidation = cms.Sequence(
66 runTauValidationBatchMode