Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ppRef modifier instead of a GT #35909

Merged
merged 2 commits into from
Oct 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Configuration/AlCa/python/autoCond.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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