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