Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
autoCond = {

    ### NEW KEYS ###
    # GlobalTag for MC production with perfectly aligned and calibrated detector for Run1
    'run1_design'                  :    '131X_mcRun1_design_v3',
    # GlobalTag for MC production (pp collisions) with realistic alignment and calibrations for Run1
    'run1_mc'                      :    '131X_mcRun1_realistic_v3',
    # GlobalTag for MC production (Heavy Ions collisions) with realistic alignment and calibrations for Run1
    'run1_mc_hi'                   :    '131X_mcRun1_HeavyIon_v3',
    # GlobalTag for MC production with pessimistic alignment and calibrations for Run2
    'run2_mc_50ns'                 :    '131X_mcRun2_startup_v3',
    # GlobalTag for MC production (2015 L1 Trigger Stage1) with startup-like alignment and calibrations for Run2, L1 trigger in Stage1 mode
    'run2_mc_l1stage1'             :    '131X_mcRun2_asymptotic_l1stage1_v3',
    # GlobalTag for MC production with perfectly aligned and calibrated detector for Run2
    'run2_design'                  :    '131X_mcRun2_design_v3',
    #GlobalTag for MC production with optimistic alignment and calibrations for 2016, prior to VFP change
    'run2_mc_pre_vfp'              :    '131X_mcRun2_asymptotic_preVFP_v3',
    #GlobalTag for MC production with optimistic alignment and calibrations for 2016, after VFP change
    'run2_mc'                      :    '131X_mcRun2_asymptotic_v3',
    # GlobalTag for MC production (cosmics) with starup-like alignment and calibrations for Run2, Strip tracker in peak mode
    'run2_mc_cosmics'              :    '131X_mcRun2cosmics_asymptotic_deco_v3',
    # GlobalTag for MC production (Heavy Ions collisions) with optimistic alignment and calibrations for Run2
    'run2_mc_hi'                   :    '131X_mcRun2_HeavyIon_v3',
    # GlobalTag for MC production (p-Pb collisions) with realistic alignment and calibrations for Run2
    'run2_mc_pa'                   :    '131X_mcRun2_pA_v3',
    # GlobalTag for Run2 data reprocessing
    'run2_data'                    :    '141X_dataRun2_v3',
    # GlobalTag for Run2 data 2018B relvals only: HEM-15-16 fail
    'run2_data_HEfail'             :    '140X_dataRun2_HEfail_v1',
    # GlobalTag for Run2 HI data
    'run2_data_promptlike_hi'      :    '140X_dataRun2_PromptLike_HI_v1',
    # GlobalTag with fixed snapshot time for Run2 HLT RelVals: customizations to run with fixed L1 Menu
    'run2_hlt_relval'              :    '140X_dataRun2_HLT_relval_v1',
    # GlobalTag for Run3 HLT: identical the online GT 150X_dataRun3_HLT_v1 but with snapshot at 2025-01-22 13:40:56 (UTC)
    'run3_hlt'                     :    '150X_dataRun3_HLT_frozen250122_v1',
    # GlobalTag for Run3 data relvals (express GT): same as 150X_dataRun3_Express_v1 but with snapshot at 2025-01-22 13:46:42 (UTC)
    'run3_data_express'            :    '150X_dataRun3_Express_frozen250122_v1',
    # GlobalTag for Run3 data relvals (prompt GT): same as 150X_dataRun3_Prompt_v1 but with snapshot at 2025-01-22 13:49:01 (UTC)
    'run3_data_prompt'             :    '150X_dataRun3_Prompt_frozen250122_v1',
    # GlobalTag for Run3 offline data reprocessing - snapshot at 2025-04-10 16:45:49 (UTC)
    'run3_data'                    :    '150X_dataRun3_v4',
    # GlobalTag for Run3 offline data reprocessing with Prompt GT, currently for 2022FG - snapshot at 2024-05-31 08:53:25 (UTC)
    'run3_data_PromptAnalysis'     :    '140X_dataRun3_PromptAnalysis_v2',
    # GlobalTag for MC production with perfectly aligned and calibrated detector for Phase1 2017 (and 0,0,~0-centred beamspot)
    'phase1_2017_design'           :    '131X_mc2017_design_v3',
    # GlobalTag for MC production with realistic conditions for Phase1 2017 detector
    'phase1_2017_realistic'        :    '131X_mc2017_realistic_v3',
    # GlobalTag for MC production (cosmics) with realistic alignment and calibrations for Phase1 2017 detector, Strip tracker in DECO mode
    'phase1_2017_cosmics'          :    '131X_mc2017cosmics_realistic_deco_v3',
    # GlobalTag for MC production (cosmics) with realistic alignment and calibrations for Phase1 2017 detector, Strip tracker in PEAK mode
    'phase1_2017_cosmics_peak'     :    '131X_mc2017cosmics_realistic_peak_v3',
    # GlobalTag for MC production with perfectly aligned and calibrated detector for full Phase1 2018 (and 0,0,0-centred beamspot)
    'phase1_2018_design'           :    '131X_upgrade2018_design_v3',
    # GlobalTag for MC production with realistic conditions for full Phase1 2018 detector
    'phase1_2018_realistic'        :    '131X_upgrade2018_realistic_v3',
    # GlobalTag for MC production with realistic run-dependent (RD) conditions for full Phase1 2018 detector
    'phase1_2018_realistic_rd'     :    '131X_upgrade2018_realistic_RD_v3',
    # GlobalTag for MC production with realistic conditions for full Phase1 2018 detector for Heavy Ion
    'phase1_2018_realistic_hi'     :    '131X_upgrade2018_realistic_HI_v3',
    # GlobalTag for MC production with realistic conditions for full Phase1 2018 detector: HEM-15-16 fail
    'phase1_2018_realistic_HEfail' :    '131X_upgrade2018_realistic_HEfail_v4',
    # GlobalTag for MC production (cosmics) with realistic conditions for full Phase1 2018 detector,  Strip tracker in DECO mode
    'phase1_2018_cosmics'          :    '131X_upgrade2018cosmics_realistic_deco_v3',
    # GlobalTag for MC production (cosmics) with realistic conditions for full Phase1 2018 detector,  Strip tracker in PEAK mode
    'phase1_2018_cosmics_peak'     :    '131X_upgrade2018cosmics_realistic_peak_v4',
    # GlobalTag for MC production with perfectly aligned and calibrated detector for Phase1 2022
    'phase1_2022_design'           :    '140X_mcRun3_2022_design_v1',
    # GlobalTag for MC production with realistic conditions for Phase1 2022
    'phase1_2022_realistic'        :    '140X_mcRun3_2022_realistic_v12',
    # GlobalTag for MC production with realistic conditions for Phase1 2022 post-EE+ leak
    'phase1_2022_realistic_postEE' :    '140X_mcRun3_2022_realistic_postEE_v3',
    # GlobalTag for MC production (cosmics) with realistic conditions for Phase1 2022, Strip tracker in DECO mode
    'phase1_2022_cosmics'          :    '140X_mcRun3_2022cosmics_realistic_deco_v3',
    # GlobalTag for MC production (cosmics) with perfectly aligned and calibrated detector for Phase1 2022, Strip tracker in DECO mode
    'phase1_2022_cosmics_design'   :    '140X_mcRun3_2022cosmics_design_deco_v1',
    # GlobalTag for MC production with realistic conditions for Phase1 2022 detector for Heavy Ion
    'phase1_2022_realistic_hi'     :    '140X_mcRun3_2022_realistic_HI_v4',
    # GlobalTag for MC production with perfectly aligned and calibrated detector for Phase1 2023
    'phase1_2023_design'           :    '140X_mcRun3_2023_design_v1',
    # GlobalTag for MC production with realistic conditions for Phase1 2023
    'phase1_2023_realistic'        :    '140X_mcRun3_2023_realistic_v9',
    # GlobalTag for MC production with realistic conditions for Phase1 postBPix issue 2023
    'phase1_2023_realistic_postBPix'  : '140X_mcRun3_2023_realistic_postBPix_v3',
    # GlobalTag for MC production (cosmics) with realistic conditions for Phase1 preBPix 2023, Strip tracker in DECO mode
    'phase1_2023_cosmics'          :    '140X_mcRun3_2023cosmics_realistic_deco_v3',
    # GlobalTag for MC production (cosmics) with realistic conditions for Phase1 postBPix 2023, Strip tracker in DECO mode
    'phase1_2023_cosmics_postBPix' :    '140X_mcRun3_2023cosmics_realistic_postBPix_deco_v3',
    # GlobalTag for MC production (cosmics) with perfectly aligned and calibrated detector for Phase1 2023, Strip tracker in DECO mode
    'phase1_2023_cosmics_design'   :    '140X_mcRun3_2023cosmics_design_deco_v1',
    # GlobalTag for MC production with realistic conditions for Phase1 2023 detector for Heavy Ion
    'phase1_2023_realistic_hi'     :    '141X_mcRun3_2023_realistic_HI_v11',
    # GlobalTag for MC production with perfectly aligned and calibrated detector for Phase1 2024
    'phase1_2024_design'           :    '140X_mcRun3_2024_design_v11',
    # GlobalTag for MC production with realistic conditions for Phase1 2024
    'phase1_2024_realistic'        :    '150X_mcRun3_2024_realistic_v2',
    # GlobalTag for MC production (cosmics) with realistic conditions for Phase1 2024, Strip tracker in DECO mode
    'phase1_2024_cosmics'          :    '140X_mcRun3_2024cosmics_realistic_deco_v14',
    # GlobalTag for MC production (cosmics) with perfectly aligned and calibrated detector for Phase1 2024, Strip tracker in DECO mode
    'phase1_2024_cosmics_design'   :    '140X_mcRun3_2024cosmics_design_deco_v11',
    # GlobalTag for MC production with realistic conditions for Phase1 2024 detector for Heavy Ion
    'phase1_2024_realistic_hi'     :    '141X_mcRun3_2024_realistic_HI_v14',
    # GlobalTag for MC production with realistic conditions for Phase1 2024 detector for ppRef5TeV
    'phase1_2024_realistic_ppRef5TeV' : '141X_mcRun3_2024_realistic_ppRef5TeV_v7',
    # GlobalTag for MC production with perfectly aligned and calibrated detector for Phase1 2025
    'phase1_2025_design'           :    '150X_mcRun3_2025_design_v1',
    # GlobalTag for MC production with realistic conditions for Phase1 2025
    'phase1_2025_realistic'        :    '150X_mcRun3_2025_realistic_v1',
    # GlobalTag for MC production (cosmics) with realistic conditions for Phase1 2024, Strip tracker in DECO mode
    'phase1_2025_cosmics'          :    '150X_mcRun3_2025cosmics_realistic_deco_v1',
    # GlobalTag for MC production with realistic conditions for Phase2
    'phase2_realistic'             :    '150X_mcRun4_realistic_v1'
}

