CMS 3D CMS Logo

RecoTauPiZeroProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
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
7 
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'),
15  builders = cms.VPSet(
16  #builders.strips
17  #builders.modStrips
18  builders.modStrips2
19  ),
20  ranking = cms.VPSet(
21  ranking.isInStrip
22  )
23 )
24 phase2_common.toModify(ak4PFJetsLegacyHPSPiZeros,
25  builders = cms.VPSet(builders.modStrips) )
26 
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'),
33  builders = cms.VPSet(
34  builders.comboStrips
35  ),
36  ranking = cms.VPSet(
37  ranking.greedy
38  ),
39 )
40 
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'),
47  builders = cms.VPSet(
48  builders.combinatoricPhotonPairs,
49  #builders.strips
50  #builders.modStrips
51  builders.modStrips2
52  ),
53  ranking = cms.VPSet(
54  ranking.nearPiZeroMassBarrel, # Prefer pi zeros +- 0.05 GeV correct mass
55  ranking.nearPiZeroMassEndcap,
56  ranking.isInStrip # Allow incorrect masses if in strip
57  ),
58 )
59 
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'),
66  builders = cms.VPSet(
67  builders.allSinglePhotons,
68  builders.combinatoricPhotonPairs
69  ),
70  ranking = cms.VPSet(
71  ranking.legacyPFTauDecayModeSelection
72  ),
73 )