CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
boostedHPSPFTaus_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import copy
3 
4 '''
5 
6 Sequences for reconstructing boosted taus using the HPS algorithm
7 
8 '''
9 
10 import CommonTools.ParticleFlow.pfNoPileUp_cff as boostedTaus
11 pfPileUpForBoostedTaus = boostedTaus.pfPileUp.clone(
12  PFCandidates = cms.InputTag('particleFlow'),
13  checkClosestZVertex = cms.bool(False)
14 )
15 pfNoPileUpForBoostedTaus = boostedTaus.pfNoPileUp.clone(
16  topCollection = cms.InputTag('pfPileUpForBoostedTaus'),
17  bottomCollection = cms.InputTag('particleFlow')
18 )
19 
20 ##import RecoJets.JetProducers.ak4PFJetsPruned_cfi as boostedTaus2
21 import RecoJets.JetProducers.ak4PFJets_cfi as boostedTaus2
22 import RecoJets.JetProducers.CMSBoostedTauSeedingParameters_cfi as boostedTaus3
23 ##ca8PFJetsCHSprunedForBoostedTaus = boostedTaus2.ak4PFJetsPruned.clone(
24 ca8PFJetsCHSprunedForBoostedTaus = boostedTaus2.ak4PFJets.clone(
25  boostedTaus3.CMSBoostedTauSeedingParameters,
26  src = cms.InputTag('pfNoPileUpForBoostedTaus'),
27  jetPtMin = cms.double(10.0),
28  doAreaFastjet = cms.bool(True),
29  nFilt = cms.int32(4),
30  rParam = cms.double(0.8),
31  jetAlgorithm = cms.string("CambridgeAachen"),
32  writeCompound = cms.bool(True),
33  jetCollInstanceName = cms.string('subJetsForSeedingBoostedTaus')
34 )
35 
36 boostedTauSeeds = cms.EDProducer("BoostedTauSeedsProducer",
37  subjetSrc = cms.InputTag('ca8PFJetsCHSprunedForBoostedTaus', 'subJetsForSeedingBoostedTaus'),
38  pfCandidateSrc = cms.InputTag('particleFlow'),
39  verbosity = cms.int32(0)
40 )
41 
43 recoTauAK4PFJets08Region.src = cms.InputTag('boostedTauSeeds')
44 recoTauAK4PFJets08Region.pfCandSrc = cms.InputTag('pfNoPileUpForBoostedTaus')
45 recoTauAK4PFJets08Region.pfCandAssocMapSrc = cms.InputTag('boostedTauSeeds', 'pfCandAssocMapForIsolation')
46 
47 ak4PFJetsLegacyHPSPiZeros.jetSrc = cms.InputTag('boostedTauSeeds')
48 
49 ak4PFJetsRecoTauChargedHadrons.jetSrc = cms.InputTag('boostedTauSeeds')
50 ak4PFJetsRecoTauChargedHadrons.builders[1].dRcone = cms.double(0.3)
51 ak4PFJetsRecoTauChargedHadrons.builders[1].dRconeLimitedToJetArea = cms.bool(True)
52 
53 combinatoricRecoTaus.jetSrc = cms.InputTag('boostedTauSeeds')
54 combinatoricRecoTaus.builders[0].pfCandSrc = cms.InputTag('pfNoPileUpForBoostedTaus')
55 combinatoricRecoTaus.modifiers.remove(combinatoricRecoTaus.modifiers[3])
56 
57 hpsPFTauDiscriminationByLooseMuonRejection3.dRmuonMatch = cms.double(0.3)
58 hpsPFTauDiscriminationByLooseMuonRejection3.dRmuonMatchLimitedToJetArea = cms.bool(True)
59 hpsPFTauDiscriminationByTightMuonRejection3.dRmuonMatch = cms.double(0.3)
60 hpsPFTauDiscriminationByTightMuonRejection3.dRmuonMatchLimitedToJetArea = cms.bool(True)
61 
62 produceAndDiscriminateBoostedHPSPFTaus = cms.Sequence(
63  pfPileUpForBoostedTaus*
64  pfNoPileUpForBoostedTaus*
65  ca8PFJetsCHSprunedForBoostedTaus*
66  boostedTauSeeds*
67  PFTau
68 )
69