2 import FWCore.ParameterSet.Config
as cms
4 from RecoTauTag.RecoTau.PFRecoTauEnergyAlgorithmPlugin_cfi
import pfTauEnergyAlgorithmPlugin
5 from RecoTauTag.RecoTau.PFRecoTauPFJetInputs_cfi
import PFRecoTauPFJetInputs
8 Configuration for combinatoric PFTau producer plugins. 10 Note that this plugin produces many taus for each PFJet! 11 To be useful the output from this module must be cleaned 12 using an implementation of the RecoTauCleaner module. 14 Author: Evan K. Friis, UC Davis 28 combinatoricDecayModeConfigs = cms.PSet(
29 config1prong0pi0 = cms.PSet(
31 nCharged = cms.uint32(1),
32 nPiZeros = cms.uint32(0),
33 maxTracks = cms.uint32(6),
34 maxPiZeros = cms.uint32(0),
36 config1prong1pi0 = cms.PSet(
38 nCharged = cms.uint32(1),
39 nPiZeros = cms.uint32(1),
40 maxTracks = cms.uint32(6),
41 maxPiZeros = cms.uint32(6),
43 config1prong2pi0 = cms.PSet(
45 nCharged = cms.uint32(1),
46 nPiZeros = cms.uint32(2),
47 maxTracks = cms.uint32(6),
48 maxPiZeros = cms.uint32(5),
50 config2prong0pi0 = cms.PSet(
52 nCharged = cms.uint32(2),
53 nPiZeros = cms.uint32(0),
54 maxTracks = cms.uint32(6),
55 maxPiZeros = cms.uint32(0),
57 config2prong1pi0 = cms.PSet(
59 nCharged = cms.uint32(2),
60 nPiZeros = cms.uint32(1),
61 maxTracks = cms.uint32(6),
62 maxPiZeros = cms.uint32(3),
64 config3prong0pi0 = cms.PSet(
66 nCharged = cms.uint32(3),
67 nPiZeros = cms.uint32(0),
68 maxTracks = cms.uint32(6),
69 maxPiZeros = cms.uint32(0),
71 config3prong1pi0 = cms.PSet(
73 nCharged = cms.uint32(3),
74 nPiZeros = cms.uint32(1),
75 maxTracks = cms.uint32(6),
76 maxPiZeros = cms.uint32(3),
80 combinatoricModifierConfigs = [
82 name = cms.string(
"sipt"),
83 plugin = cms.string(
"RecoTauImpactParameterSignificancePlugin"),
84 qualityCuts = PFTauQualityCuts,
88 name = cms.string(
"elec_rej"),
89 plugin = cms.string(
"RecoTauElectronRejectionPlugin"),
91 ElectronPreIDProducer = cms.InputTag(
"elecpreid"),
92 EcalStripSumE_deltaPhiOverQ_minValue = cms.double(-0.1),
93 EcalStripSumE_deltaPhiOverQ_maxValue = cms.double(0.5),
94 EcalStripSumE_minClusEnergy = cms.double(0.1),
95 EcalStripSumE_deltaEta = cms.double(0.03),
96 ElecPreIDLeadTkMatch_maxDR = cms.double(0.01),
97 maximumForElectrionPreIDOutput = cms.double(-0.1),
98 DataType = cms.string(
"AOD"),
104 pfTauEnergyAlgorithmPlugin,
105 name = cms.string(
"tau_en_reconstruction"),
106 plugin = cms.string(
"PFRecoTauEnergyAlgorithmPlugin"),
111 name = cms.string(
"tau_lost_tracks"),
112 trackSrc = cms.InputTag(
"generalTracks"),
113 plugin = cms.string(
"PFRecoTauLostTrackPlugin"),
114 verbosity = cms.int32(0)
118 _combinatoricTauConfig = cms.PSet(
119 name = cms.string(
"combinatoric"),
120 plugin = cms.string(
"RecoTauBuilderCombinatoricPlugin"),
121 pfCandSrc = cms.InputTag(
"particleFlow"),
122 isolationConeSize = PFRecoTauPFJetInputs.isolationConeSize,
123 qualityCuts = PFTauQualityCuts,
124 decayModes = cms.VPSet(
125 combinatoricDecayModeConfigs.config1prong0pi0,
126 combinatoricDecayModeConfigs.config1prong1pi0,
127 combinatoricDecayModeConfigs.config1prong2pi0,
128 combinatoricDecayModeConfigs.config2prong0pi0,
129 combinatoricDecayModeConfigs.config2prong1pi0,
130 combinatoricDecayModeConfigs.config3prong0pi0,
131 combinatoricDecayModeConfigs.config3prong1pi0
133 signalConeSize = cms.string(
"max(min(0.1, 3.0/pt()), 0.05)"),
134 minAbsPhotonSumPt_insideSignalCone = cms.double(2.5),
135 minRelPhotonSumPt_insideSignalCone = cms.double(0.10),
136 minAbsPhotonSumPt_outsideSignalCone = cms.double(1.e+9),
137 minRelPhotonSumPt_outsideSignalCone = cms.double(1.e+9),
138 verbosity = cms.int32(0)
141 combinatoricRecoTaus = cms.EDProducer(
"RecoTauProducer",
142 jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
143 minJetPt = PFRecoTauPFJetInputs.minJetPt,
144 maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
145 jetRegionSrc = cms.InputTag(
"recoTauAK4PFJets08Region"),
146 chargedHadronSrc = cms.InputTag(
'ak4PFJetsRecoTauChargedHadrons'),
147 piZeroSrc = cms.InputTag(
"ak4PFJetsRecoTauPiZeros"),
148 buildNullTaus = cms.bool(
False),
149 outputSelection = cms.string(
"leadChargedHadrCand().isNonnull()"),
152 builders = cms.VPSet(
153 _combinatoricTauConfig
155 modifiers = cms.VPSet(
156 combinatoricModifierConfigs