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 proc.efficienciesZEE.plots = Utils.SetPlotSequence(proc.TauValNumeratorAndDenominatorZEE)
48 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'ZEE') != -1)]
51 for newAttr
in newProcAttributes:
52 locals()[newAttr] = getattr(proc,newAttr)
54 produceDenominatorZEE = cms.Sequence(
56 selectStableElectrons*
57 kinematicSelectedTauValDenominatorZEE
60 produceDenominator = cms.Sequence(produceDenominatorZEE)
62 runTauValidationBatchMode = cms.Sequence(
63 produceDenominatorZEE*
64 TauValNumeratorAndDenominatorZEE
67 runTauValidation = cms.Sequence(
68 runTauValidationBatchMode*
def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False)
def SetValidationExtention(module, extension)