Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-17 22:33:43

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import RecoVertex.BeamSpotProducer.Modifiers as mods
0004 
0005 offlineBeamSpot = cms.EDProducer("BeamSpotProducer")
0006 
0007 def _loadOnlineBeamSpotESProducer(process):
0008     import RecoVertex.BeamSpotProducer.onlineBeamSpotESProducer_cfi as _mod
0009     process.BeamSpotESProducer = _mod.onlineBeamSpotESProducer.clone(
0010         timeThreshold = 999999 # for express allow >48h old payloads for replays. DO NOT CHANGE
0011     )
0012 
0013 import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
0014 _onlineBeamSpotProducer = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
0015 mods.offlineToOnlineBeamSpotSwap.toReplaceWith(offlineBeamSpot, _onlineBeamSpotProducer)
0016 
0017 applyOnlineBSESProducer = mods.offlineToOnlineBeamSpotSwap.makeProcessModifier(_loadOnlineBeamSpotESProducer)