aliases = {
    'MAINGT' : 'FT_P_V42D|AN_V4',
    'BASEGT' : 'BASE1_V1|BASE2_V1'
}

# take fixed L1T menu as a symbolic GT
from Configuration.AlCa.autoCondModifiers import autoCondRelValForRun2
autoCond = autoCondRelValForRun2(autoCond)

from Configuration.AlCa.autoCondModifiers import autoCondRelValForRun3
autoCond = autoCondRelValForRun3(autoCond)

# GlobalTag for Run1 data reprocessing, history was carried over to run2 GTs
autoCond['run1_data']        = autoCond['run2_data']

# dedicated GlobalTags for HLT
from Configuration.HLT.autoCondHLT import autoCondHLT
autoCond = autoCondHLT(autoCond)

# dedicated GlobalTags for phase-2 (specializing conditions for each geometry)
from Configuration.AlCa.autoCondPhase2 import autoCondPhase2
autoCond = autoCondPhase2(autoCond)

# special GTs for phase-2 with BeamSpot at 13 TeV (instead of 14 TeV)
from Configuration.AlCa.autoCondModifiers import autoCondBSHLLHC13TeV
autoCond = autoCondBSHLLHC13TeV(autoCond)

# special cases modifier for autoCond GTs
from Configuration.AlCa.autoCondModifiers import autoCond0T
autoCond = autoCond0T(autoCond)

