File indexing completed on 2024-07-10 02:34:27
0001
0002
0003
0004 from Configuration.StandardSequences.CondDBESSource_cff import GlobalTag as essource
0005 connectionString = essource.connect.value()
0006
0007
0008 def autoCond0T(autoCond):
0009
0010 ConditionsFor0T = ','.join( ['RunInfo_0T_v1_mc', "RunInfoRcd", connectionString, "", "2020-07-01 12:00:00.000"] )
0011 GlobalTags0T = {}
0012 for key,val in autoCond.items():
0013 if "phase" in key:
0014 GlobalTags0T[key+"_0T"] = (autoCond[key], ConditionsFor0T)
0015
0016 autoCond.update(GlobalTags0T)
0017 return autoCond
0018
0019 def autoCondHLTHI(autoCond):
0020
0021 GlobalTagsHLTHI = {}
0022
0023
0024 FullPedestalsForHLTHI = ','.join( ['SiStripFullPedestals_GR10_v1_hlt', "SiStripPedestalsRcd", connectionString, "", "2021-03-11 12:00:00.000"] )
0025 MenuForHLTHI = ','.join( ['L1Menu_CollisionsHeavyIons2015_v5_uGT_xml', "L1TUtmTriggerMenuRcd", connectionString, "", "2021-03-11 12:00:00.000"] )
0026
0027 for key,val in autoCond.items():
0028 if key == 'run2_hlt_relval':
0029 GlobalTagsHLTHI['run2_hlt_hi'] = (autoCond[key], FullPedestalsForHLTHI, MenuForHLTHI)
0030
0031 autoCond.update(GlobalTagsHLTHI)
0032 return autoCond
0033
0034 def autoCondDDD(autoCond):
0035
0036 GlobalTagsDDD = {}
0037
0038 CSCRECODIGI_Geometry_ddd = ','.join( ['CSCRECODIGI_Geometry_112YV2' , "CSCRecoDigiParametersRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0039 CSCRECO_Geometry_ddd = ','.join( ['CSCRECO_Geometry_112YV2' , "CSCRecoGeometryRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0040 DTRECO_Geometry_ddd = ','.join( ['DTRECO_Geometry_112YV2' , "DTRecoGeometryRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0041 GEMRECO_Geometry_ddd = ','.join( ['GEMRECO_Geometry_123YV2' , "GEMRecoGeometryRcd" , connectionString, "" , "2022-02-02 12:00:00.000"] )
0042 XMLFILE_Geometry_ddd = ','.join( ['XMLFILE_Geometry_123YV1_Extended2021_mc', "GeometryFileRcd" , connectionString, "Extended", "2022-01-21 12:00:00.000"] )
0043 HCALParameters_Geometry_ddd = ','.join( ['HCALParameters_Geometry_112YV2' , "HcalParametersRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0044 TKRECO_Geometry_ddd = ','.join( ['TKRECO_Geometry_120YV2' , "IdealGeometryRecord" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0045 CTRECO_Geometry_ddd = ','.join( ['CTRECO_Geometry_112YV2' , "PCaloTowerRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0046 EBRECO_Geometry_ddd = ','.join( ['EBRECO_Geometry_112YV2' , "PEcalBarrelRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0047 EERECO_Geometry_ddd = ','.join( ['EERECO_Geometry_112YV2' , "PEcalEndcapRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0048 EPRECO_Geometry_ddd = ','.join( ['EPRECO_Geometry_112YV2' , "PEcalPreshowerRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0049 HCALRECO_Geometry_ddd = ','.join( ['HCALRECO_Geometry_112YV2' , "PHcalRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0050 TKParameters_Geometry_ddd = ','.join( ['TKParameters_Geometry_112YV2' , "PTrackerParametersRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0051 ZDCRECO_Geometry_ddd = ','.join( ['ZDCRECO_Geometry_112YV2' , "PZdcRcd" , connectionString, "" , "2021-09-28 12:00:00.000"] )
0052 RPCRECO_Geometry_ddd = ','.join( ['RPCRECO_Geometry_123YV1' , "RPCRecoGeometryRcd" , connectionString, "" , "2022-01-21 12:00:00.000"] )
0053 PPSRECO_Geometry_ddd = ','.join( ['PPSRECO_Geometry_121YV2_2021_mc' , "VeryForwardIdealGeometryRecord", connectionString, "" , "2021-12-02 12:00:00.000"] )
0054
0055 for key,val in autoCond.items():
0056 if 'phase1_202' in key:
0057 GlobalTagsDDD[key+'_ddd'] = (autoCond[key],
0058 CSCRECODIGI_Geometry_ddd,
0059 CSCRECO_Geometry_ddd,
0060 DTRECO_Geometry_ddd,
0061 GEMRECO_Geometry_ddd,
0062 XMLFILE_Geometry_ddd,
0063 HCALParameters_Geometry_ddd,
0064 TKRECO_Geometry_ddd,
0065 CTRECO_Geometry_ddd,
0066 EBRECO_Geometry_ddd,
0067 EERECO_Geometry_ddd,
0068 EPRECO_Geometry_ddd,
0069 HCALRECO_Geometry_ddd,
0070 TKParameters_Geometry_ddd,
0071 ZDCRECO_Geometry_ddd,
0072 RPCRECO_Geometry_ddd,
0073 PPSRECO_Geometry_ddd)
0074 autoCond.update(GlobalTagsDDD)
0075 return autoCond
0076
0077 def autoCond2017ppRef5TeV(autoCond):
0078
0079 GlobalTag2017ppRef5TeV = {}
0080
0081 BeamSpotObjects_2017ppRef5TeV = ','.join( ['BeamSpotObjects_pp_2017G_MC_2021sample_for_UL' , "BeamSpotObjectsRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
0082 EcalLaserAPDPNRatios_2017ppRef5TeV = ','.join( ['EcalLaserAPDPNRatios_mc_Run2017G_306580' , "EcalLaserAPDPNRatiosRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
0083 EcalPedestals_2017ppRef5TeV = ','.join( ['EcalPedestals_Run2017G_306580' , "EcalPedestalsRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
0084 EcalTPGLinearizationConst_2017ppRef5TeV = ','.join( ['EcalTPGLinearizationConst_Run2017G_306580' , "EcalTPGLinearizationConstRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
0085 EcalTPGPedestals_2017ppRef5TeV = ','.join( ['EcalTPGPedestals_Run2017G_306580' , "EcalTPGPedestalsRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
0086 L1Menu_2017ppRef5TeV = ','.join( ['L1Menu_pp502Collisions2017_v4_m6_xml' , "L1TUtmTriggerMenuRcd", connectionString, "", "2021-10-28 12:00:00.000"] )
0087
0088 for key,val in autoCond.items():
0089 if 'phase1_2017_realistic' in key:
0090 GlobalTag2017ppRef5TeV[key+'_ppref'] = (autoCond[key],
0091 BeamSpotObjects_2017ppRef5TeV,
0092 EcalLaserAPDPNRatios_2017ppRef5TeV,
0093 EcalPedestals_2017ppRef5TeV,
0094 EcalTPGLinearizationConst_2017ppRef5TeV,
0095 EcalTPGPedestals_2017ppRef5TeV,
0096 L1Menu_2017ppRef5TeV)
0097 autoCond.update(GlobalTag2017ppRef5TeV)
0098 return autoCond
0099
0100 def autoCondRelValForRun2(autoCond):
0101
0102 GlobalTagRelValForRun2 = {}
0103 L1GtTriggerMenuForRelValForRun2 = ','.join( ['L1Menu_Collisions2015_25nsStage1_v5' , "L1GtTriggerMenuRcd", connectionString, "", "2023-01-28 12:00:00.000"] )
0104 L1TUtmTriggerMenuForRelValForRun2 = ','.join( ['L1Menu_Collisions2018_v2_1_0-d1_xml' , "L1TUtmTriggerMenuRcd", connectionString, "", "2023-01-28 12:00:00.000"] )
0105
0106 for key,val in autoCond.items():
0107 if 'run2_data' in key or 'run2_hlt' in key:
0108 GlobalTagRelValForRun2[key+'_relval'] = (autoCond[key],
0109 L1GtTriggerMenuForRelValForRun2,
0110 L1TUtmTriggerMenuForRelValForRun2)
0111 autoCond.update(GlobalTagRelValForRun2)
0112 return autoCond
0113
0114 def autoCondRelValForRun3(autoCond):
0115
0116 GlobalTagRelValForRun3 = {}
0117 L1GtTriggerMenuForRelValForRun3 = ','.join( ['L1Menu_Collisions2015_25nsStage1_v5' , "L1GtTriggerMenuRcd", connectionString, "", "2023-01-28 12:00:00.000"] )
0118 L1TUtmTriggerMenuForRelValForRun3 = ','.join( ['L1Menu_Collisions2024_v1_3_0_xml' , "L1TUtmTriggerMenuRcd", connectionString, "", "2024-07-03 12:00:00.000"] )
0119
0120 for key,val in autoCond.items():
0121 if 'run3_data' in key or 'run3_hlt' in key :
0122 GlobalTagRelValForRun3[key+'_relval'] = (autoCond[key],
0123 L1GtTriggerMenuForRelValForRun3,
0124 L1TUtmTriggerMenuForRelValForRun3)
0125 autoCond.update(GlobalTagRelValForRun3)
0126 return autoCond
0127
0128 def autoCondBSHLLHC13TeV(autoCond):
0129
0130 GlobalTagBSHLLHC13TeV = {}
0131 SimBeamSpotForHLLHC13TeV = ','.join( ['SimBeamSpotHLLHCObjects_z4p3cm_t193ns_13TeV_nominal_mc_v1', "SimBeamSpotHLLHCObjectsRcd", connectionString, "", "2024-07-04 15:00:00.000"] )
0132
0133 for key,val in autoCond.items():
0134 if 'phase2_realistic' in key:
0135
0136
0137 if 'phase2_realistic_T' in key:
0138 GlobalTagBSHLLHC13TeV[key+'_13TeV'] = autoCond[key] + (SimBeamSpotForHLLHC13TeV,)
0139
0140 else:
0141 GlobalTagBSHLLHC13TeV[key+'_13TeV'] = (autoCond[key], SimBeamSpotForHLLHC13TeV)
0142
0143 autoCond.update(GlobalTagBSHLLHC13TeV)
0144 return autoCond