File indexing completed on 2024-04-06 12:29:07
0001 import FWCore.ParameterSet.Config as cms
0002 from FWCore.ParameterSet.MassReplace import massReplaceInputTag as MassReplaceInputTag
0003
0004
0005
0006
0007 def massReplaceOfflinePrimaryVerticesToUseBeamSpot(process):
0008
0009 process = MassReplaceInputTag(process,"offlinePrimaryVertices","offlinePrimaryVerticesWithBS")
0010
0011
0012 if hasattr(process,'offlinePrimaryVerticesWithBS'):
0013 process.offlinePrimaryVerticesWithBS.src = cms.InputTag("offlinePrimaryVertices","WithBS")
0014
0015 return process
0016
0017
0018
0019
0020
0021
0022 def swapOfflinePrimaryVerticesToUseBeamSpot(process):
0023 if hasattr(process,'offlinePrimaryVertices'):
0024 process.offlinePrimaryVertices.vertices="unsortedOfflinePrimaryVertices:WithBS"
0025
0026 return process