# special GT for 2015 HLT HI run
from Configuration.AlCa.autoCondModifiers import autoCondHLTHI
autoCond = autoCondHLTHI(autoCond)

# special GT for Run3 DDD geometry
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'] )
    # GlobalTag for MC production with realistic alignment and calibrations
autoCond['startup']          = ( autoCond['run1_mc'] )
    # GlobalTag for MC production of Heavy Ions events with realistic alignment and calibrations
autoCond['starthi']          = ( autoCond['run1_mc_hi'] )
    # GlobalTag for data reprocessing
autoCond['com10']            = ( autoCond['run1_data'] )
    # GlobalTag for running HLT on recent data: it points to the online GT (remove the snapshot!)
autoCond['hltonline']        = ( autoCond['run3_hlt'] )
    # GlobalTag for POSTLS1 upgrade studies:
autoCond['upgradePLS1']      = ( autoCond['run2_mc'] )
autoCond['upgradePLS150ns']  = ( autoCond['run2_mc_50ns'] )
autoCond['upgrade2017']      = ( autoCond['phase1_2017_design'] )
autoCond['upgrade2021']      = ( autoCond['phase1_2022_design'] )
autoCond['upgrade2022']      = ( autoCond['phase1_2022_design'] )
autoCond['upgradePLS3']      = ( autoCond['phase2_realistic'] )