CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTauPiZeroProducer_cfi.py
Go to the documentation of this file.
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  massHypothesis = cms.double(0.136),
12  outputSelection = cms.string('pt > 0'),
13  builders = cms.VPSet(
14  #builders.strips
15  builders.modStrips
16  ),
17  ranking = cms.VPSet(
18  ranking.isInStrip
19  )
20 )
21 
22 
23 ak4PFJetsRecoTauGreedyPiZeros = ak4PFJetsLegacyHPSPiZeros.clone(
24  jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
25  massHypothesis = cms.double(0.136),
26  outputSelection = cms.string('pt > 1.5'),
27  builders = cms.VPSet(
28  builders.comboStrips
29  ),
30  ranking = cms.VPSet(
31  ranking.greedy
32  ),
33 )
34 
35 ak4PFJetsRecoTauPiZeros = ak4PFJetsLegacyHPSPiZeros.clone(
36  jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
37  massHypothesis = cms.double(0.136),
38  outputSelection = cms.string('pt > 1.5'),
39  builders = cms.VPSet(
40  builders.combinatoricPhotonPairs,
41  #builders.strips
42  builders.modStrips
43  ),
44  ranking = cms.VPSet(
45  ranking.nearPiZeroMassBarrel, # Prefer pi zeros +- 0.05 GeV correct mass
46  ranking.nearPiZeroMassEndcap,
47  ranking.isInStrip # Allow incorrect masses if in strip
48  ),
49 )
50 
51 ak4PFJetsLegacyTaNCPiZeros = ak4PFJetsLegacyHPSPiZeros.clone(
52  jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
53  massHypothesis = cms.double(0.136),
54  outputSelection = cms.string('pt > 1.5'),
55  builders = cms.VPSet(
56  builders.allSinglePhotons,
57  builders.combinatoricPhotonPairs
58  ),
59  ranking = cms.VPSet(
60  ranking.legacyPFTauDecayModeSelection
61  ),
62 )
63 
64