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 
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 
25 
26 ak4PFJetsRecoTauGreedyPiZeros = ak4PFJetsLegacyHPSPiZeros.clone(
27  jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
28  minJetPt = PFRecoTauPFJetInputs.minJetPt,
29  maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
30  massHypothesis = cms.double(0.136),
31  outputSelection = cms.string('pt > 1.5'),
32  builders = cms.VPSet(
33  builders.comboStrips
34  ),
35  ranking = cms.VPSet(
36  ranking.greedy
37  ),
38 )
39 
40 ak4PFJetsRecoTauPiZeros = ak4PFJetsLegacyHPSPiZeros.clone(
41  jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
42  minJetPt = PFRecoTauPFJetInputs.minJetPt,
43  maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
44  massHypothesis = cms.double(0.136),
45  outputSelection = cms.string('pt > 1.5'),
46  builders = cms.VPSet(
47  builders.combinatoricPhotonPairs,
48  #builders.strips
49  #builders.modStrips
50  builders.modStrips2
51  ),
52  ranking = cms.VPSet(
53  ranking.nearPiZeroMassBarrel, # Prefer pi zeros +- 0.05 GeV correct mass
54  ranking.nearPiZeroMassEndcap,
55  ranking.isInStrip # Allow incorrect masses if in strip
56  ),
57 )
58 
59 ak4PFJetsLegacyTaNCPiZeros = ak4PFJetsLegacyHPSPiZeros.clone(
60  jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
61  minJetPt = PFRecoTauPFJetInputs.minJetPt,
62  maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
63  massHypothesis = cms.double(0.136),
64  outputSelection = cms.string('pt > 1.5'),
65  builders = cms.VPSet(
66  builders.allSinglePhotons,
67  builders.combinatoricPhotonPairs
68  ),
69  ranking = cms.VPSet(
70  ranking.legacyPFTauDecayModeSelection
71  ),
72 )
73 
74