Skip to content

Commit

Permalink
patch in Phase2 Beamspot -- need to make this into at new GT!
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Sep 21, 2016
1 parent cbff420 commit ebe599b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions RecoVertex/BeamSpotProducer/python/BeamSpot_cff.py
Expand Up @@ -2,3 +2,25 @@

from RecoVertex.BeamSpotProducer.BeamSpot_cfi import *


##### temporary hack to get the right beamspot for HL-LHC
##### Fix before merging (needs a GT, etc)
from CondCore.DBCommon.CondDBSetup_cfi import *

def _modifyBeamSpotPhase2HLLHC( theProcess ):
theProcess.Phase2BSSrc = cms.ESSource(
'PoolDBESSource',
CondDBSetup,
toGet = cms.VPSet(
cms.PSet(
record = cms.string('BeamSpotObjectsRcd'),
tag = cms.string('Realistic14TeVCollisions_2023Muon_HLLHCBS_mc'),
connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS')
)
)
)
theProcess.Phase2BSPrefer = cms.ESPrefer('PoolDBESSource','Phase2BSSrc')
print 'added phase2 beamspot! THIS PROCESS MODIFIER SHOULD NOT BE IN A RELEASE'

from Configuration.StandardSequences.Eras import eras
modifyBeamSpotPhase2HLLHC_ = eras.phase2_common.makeProcessModifier(_modifyBeamSpotPhase2HLLHC)

0 comments on commit ebe599b

Please sign in to comment.