Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:57

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 '''
0004 
0005 Sequences for reconstructing boosted taus using the HPS algorithm
0006 
0007 '''
0008 
0009 import CommonTools.ParticleFlow.pfNoPileUp_cff as boostedTaus
0010 pfPileUpForBoostedTaus = boostedTaus.pfPileUp.clone(
0011     PFCandidates = 'particleFlow',
0012     checkClosestZVertex = False
0013 )
0014 pfNoPileUpForBoostedTaus = boostedTaus.pfNoPileUp.clone(
0015     topCollection = 'pfPileUpForBoostedTaus',
0016     bottomCollection = 'particleFlow'
0017 )
0018 
0019 
0020 import RecoJets.JetProducers.ak4PFJets_cfi as boostedTaus2
0021 import RecoJets.JetProducers.CMSBoostedTauSeedingParameters_cfi as boostedTaus3
0022 ca8PFJetsCHSprunedForBoostedTaus = boostedTaus2.ak4PFJets.clone(
0023     boostedTaus3.CMSBoostedTauSeedingParameters,
0024     #src = 'pfNoPileUpForBoostedTaus',
0025     jetPtMin = 100.0,
0026     doAreaFastjet = True,
0027     nFilt = cms.int32(100),
0028     rParam = 0.8,
0029     jetAlgorithm = "CambridgeAachen",
0030     writeCompound = cms.bool(True),
0031     jetCollInstanceName = cms.string('subJetsForSeedingBoostedTaus')
0032 )
0033 
0034 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0035 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0036 (pp_on_XeXe_2017 | pp_on_AA).toModify(ca8PFJetsCHSprunedForBoostedTaus, 
0037                                       inputEtMin = 999999.0, src = "particleFlow", 
0038                                       doAreaFastjet = False)
0039 
0040 boostedTauSeeds = cms.EDProducer("BoostedTauSeedsProducer",
0041     subjetSrc = cms.InputTag('ca8PFJetsCHSprunedForBoostedTaus', 'subJetsForSeedingBoostedTaus'),
0042     pfCandidateSrc = cms.InputTag('particleFlow'),
0043     verbosity = cms.int32(0)
0044 )
0045 
0046 boostedHPSPFTausTask = cms.Task(
0047     pfPileUpForBoostedTaus,
0048     pfNoPileUpForBoostedTaus,
0049     ca8PFJetsCHSprunedForBoostedTaus,
0050     boostedTauSeeds
0051 )