CMS 3D CMS Logo

Functions

changePFTauJetSource Namespace Reference

Functions

def changePFTauJetSource

Detailed Description


Change the jets with which the PFTau collections are built.

Author: Evan K. Friis, UC Davis


Function Documentation

def changePFTauJetSource::changePFTauJetSource (   process,
  jetSrc 
)

Definition at line 9 of file changePFTauJetSource.py.

00010                                          :
00011     # Update all the tau producers
00012     for producer in ['combinatoricRecoTaus', 'shrinkingConePFTauProducer']:
00013         # Update the pizero producer associated to this tau
00014         tauProducer = getattr(process, producer)
00015         tauProducer.jetSrc = jetSrc
00016         piZeroProdName = getattr(tauProducer, 'piZeroSrc').value()
00017         piZeroProducer = getattr(process, piZeroProdName)
00018         piZeroProducer.src = jetSrc
00019     # Set the PFTauTagInfoProducer jet tracks associator correctly
00020     process.ak5PFJetTracksAssociatorAtVertex.jets = jetSrc
00021 
00022 #if __name__ == "__main__":
00023     #import FWCore.ParameterSet.Config as cms
00024     #process = cms.Process("TEST")
00025     #process.load("RecoTauTag.Configuration.RecoPFTauTag_cff")
00026     #changePFTauJetSource(process, "myJets")
00027     #print process.combinatoricRecoTaus.jetSrc
00028     #print process.ak5PFJetsLegacyTaNCPiZeros.src