CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
RecoTauPiZeroProducer_cff.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 RecoTauTag.RecoTau.recoTauPiZeroProducer_cfi import recoTauPiZeroProducer
7 
8 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
9 
10 
11 ak4PFJetsLegacyHPSPiZeros = recoTauPiZeroProducer.clone(
12  jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
13  minJetPt = PFRecoTauPFJetInputs.minJetPt,
14  maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
15  builders = cms.VPSet(
16  builders.modStrips2
17  ),
18  ranking = cms.VPSet(
19  ranking.isInStrip
20  ),
21 )
22 phase2_common.toModify(ak4PFJetsLegacyHPSPiZeros,
23  builders = cms.VPSet(builders.modStrips) )
24 
25 
26 ak4PFJetsRecoTauGreedyPiZeros = recoTauPiZeroProducer.clone(
27  jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
28  minJetPt = PFRecoTauPFJetInputs.minJetPt,
29  maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
30  outputSelection = 'pt > 1.5',
31  builders = cms.VPSet(
32  builders.comboStrips
33  ),
34  ranking = cms.VPSet(
35  ranking.greedy
36  ),
37 )
38 
39 
40 ak4PFJetsRecoTauPiZeros = recoTauPiZeroProducer.clone(
41  jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
42  minJetPt = PFRecoTauPFJetInputs.minJetPt,
43  maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
44  outputSelection = 'pt > 1.5',
45  builders = cms.VPSet(
46  builders.combinatoricPhotonPairs,
47  builders.modStrips2
48  ),
49  ranking = cms.VPSet(
50  ranking.nearPiZeroMassBarrel, # Prefer pi zeros +- 0.05 GeV correct mass
51  ranking.nearPiZeroMassEndcap,
52  ranking.isInStrip # Allow incorrect masses if in strip
53  ),
54 )
55 
56 
57 ak4PFJetsLegacyTaNCPiZeros = recoTauPiZeroProducer.clone(
58  jetSrc = PFRecoTauPFJetInputs.inputJetCollection,
59  minJetPt = PFRecoTauPFJetInputs.minJetPt,
60  maxJetAbsEta = PFRecoTauPFJetInputs.maxJetAbsEta,
61  outputSelection = 'pt > 1.5',
62  builders = cms.VPSet(
63  builders.allSinglePhotons,
64  builders.combinatoricPhotonPairs
65  ),
66  ranking = cms.VPSet(
67  ranking.legacyPFTauDecayModeSelection
68  ),
69 )