From de0fd9a739db2a2b1a96fe324f403c298432fa87 Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Tue, 19 Oct 2021 01:05:05 +0200 Subject: [PATCH] Explicitly remove and insert AlCa_LumiPixelsCounts_{Random,ZeroBias}_v1 in HLTSchedule --- .../Configuration/python/customizeHLTforPatatrack.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/HLTrigger/Configuration/python/customizeHLTforPatatrack.py b/HLTrigger/Configuration/python/customizeHLTforPatatrack.py index fcf9f57c0b381..db2e4a52ad54e 100644 --- a/HLTrigger/Configuration/python/customizeHLTforPatatrack.py +++ b/HLTrigger/Configuration/python/customizeHLTforPatatrack.py @@ -230,6 +230,9 @@ def customisePixelLocalReconstruction(process): # workaround for AlCa paths if 'AlCa_LumiPixelsCounts_Random_v1' in process.__dict__: + if "HLTSchedule" in process.__dict__: + ind = process.HLTSchedule.index(process.AlCa_LumiPixelsCounts_Random_v1) + process.HLTSchedule.remove(process.AlCa_LumiPixelsCounts_Random_v1) # redefine the path to use the HLTDoLocalPixelSequence process.AlCa_LumiPixelsCounts_Random_v1 = cms.Path( process.HLTBeginSequenceRandom + @@ -239,8 +242,13 @@ def customisePixelLocalReconstruction(process): process.HLTDoLocalPixelSequence + process.hltAlcaPixelClusterCounts + process.HLTEndSequence ) + if "HLTSchedule" in process.__dict__: + process.HLTSchedule.insert(ind, process.AlCa_LumiPixelsCounts_Random_v1) if 'AlCa_LumiPixelsCounts_ZeroBias_v1' in process.__dict__: + if "HLTSchedule" in process.__dict__: + ind = process.HLTSchedule.index(process.AlCa_LumiPixelsCounts_ZeroBias_v1) + process.HLTSchedule.remove(process.AlCa_LumiPixelsCounts_ZeroBias_v1) # redefine the path to use the HLTDoLocalPixelSequence process.AlCa_LumiPixelsCounts_ZeroBias_v1 = cms.Path( process.HLTBeginSequence + @@ -251,6 +259,8 @@ def customisePixelLocalReconstruction(process): process.HLTDoLocalPixelSequence + process.hltAlcaPixelClusterCounts + process.HLTEndSequence ) + if "HLTSchedule" in process.__dict__: + process.HLTSchedule.insert(ind, process.AlCa_LumiPixelsCounts_ZeroBias_v1) # done