CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
boostedHPSPFTaus_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 '''
4 
5 Sequences for reconstructing boosted taus using the HPS algorithm
6 
7 '''
8 
9 import CommonTools.ParticleFlow.pfNoPileUp_cff as boostedTaus
10 pfPileUpForBoostedTaus = boostedTaus.pfPileUp.clone(
11  PFCandidates = 'particleFlow',
12  checkClosestZVertex = False
13 )
14 pfNoPileUpForBoostedTaus = boostedTaus.pfNoPileUp.clone(
15  topCollection = 'pfPileUpForBoostedTaus',
16  bottomCollection = 'particleFlow'
17 )
18 
19 
20 import RecoJets.JetProducers.ak4PFJets_cfi as boostedTaus2
21 import RecoJets.JetProducers.CMSBoostedTauSeedingParameters_cfi as boostedTaus3
22 ca8PFJetsCHSprunedForBoostedTaus = boostedTaus2.ak4PFJets.clone(
23  boostedTaus3.CMSBoostedTauSeedingParameters,
24  #src = 'pfNoPileUpForBoostedTaus',
25  jetPtMin = 100.0,
26  doAreaFastjet = True,
27  nFilt = cms.int32(100),
28  rParam = 0.8,
29  jetAlgorithm = "CambridgeAachen",
30  writeCompound = cms.bool(True),
31  jetCollInstanceName = cms.string('subJetsForSeedingBoostedTaus')
32 )
33 
34 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
35 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
36 (pp_on_XeXe_2017 | pp_on_AA).toModify(ca8PFJetsCHSprunedForBoostedTaus,
37  inputEtMin = 999999.0, src = "particleFlow",
38  doAreaFastjet = False)
39 
40 boostedTauSeeds = cms.EDProducer("BoostedTauSeedsProducer",
41  subjetSrc = cms.InputTag('ca8PFJetsCHSprunedForBoostedTaus', 'subJetsForSeedingBoostedTaus'),
42  pfCandidateSrc = cms.InputTag('particleFlow'),
43  verbosity = cms.int32(0)
44 )
45 
46 boostedHPSPFTausTask = cms.Task(
47  pfPileUpForBoostedTaus,
48  pfNoPileUpForBoostedTaus,
49  ca8PFJetsCHSprunedForBoostedTaus,
50  boostedTauSeeds
51 )