1 import FWCore.ParameterSet.Config
as cms
3 patTaus = cms.EDProducer(
"PATTauProducer",
5 tauSource = cms.InputTag(
"hpsPFTauProducer"),
6 tauTransverseImpactParameterSource = cms.InputTag(
"hpsPFTauTransverseImpactParameters"),
11 userClasses = cms.PSet(
12 src = cms.VInputTag(
'')
15 userFloats = cms.PSet(
16 src = cms.VInputTag(
'')
20 src = cms.VInputTag(
'')
24 src = cms.VInputTag(
'')
27 userFunctions = cms.vstring(),
28 userFunctionLabels = cms.vstring()
32 addTauJetCorrFactors = cms.bool(
False),
33 tauJetCorrFactorsSource = cms.VInputTag(cms.InputTag(
"patTauJetCorrFactors")),
36 embedLeadTrack = cms.bool(
False),
37 embedSignalTracks = cms.bool(
False),
38 embedIsolationTracks = cms.bool(
False),
40 embedLeadPFCand = cms.bool(
False),
41 embedLeadPFChargedHadrCand = cms.bool(
False),
42 embedLeadPFNeutralCand = cms.bool(
False),
43 embedSignalPFCands = cms.bool(
False),
44 embedSignalPFChargedHadrCands = cms.bool(
False),
45 embedSignalPFNeutralHadrCands = cms.bool(
False),
46 embedSignalPFGammaCands = cms.bool(
False),
47 embedIsolationPFCands = cms.bool(
False),
48 embedIsolationPFChargedHadrCands = cms.bool(
False),
49 embedIsolationPFNeutralHadrCands = cms.bool(
False),
50 embedIsolationPFGammaCands = cms.bool(
False),
53 isoDeposits = cms.PSet(),
58 userIsolation = cms.PSet(),
61 addTauID = cms.bool(
True),
62 tauIDSources = cms.PSet(
66 decayModeFinding = cms.InputTag(
"hpsPFTauDiscriminationByDecayModeFinding"),
67 decayModeFindingNewDMs =cms.InputTag(
"hpsPFTauDiscriminationByDecayModeFindingNewDMs"),
68 chargedIsoPtSum = cms.InputTag(
"hpsPFTauChargedIsoPtSum"),
69 neutralIsoPtSum = cms.InputTag(
"hpsPFTauNeutralIsoPtSum"),
70 puCorrPtSum = cms.InputTag(
"hpsPFTauPUcorrPtSum"),
71 neutralIsoPtSumWeight = cms.InputTag(
"hpsPFTauNeutralIsoPtSumWeight"),
72 footprintCorrection = cms.InputTag(
"hpsPFTauFootprintCorrection"),
73 photonPtSumOutsideSignalCone = cms.InputTag(
"hpsPFTauPhotonPtSumOutsideSignalCone"),
74 againstMuonLoose3 = cms.InputTag(
"hpsPFTauDiscriminationByLooseMuonRejection3"),
75 againstMuonTight3 = cms.InputTag(
"hpsPFTauDiscriminationByTightMuonRejection3"),
76 byLooseCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag(
"hpsPFTauDiscriminationByLooseCombinedIsolationDBSumPtCorr3Hits"),
77 byMediumCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag(
"hpsPFTauDiscriminationByMediumCombinedIsolationDBSumPtCorr3Hits"),
78 byTightCombinedIsolationDeltaBetaCorr3Hits = cms.InputTag(
"hpsPFTauDiscriminationByTightCombinedIsolationDBSumPtCorr3Hits"),
79 byCombinedIsolationDeltaBetaCorrRaw3Hits = cms.InputTag(
"hpsPFTauDiscriminationByRawCombinedIsolationDBSumPtCorr3Hits"),
80 byPhotonPtSumOutsideSignalCone = cms.InputTag(
"hpsPFTauDiscriminationByPhotonPtSumOutsideSignalCone"),
81 byIsolationMVArun2v1DBoldDMwLTraw = cms.InputTag(
"hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLTraw"),
82 byVLooseIsolationMVArun2v1DBoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBoldDMwLT"),
83 byLooseIsolationMVArun2v1DBoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBoldDMwLT"),
84 byMediumIsolationMVArun2v1DBoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBoldDMwLT"),
85 byTightIsolationMVArun2v1DBoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByTightIsolationMVArun2v1DBoldDMwLT"),
86 byVTightIsolationMVArun2v1DBoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBoldDMwLT"),
87 byVVTightIsolationMVArun2v1DBoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBoldDMwLT"),
88 byIsolationMVArun2v1DBnewDMwLTraw = cms.InputTag(
"hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLTraw"),
89 byVLooseIsolationMVArun2v1DBnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBnewDMwLT"),
90 byLooseIsolationMVArun2v1DBnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBnewDMwLT"),
91 byMediumIsolationMVArun2v1DBnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBnewDMwLT"),
92 byTightIsolationMVArun2v1DBnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByTightIsolationMVArun2v1DBnewDMwLT"),
93 byVTightIsolationMVArun2v1DBnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBnewDMwLT"),
94 byVVTightIsolationMVArun2v1DBnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBnewDMwLT"),
95 byIsolationMVArun2v1PWoldDMwLTraw = cms.InputTag(
"hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLTraw"),
96 byVLooseIsolationMVArun2v1PWoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWoldDMwLT"),
97 byLooseIsolationMVArun2v1PWoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWoldDMwLT"),
98 byMediumIsolationMVArun2v1PWoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWoldDMwLT"),
99 byTightIsolationMVArun2v1PWoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByTightIsolationMVArun2v1PWoldDMwLT"),
100 byVTightIsolationMVArun2v1PWoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWoldDMwLT"),
101 byVVTightIsolationMVArun2v1PWoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWoldDMwLT"),
102 byIsolationMVArun2v1PWnewDMwLTraw = cms.InputTag(
"hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLTraw"),
103 byVLooseIsolationMVArun2v1PWnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWnewDMwLT"),
104 byLooseIsolationMVArun2v1PWnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWnewDMwLT"),
105 byMediumIsolationMVArun2v1PWnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWnewDMwLT"),
106 byTightIsolationMVArun2v1PWnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByTightIsolationMVArun2v1PWnewDMwLT"),
107 byVTightIsolationMVArun2v1PWnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWnewDMwLT"),
108 byVVTightIsolationMVArun2v1PWnewDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWnewDMwLT"),
109 chargedIsoPtSumdR03 = cms.InputTag(
"hpsPFTauChargedIsoPtSumdR03"),
110 neutralIsoPtSumdR03 = cms.InputTag(
"hpsPFTauNeutralIsoPtSumdR03"),
111 neutralIsoPtSumWeightdR03 = cms.InputTag(
"hpsPFTauNeutralIsoPtSumWeightdR03"),
112 footprintCorrectiondR03 = cms.InputTag(
"hpsPFTauFootprintCorrectiondR03"),
113 photonPtSumOutsideSignalConedR03 = cms.InputTag(
"hpsPFTauPhotonPtSumOutsideSignalConedR03"),
114 byIsolationMVArun2v1DBdR03oldDMwLTraw = cms.InputTag(
"hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLTraw"),
115 byVLooseIsolationMVArun2v1DBdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVLooseIsolationMVArun2v1DBdR03oldDMwLT"),
116 byLooseIsolationMVArun2v1DBdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByLooseIsolationMVArun2v1DBdR03oldDMwLT"),
117 byMediumIsolationMVArun2v1DBdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByMediumIsolationMVArun2v1DBdR03oldDMwLT"),
118 byTightIsolationMVArun2v1DBdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByTightIsolationMVArun2v1DBdR03oldDMwLT"),
119 byVTightIsolationMVArun2v1DBdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVTightIsolationMVArun2v1DBdR03oldDMwLT"),
120 byVVTightIsolationMVArun2v1DBdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVVTightIsolationMVArun2v1DBdR03oldDMwLT"),
121 byIsolationMVArun2v1PWdR03oldDMwLTraw = cms.InputTag(
"hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLTraw"),
122 byVLooseIsolationMVArun2v1PWdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVLooseIsolationMVArun2v1PWdR03oldDMwLT"),
123 byLooseIsolationMVArun2v1PWdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByLooseIsolationMVArun2v1PWdR03oldDMwLT"),
124 byMediumIsolationMVArun2v1PWdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByMediumIsolationMVArun2v1PWdR03oldDMwLT"),
125 byTightIsolationMVArun2v1PWdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByTightIsolationMVArun2v1PWdR03oldDMwLT"),
126 byVTightIsolationMVArun2v1PWdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVTightIsolationMVArun2v1PWdR03oldDMwLT"),
127 byVVTightIsolationMVArun2v1PWdR03oldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVVTightIsolationMVArun2v1PWdR03oldDMwLT"),
128 againstElectronMVA6Raw = cms.InputTag(
"hpsPFTauDiscriminationByMVA6rawElectronRejection"),
129 againstElectronMVA6category = cms.InputTag(
"hpsPFTauDiscriminationByMVA6rawElectronRejection:category"),
130 againstElectronVLooseMVA6 = cms.InputTag(
"hpsPFTauDiscriminationByMVA6VLooseElectronRejection"),
131 againstElectronLooseMVA6 = cms.InputTag(
"hpsPFTauDiscriminationByMVA6LooseElectronRejection"),
132 againstElectronMediumMVA6 = cms.InputTag(
"hpsPFTauDiscriminationByMVA6MediumElectronRejection"),
133 againstElectronTightMVA6 = cms.InputTag(
"hpsPFTauDiscriminationByMVA6TightElectronRejection"),
134 againstElectronVTightMVA6 = cms.InputTag(
"hpsPFTauDiscriminationByMVA6VTightElectronRejection"),
136 skipMissingTauID = cms.bool(
False),
138 addGenMatch = cms.bool(
True),
139 embedGenMatch = cms.bool(
True),
140 genParticleMatch = cms.InputTag(
"tauMatch"),
141 addGenJetMatch = cms.bool(
True),
142 embedGenJetMatch = cms.bool(
True),
143 genJetMatch = cms.InputTag(
"tauGenJetMatch"),
146 addEfficiencies = cms.bool(
False),
147 efficiencies = cms.PSet(),
150 addResolutions = cms.bool(
False),
151 resolutions = cms.PSet()
154 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
155 from Configuration.Eras.Modifier_run2_miniAOD_94XFall17_cff
import run2_miniAOD_94XFall17
156 for era
in [ run2_miniAOD_80XLegacy, run2_miniAOD_94XFall17]:
157 _extTauIDSources = patTaus.tauIDSources.clone()
158 _extTauIDSources.byVVLooseIsolationMVArun2v1DBoldDMwLT = cms.InputTag(
"hpsPFTauDiscriminationByVVLooseIsolationMVArun2v1DBoldDMwLT")
159 era.toModify(patTaus, tauIDSources = _extTauIDSources)