1 import FWCore.ParameterSet.Config
as cms
12 selectMuons = cms.EDProducer(
14 src = cms.InputTag(
"genParticles"),
22 selectStableMuons = genParticlesForJets.clone(src = cms.InputTag(
"selectMuons"))
24 kinematicSelectedTauValDenominatorZMM = cms.EDFilter(
26 src = cms.InputTag(
'selectStableMuons'),
27 cut = kinematicSelectedTauValDenominatorCut,
28 filter = cms.bool(
False)
31 procAttributes =
dir(proc)
34 helpers.massSearchReplaceAnyInputTag(proc.TauValNumeratorAndDenominatorZMM,
'kinematicSelectedTauValDenominator',
'kinematicSelectedTauValDenominatorZMM')
38 zttModifier = ApplyFunctionToSequence(zttLabeler)
39 proc.TauValNumeratorAndDenominatorZMM.visit(zttModifier)
42 discs_to_retain = [
'ByDecayModeFinding',
'MuonRejection']
43 proc.RunHPSValidationZMM.discriminators = cms.VPSet([p
for p
in proc.RunHPSValidationZMM.discriminators
if any(disc
in p.discriminator.value()
for disc
in discs_to_retain) ])
46 proc.efficienciesZMM.plots = Utils.SetPlotSequence(proc.TauValNumeratorAndDenominatorZMM)
47 proc.efficienciesZMMSummary = cms.EDProducer(
"TauDQMHistEffProducer",
50 denominator = cms.string(
'RecoTauV/hpsPFTauProducerZMM_Summary/#PAR#PlotDen'),
51 efficiency = cms.string(
'RecoTauV/hpsPFTauProducerZMM_Summary/#PAR#Plot'),
52 numerator = cms.string(
'RecoTauV/hpsPFTauProducerZMM_Summary/#PAR#PlotNum'),
53 parameter = cms.vstring(
'summary'),
54 stepByStep = cms.bool(
True)
60 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'ZMM') != -1)]
63 for newAttr
in newProcAttributes:
64 locals()[newAttr] = getattr(proc,newAttr)
66 produceDenominatorZMM = cms.Sequence(
70 +kinematicSelectedTauValDenominatorZMM
73 produceDenominator = cms.Sequence(produceDenominatorZMM)
75 runTauValidationBatchMode = cms.Sequence(
77 +TauValNumeratorAndDenominatorZMM
80 runTauValidation = cms.Sequence(
81 runTauValidationBatchMode