CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
boostedHPSPFTaus_cfi Namespace Reference

Functions

def addBoostedTaus
 

Function Documentation

def boostedHPSPFTaus_cfi.addBoostedTaus (   process)

Definition at line 3 of file boostedHPSPFTaus_cfi.py.

References helpers.cloneProcessingSnippet(), and helpers.massSearchReplaceAnyInputTag().

Referenced by miniAOD_tools.miniAOD_customizeCommon().

3 
4 def addBoostedTaus(process):
5  from PhysicsTools.PatAlgos.tools.helpers import cloneProcessingSnippet
6  from PhysicsTools.PatAlgos.tools.helpers import massSearchReplaceAnyInputTag
7  process.load("RecoTauTag.Configuration.boostedHPSPFTaus_cff")
8  process.load("RecoTauTag.Configuration.RecoPFTauTag_cff")
9  process.ptau = cms.Path( process.PFTau )
10  process.PATTauSequence = cms.Sequence(process.PFTau+process.makePatTaus+process.selectedPatTaus)
11  process.PATTauSequenceBoosted = cloneProcessingSnippet(process,process.PATTauSequence, "Boosted")
12  process.recoTauAK4PFJets08RegionBoosted.src = cms.InputTag('boostedTauSeeds')
13  process.recoTauAK4PFJets08RegionBoosted.pfCandSrc = cms.InputTag('particleFlow')
14  process.recoTauAK4PFJets08RegionBoosted.pfCandAssocMapSrc = cms.InputTag('boostedTauSeeds', 'pfCandAssocMapForIsolation')
15  process.ak4PFJetsLegacyHPSPiZerosBoosted.jetSrc = cms.InputTag('boostedTauSeeds')
16  process.ak4PFJetsRecoTauChargedHadronsBoosted.jetSrc = cms.InputTag('boostedTauSeeds')
17  process.ak4PFJetsRecoTauChargedHadronsBoosted.builders[1].dRcone = cms.double(0.3)
18  process.ak4PFJetsRecoTauChargedHadronsBoosted.builders[1].dRconeLimitedToJetArea = cms.bool(True)
19  process.combinatoricRecoTausBoosted.jetSrc = cms.InputTag('boostedTauSeeds')
20  process.combinatoricRecoTausBoosted.modifiers.remove(process.combinatoricRecoTausBoosted.modifiers[3])
21  #process.combinatoricRecoTausBoosted.builders[0].pfCandSrc = cms.InputTag('pfNoPileUpForBoostedTaus')
22  process.combinatoricRecoTausBoosted.builders[0].pfCandSrc = cms.InputTag('particleFlow')
23  massSearchReplaceAnyInputTag(process.PATTauSequenceBoosted,cms.InputTag("ak4PFJets"),cms.InputTag("boostedTauSeeds"))
24  process.slimmedTausBoosted = process.slimmedTaus.clone(src = cms.InputTag("selectedPatTausBoosted"))
25 
26  return process
def cloneProcessingSnippet
Definition: helpers.py:306
def massSearchReplaceAnyInputTag
Definition: helpers.py:262