Skip to content

Commit

Permalink
Merge pull request #35909 from tvami/ModifierForPPref
Browse files Browse the repository at this point in the history
Add ppRef modifier instead of a GT
  • Loading branch information
cmsbuild committed Oct 31, 2021
2 parents 4dc0c5e + 1c83752 commit b35ff2e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Configuration/AlCa/python/autoCond.py
Expand Up @@ -45,8 +45,6 @@
'phase1_2017_design' : '121X_mc2017_design_v9',
# GlobalTag for MC production with realistic conditions for Phase1 2017 detector
'phase1_2017_realistic' : '121X_mc2017_realistic_v9',
# GlobalTag for MC production with realistic conditions for Phase1 2017 detector, for PP reference run
'phase1_2017_realistic_ppref' : '121X_mc2017_realistic_forppRef5TeV_v1',
# GlobalTag for MC production (cosmics) with realistic alignment and calibrations for Phase1 2017 detector, Strip tracker in DECO mode
'phase1_2017_cosmics' : '121X_mc2017cosmics_realistic_deco_v9',
# GlobalTag for MC production (cosmics) with realistic alignment and calibrations for Phase1 2017 detector, Strip tracker in PEAK mode
Expand Down Expand Up @@ -112,6 +110,11 @@
from Configuration.AlCa.autoCondModifiers import autoCondDDD
autoCond = autoCondDDD(autoCond)

# special GT for 2017 ppRef 5 TeV
from Configuration.AlCa.autoCondModifiers import autoCond2017ppRef5TeV
autoCond = autoCond2017ppRef5TeV(autoCond)


### OLD KEYS ### kept for backward compatibility
# GlobalTag for MC production with perfectly aligned and calibrated detector
autoCond['mc'] = ( autoCond['run1_design'] )
Expand Down
23 changes: 23 additions & 0 deletions Configuration/AlCa/python/autoCondModifiers.py
Expand Up @@ -71,3 +71,26 @@ def autoCondDDD(autoCond):
RPCRECO_Geometry_ddd)
autoCond.update(GlobalTagsDDD)
return autoCond

def autoCond2017ppRef5TeV(autoCond):

GlobalTag2017ppRef5TeV = {}
# substitute tags needed for 2017 ppRef 5 TeV GT
BeamSpotObjects_2017ppRef5TeV = ','.join( ['BeamSpotObjects_pp_2017G_MC_2021sample_for_UL' , "BeamSpotObjectsRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
EcalLaserAPDPNRatios_2017ppRef5TeV = ','.join( ['EcalLaserAPDPNRatios_mc_Run2017G_306580' , "EcalLaserAPDPNRatiosRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
EcalPedestals_2017ppRef5TeV = ','.join( ['EcalPedestals_Run2017G_306580' , "EcalPedestalsRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
EcalTPGLinearizationConst_2017ppRef5TeV = ','.join( ['EcalTPGLinearizationConst_Run2017G_306580' , "EcalTPGLinearizationConstRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
EcalTPGPedestals_2017ppRef5TeV = ','.join( ['EcalTPGPedestals_Run2017G_306580' , "EcalTPGPedestalsRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
L1Menu_2017ppRef5TeV = ','.join( ['L1Menu_pp502Collisions2017_v4_m6_xml' , "L1TUtmTriggerMenuRcd", connectionString, "", "2021-10-28 12:00:00.000"] )

for key,val in autoCond.items():
if 'phase1_2017_realistic' in key:
GlobalTag2017ppRef5TeV[key+'_ppref'] = (autoCond[key],
BeamSpotObjects_2017ppRef5TeV,
EcalLaserAPDPNRatios_2017ppRef5TeV,
EcalPedestals_2017ppRef5TeV,
EcalTPGLinearizationConst_2017ppRef5TeV,
EcalTPGPedestals_2017ppRef5TeV,
L1Menu_2017ppRef5TeV)
autoCond.update(GlobalTag2017ppRef5TeV)
return autoCond

0 comments on commit b35ff2e

Please sign in to comment.