Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:23

0001 #
0002 # hachConditions.py  Load ES Producers for any conditions not yet in GT...
0003 #
0004 # The intention is that this file should shrink with time as conditions are added to GT.
0005 #
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 import sys
0009 from Configuration.Eras.Modifier_run2_HI_specific_cff import run2_HI_specific
0010 #from Configuration.Eras.Era_Run2_2016_pA_cff import Run2_2016_pA
0011 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
0012 
0013 
0014 #
0015 # Legacy Trigger:  No Hacks Needed
0016 #
0017 from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
0018 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
0019 
0020 def _load(process, f):
0021     process.load(f)
0022 
0023 #
0024 # Stage-1 Trigger
0025 #
0026 # Switch between HI and PP calo configuration:
0027 modifyL1TCalorimeterHackConditions_stage1HI = (stage1L1Trigger & ~stage2L1Trigger & run2_HI_specific).makeProcessModifier(lambda p: _load(p, "L1Trigger.L1TCalorimeter.caloConfigStage1HI_cfi"))
0028 modifyL1TCalorimeterHackConditions_stage1PP = (stage1L1Trigger & ~stage2L1Trigger & ~run2_HI_specific).makeProcessModifier(lambda p: _load(p, "L1Trigger.L1TCalorimeter.caloConfigStage1PP_cfi"))
0029 # Override Calo Scales:
0030 modifyL1TCalorimeterHackConditions_stage1Common = (stage1L1Trigger & ~stage2L1Trigger).makeProcessModifier(lambda p: _load(p, "L1Trigger.L1TCalorimeter.caloScalesStage1_cff"))
0031 # CaloParams is in the DB for Stage-1
0032 
0033 
0034 #
0035 # Stage-2 Trigger
0036 #
0037 modifyL1TCalorimeterHackConditions_stage2PA = (stage2L1Trigger & pA_2016).makeProcessModifier(lambda p: _load(p, "L1Trigger.L1TCalorimeter.caloStage2Params_2016_v3_3_1_HI_cfi"))
0038 modifyL1TCalorimeterHackConditions_stage2PP = (stage2L1Trigger & ~pA_2016).makeProcessModifier(lambda p: _load(p, "L1Trigger.L1TCalorimeter.caloStage2Params_2017_v1_8_4_cfi"))
0039 # What about CaloConfig?  Related:  How will we switch PP/HH?
0040 #