1 import FWCore.ParameterSet.Config
as cms
3 import RecoTauTag.RecoTau.RecoTauPiZeroBuilderPlugins_cfi
as builders
4 import RecoTauTag.RecoTau.RecoTauPiZeroQualityPlugins_cfi
as ranking
5 from RecoTauTag.RecoTau.PFRecoTauPFJetInputs_cfi
import PFRecoTauPFJetInputs
6 from Configuration.Eras.Modifier_phase2_common_cff
import phase2_common
8 ak4PFJetsLegacyHPSPiZeros = cms.EDProducer(
9 "RecoTauPiZeroProducer",
10 jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
11 minJetPt = PFRecoTauPFJetInputs.minJetPt,
12 maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
13 massHypothesis = cms.double(0.136),
14 outputSelection = cms.string(
'pt > 0'),
24 phase2_common.toModify(ak4PFJetsLegacyHPSPiZeros,
25 builders = cms.VPSet(builders.modStrips) )
27 ak4PFJetsRecoTauGreedyPiZeros = ak4PFJetsLegacyHPSPiZeros.clone(
28 jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
29 minJetPt = PFRecoTauPFJetInputs.minJetPt,
30 maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
31 massHypothesis = cms.double(0.136),
32 outputSelection = cms.string(
'pt > 1.5'),
41 ak4PFJetsRecoTauPiZeros = ak4PFJetsLegacyHPSPiZeros.clone(
42 jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
43 minJetPt = PFRecoTauPFJetInputs.minJetPt,
44 maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
45 massHypothesis = cms.double(0.136),
46 outputSelection = cms.string(
'pt > 1.5'),
48 builders.combinatoricPhotonPairs,
54 ranking.nearPiZeroMassBarrel,
55 ranking.nearPiZeroMassEndcap,
60 ak4PFJetsLegacyTaNCPiZeros = ak4PFJetsLegacyHPSPiZeros.clone(
61 jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
62 minJetPt = PFRecoTauPFJetInputs.minJetPt,
63 maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
64 massHypothesis = cms.double(0.136),
65 outputSelection = cms.string(
'pt > 1.5'),
67 builders.allSinglePhotons,
68 builders.combinatoricPhotonPairs
71 ranking.legacyPFTauDecayModeSelection