Skip to content

Commit e232a9b

Browse files
authored
Merge pull request #45387 from francescobrivio/alca-consume_simBeamSpotHLLHC
New SimBeamSpotHLLHC tags in Phase-2 MC GT and make Phase-2 workflows consume it
2 parents 10224b1 + c888742 commit e232a9b

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

Configuration/AlCa/python/autoCond.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
# GlobalTag for MC production with realistic conditions for Phase1 2024 detector for Heavy Ion
101101
'phase1_2024_realistic_hi' : '141X_mcRun3_2024_realistic_HI_v4',
102102
# GlobalTag for MC production with realistic conditions for Phase2
103-
'phase2_realistic' : '140X_mcRun4_realistic_v4'
103+
'phase2_realistic' : '141X_mcRun4_realistic_v1'
104104
}
105105

106106
aliases = {
@@ -126,6 +126,10 @@
126126
from Configuration.AlCa.autoCondPhase2 import autoCondPhase2
127127
autoCond = autoCondPhase2(autoCond)
128128

129+
# special GTs for phase-2 with BeamSpot at 13 TeV (instead of 14 TeV)
130+
from Configuration.AlCa.autoCondModifiers import autoCondBSHLLHC13TeV
131+
autoCond = autoCondBSHLLHC13TeV(autoCond)
132+
129133
# special cases modifier for autoCond GTs
130134
from Configuration.AlCa.autoCondModifiers import autoCond0T
131135
autoCond = autoCond0T(autoCond)

Configuration/AlCa/python/autoCondModifiers.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,20 @@ def autoCondRelValForRun3(autoCond):
125125
autoCond.update(GlobalTagRelValForRun3)
126126
return autoCond
127127

128+
def autoCondBSHLLHC13TeV(autoCond):
129+
130+
GlobalTagBSHLLHC13TeV = {}
131+
SimBeamSpotForHLLHC13TeV = ','.join( ['SimBeamSpotHLLHCObjects_z4p3cm_t193ns_13TeV_nominal_mc_v1', "SimBeamSpotHLLHCObjectsRcd", connectionString, "", "2024-07-04 15:00:00.000"] )
132+
133+
for key,val in autoCond.items():
134+
if 'phase2_realistic' in key:
135+
# If 'phase2_realistic_T' is in key, it means it was already modified
136+
# by autoCondPhase2: simply add to the already existing tuple
137+
if 'phase2_realistic_T' in key:
138+
GlobalTagBSHLLHC13TeV[key+'_13TeV'] = autoCond[key] + (SimBeamSpotForHLLHC13TeV,)
139+
# Else, build the tuple as done in the rest of the autoCondModifiers
140+
else:
141+
GlobalTagBSHLLHC13TeV[key+'_13TeV'] = (autoCond[key], SimBeamSpotForHLLHC13TeV)
142+
143+
autoCond.update(GlobalTagBSHLLHC13TeV)
144+
return autoCond

Configuration/PyReleaseValidation/python/relval_steps.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ def genS(fragment,howMuch):
11481148
'--scenario':'cosmics',
11491149
'--era': phase2CosInfo['Era'],
11501150
'--geometry': phase2CosInfo['Geom'],
1151-
'--beamspot':'HLLHC14TeV'},Kby(666,100000),step1Defaults])
1151+
'--beamspot':'DBrealisticHLLHC'},Kby(666,100000),step1Defaults])
11521152

11531153
steps['BeamHalo']=merge([{'cfg':'BeamHalo_cfi.py','--scenario':'cosmics'},Kby(9,100),step1Defaults])
11541154
steps['BeamHalo_13']=merge([{'cfg':'BeamHalo_13TeV_cfi.py','--scenario':'cosmics'},Kby(9,100),step1Up2015Defaults])
@@ -4311,8 +4311,8 @@ def gen2023HiMix(fragment,howMuch):
43114311

43124312
upgradeStepDict['GenSimHLBeamSpot'][k]= {'-s' : 'GEN,SIM',
43134313
'-n' : 10,
4314-
'--conditions' : gt,
4315-
'--beamspot' : 'HLLHC',
4314+
'--conditions' : gt+'_13TeV',
4315+
'--beamspot' : 'DBrealisticHLLHC',
43164316
'--datatier' : 'GEN-SIM',
43174317
'--eventcontent': 'FEVTDEBUG',
43184318
'--geometry' : geom
@@ -4321,7 +4321,7 @@ def gen2023HiMix(fragment,howMuch):
43214321
upgradeStepDict['GenSimHLBeamSpot14'][k]= {'-s' : 'GEN,SIM',
43224322
'-n' : 10,
43234323
'--conditions' : gt,
4324-
'--beamspot' : 'HLLHC14TeV',
4324+
'--beamspot' : 'DBrealisticHLLHC',
43254325
'--datatier' : 'GEN-SIM',
43264326
'--eventcontent': 'FEVTDEBUG',
43274327
'--geometry' : geom

Configuration/StandardSequences/python/VtxSmeared.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
VtxSmeared = {
22
'DBdesign': 'IOMC.EventVertexGenerators.VtxSmearedDesign_cfi',
33
'DBrealistic': 'IOMC.EventVertexGenerators.VtxSmearedRealistic_cfi',
4+
'DBrealisticHLLHC': 'IOMC.EventVertexGenerators.VtxSmearedRealisticHLLHC_cfi',
45
'NoSmear': 'Configuration.StandardSequences.VtxSmearedNoSmear_cff',
56
'BetafuncEarlyCollision': 'IOMC.EventVertexGenerators.VtxSmearedBetafuncEarlyCollision_cfi',
67
'BeamProfile': 'IOMC.EventVertexGenerators.VtxSmearedBeamProfile_cfi',
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# Load HLLHCEvtVtxGenerator and read parameters from GT (SimBeamSpotHLLHCObjectsRcd)
4+
from IOMC.EventVertexGenerators.HLLHCEvtVtxGenerator_cfi import HLLHCEvtVtxGenerator
5+
VtxSmeared = HLLHCEvtVtxGenerator.clone(
6+
src = "generator:unsmeared",
7+
readDB = True
8+
)

0 commit comments

Comments
 (0)