1 import FWCore.ParameterSet.Config
as cms
12 selectElectrons = cms.EDProducer(
14 src = cms.InputTag(
"genParticles"),
22 selectStableElectrons = genParticlesForJets.clone(src = cms.InputTag(
"selectElectrons"))
27 kinematicSelectedTauValDenominatorZEE = cms.EDFilter(
29 src = cms.InputTag(
'selectStableElectrons'),
30 cut = kinematicSelectedTauValDenominatorCut,
31 filter = cms.bool(
False)
34 procAttributes =
dir(proc)
37 helpers.massSearchReplaceAnyInputTag(proc.TauValNumeratorAndDenominatorZEE,
'kinematicSelectedTauValDenominator',
'kinematicSelectedTauValDenominatorZEE')
41 zttModifier = ApplyFunctionToSequence(zttLabeler)
42 proc.TauValNumeratorAndDenominatorZEE.visit(zttModifier)
45 discs_to_retain = [
'ByDecayModeFinding',
'ElectronRejection']
46 proc.RunHPSValidationZEE.discriminators = cms.VPSet([p
for p
in proc.RunHPSValidationZEE.discriminators
if any(disc
in p.discriminator.value()
for disc
in discs_to_retain) ])
49 proc.efficienciesZEE.plots = Utils.SetPlotSequence(proc.TauValNumeratorAndDenominatorZEE)
50 proc.efficienciesZEESummary = cms.EDProducer(
"TauDQMHistEffProducer",
53 denominator = cms.string(
'RecoTauV/hpsPFTauProducerZEE_Summary/#PAR#PlotDen'),
54 efficiency = cms.string(
'RecoTauV/hpsPFTauProducerZEE_Summary/#PAR#Plot'),
55 numerator = cms.string(
'RecoTauV/hpsPFTauProducerZEE_Summary/#PAR#PlotNum'),
56 parameter = cms.vstring(
'summary'),
57 stepByStep = cms.bool(
True)
63 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'ZEE') != -1)]
66 for newAttr
in newProcAttributes:
67 locals()[newAttr] = getattr(proc,newAttr)
69 produceDenominatorZEE = cms.Sequence(
71 selectStableElectrons*
72 kinematicSelectedTauValDenominatorZEE
75 produceDenominator = cms.Sequence(produceDenominatorZEE)
77 runTauValidationBatchMode = cms.Sequence(
78 produceDenominatorZEE*
79 TauValNumeratorAndDenominatorZEE
82 runTauValidation = cms.Sequence(
83 runTauValidationBatchMode*