1 import FWCore.ParameterSet.Config
as cms
8 tauGenJetsForVal = tauGenJets.clone()
11 objectTypeSelectedTauValDenominatorModuleZTT = cms.EDFilter(
"TauGenJetDecayModeSelector",
12 src = cms.InputTag(
"tauGenJetsForVal"),
13 select = cms.vstring(
'oneProng0Pi0',
'oneProng1Pi0',
'oneProng2Pi0',
'oneProngOther',
14 'threeProng0Pi0',
'threeProng1Pi0',
'threeProngOther',
'rare'),
15 filter = cms.bool(
False)
19 kinematicSelectedTauValDenominatorZTT = cms.EDFilter(
21 src = cms.InputTag(
'objectTypeSelectedTauValDenominatorModuleZTT'),
22 cut = kinematicSelectedTauValDenominatorCut,
23 filter = cms.bool(
False)
26 procAttributes =
dir(proc)
29 helpers.massSearchReplaceAnyInputTag(proc.TauValNumeratorAndDenominatorZTT,
'kinematicSelectedTauValDenominator',
'kinematicSelectedTauValDenominatorZTT')
33 zttModifier = ApplyFunctionToSequence(zttLabeler)
34 proc.TauValNumeratorAndDenominatorZTT.visit(zttModifier)
37 discs_to_retain = [
'ByDecayModeFinding',
'CombinedIsolationDBSumPtCorr3Hits',
'IsolationMVArun2v1DBoldDMwLT',
'IsolationMVArun2v1DBnewDMwLT',
'MuonRejection',
'ElectronRejection']
38 proc.RunHPSValidationZTT.discriminators = cms.VPSet([p
for p
in proc.RunHPSValidationZTT.discriminators
if any(disc
in p.discriminator.value()
for disc
in discs_to_retain) ])
41 proc.efficienciesZTT.plots = Utils.SetPlotSequence(proc.TauValNumeratorAndDenominatorZTT)
42 proc.efficienciesZTTSummary = cms.EDProducer(
"TauDQMHistEffProducer",
45 denominator = cms.string(
'RecoTauV/hpsPFTauProducerZTT_Summary/#PAR#PlotDen'),
46 efficiency = cms.string(
'RecoTauV/hpsPFTauProducerZTT_Summary/#PAR#Plot'),
47 numerator = cms.string(
'RecoTauV/hpsPFTauProducerZTT_Summary/#PAR#PlotNum'),
48 parameter = cms.vstring(
'summary'),
49 stepByStep = cms.bool(
True)
55 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'ZTT') != -1)]
58 for newAttr
in newProcAttributes:
59 locals()[newAttr] = getattr(proc,newAttr)
61 produceDenominatorZTT = cms.Sequence(
63 +objectTypeSelectedTauValDenominatorModuleZTT
64 +kinematicSelectedTauValDenominatorZTT
67 produceDenominator = cms.Sequence(produceDenominatorZTT)
69 runTauValidationBatchMode = cms.Sequence(
71 +TauValNumeratorAndDenominatorZTT
74 runTauValidation = cms.Sequence(
75 runTauValidationBatchMode