1 import FWCore.ParameterSet.Config
as cms
9 objectTypeSelectedTauValDenominatorModuleZTT = cms.EDFilter(
"TauGenJetDecayModeSelector",
10 src = cms.InputTag(
"tauGenJets"),
11 select = cms.vstring(
'oneProng0Pi0',
'oneProng1Pi0',
'oneProng2Pi0',
'oneProngOther',
12 'threeProng0Pi0',
'threeProng1Pi0',
'threeProngOther',
'rare'),
13 filter = cms.bool(
False)
17 kinematicSelectedTauValDenominatorZTT = cms.EDFilter(
19 src = cms.InputTag(
'objectTypeSelectedTauValDenominatorModuleZTT'),
20 cut = kinematicSelectedTauValDenominatorCut,
21 filter = cms.bool(
False)
24 procAttributes =
dir(proc)
27 helpers.massSearchReplaceAnyInputTag(proc.TauValNumeratorAndDenominatorZTT,
'kinematicSelectedTauValDenominator',
'kinematicSelectedTauValDenominatorZTT')
31 zttModifier = ApplyFunctionToSequence(zttLabeler)
32 proc.TauValNumeratorAndDenominatorZTT.visit(zttModifier)
35 proc.efficienciesZTT.plots = Utils.SetPlotSequence(proc.TauValNumeratorAndDenominatorZTT)
38 newProcAttributes =
filter(
lambda x: (x
not in procAttributes)
and (x.find(
'ZTT') != -1),
dir(proc) )
41 for newAttr
in newProcAttributes:
42 locals()[newAttr] = getattr(proc,newAttr)
44 produceDenominatorZTT = cms.Sequence(
46 +objectTypeSelectedTauValDenominatorModuleZTT
47 +kinematicSelectedTauValDenominatorZTT
50 produceDenominator = cms.Sequence(produceDenominatorZTT)
52 runTauValidationBatchMode = cms.Sequence(
54 +TauValNumeratorAndDenominatorZTT
57 runTauValidation = cms.Sequence(
58 runTauValidationBatchMode
def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False)
def SetValidationExtention(module, extension)