File indexing completed on 2024-04-06 12:27:42
0001 '''
0002
0003 Change the jets with which the PFTau collections are built.
0004
0005 Author: Evan K. Friis, UC Davis
0006
0007 '''
0008
0009 def changePFTauJetSource(process, jetSrc):
0010
0011 for producer in ['combinatoricRecoTaus', 'shrinkingConePFTauProducer']:
0012
0013 tauProducer = getattr(process, producer)
0014 tauProducer.jetSrc = jetSrc
0015 piZeroProdName = getattr(tauProducer, 'piZeroSrc').value()
0016 piZeroProducer = getattr(process, piZeroProdName)
0017 piZeroProducer.src = jetSrc
0018
0019 process.ak4PFJetTracksAssociatorAtVertex.jets = jetSrc
0020
0021
0022
0023
0024
0025
0026
0027