1 import FWCore.ParameterSet.Config
as cms
5 tauIsoDepositPFCandidates = cms.EDProducer(
"CandIsoDepositProducer",
6 src = cms.InputTag(
"hpsPFTauProducer"),
7 MultipleDepositsFlag = cms.bool(
False),
8 trackType = cms.string(
'candidate'),
9 ExtractorPSet = cms.PSet(
11 ComponentName = cms.string(
'PFTauExtractor'),
14 candidateSource = cms.InputTag(
"particleFlow"),
17 DR_Max = cms.double(1.0),
19 DR_Veto = cms.double(0.),
23 Diff_z = cms.double(1.e+4),
26 Diff_r = cms.double(1.e+4),
29 tauSource = cms.InputTag(
"hpsPFTauProducer"),
31 dRmatchPFTau = cms.double(0.1),
33 dRvetoPFTauSignalConeConstituents = cms.double(0.01),
35 DepositLabel = cms.untracked.string(
'')
41 tauIsoDepositPFChargedHadrons = copy.deepcopy(tauIsoDepositPFCandidates)
42 tauIsoDepositPFChargedHadrons.ExtractorPSet.candidateSource = cms.InputTag(
"pfAllChargedHadronsPFBRECO")
43 tauIsoDepositPFChargedHadrons.ExtractorPSet.Diff_z = cms.double(0.2)
44 tauIsoDepositPFChargedHadrons.ExtractorPSet.Diff_r = cms.double(0.1)
47 tauIsoDepositPFNeutralHadrons = copy.deepcopy(tauIsoDepositPFCandidates)
48 tauIsoDepositPFNeutralHadrons.ExtractorPSet.candidateSource = cms.InputTag(
"pfAllNeutralHadronsPFBRECO")
51 tauIsoDepositPFGammas = copy.deepcopy(tauIsoDepositPFCandidates)
52 tauIsoDepositPFGammas.ExtractorPSet.candidateSource = cms.InputTag(
"pfAllPhotonsPFBRECO")
54 patPFTauIsolationTask = cms.Task(
55 tauIsoDepositPFCandidates,
56 tauIsoDepositPFChargedHadrons,
57 tauIsoDepositPFNeutralHadrons,
60 patPFTauIsolation = cms.Sequence(patPFTauIsolationTask)