Skip to content
Snippets Groups Projects
Commit 7c4091c6 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

TrigExamples: cleanup some unused code in MTCalibPeb

parent 34c77e76
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
#
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator, conf2toConfigurable
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
from AthenaConfiguration.ComponentFactory import CompFactory
from AthenaConfiguration.Enums import Format
from AthenaCommon.CFElements import seqOR, parOR
......@@ -318,7 +318,7 @@ def make_summary_algs(hypo_algs):
return [summary, summMaker]
def hlt_seq_cfg(flags, num_chains, concurrent=False, hackCA2Global=False, hypo_algs=None):
def hlt_seq_cfg(flags, num_chains, concurrent=False, hypo_algs=None):
acc = ComponentAccumulator()
# Sequences need to ensure that summary algs run after all hypos
......@@ -335,14 +335,6 @@ def hlt_seq_cfg(flags, num_chains, concurrent=False, hackCA2Global=False, hypo_a
acc.addEventAlgo(summary_algs, sequenceName='hltEndSeq')
acc.merge(hlt_result_ca)
# Hack to work around a shortcoming of CA2GlobalWrapper when a component
# has an empty ToolHandle and CA adds a tool to the handle
if hackCA2Global:
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from AthenaCommon.Configurable import ConfigurableCABehavior
with ConfigurableCABehavior(target_state=0):
svcMgr.HltEventLoopMgr.ResultMaker = conf2toConfigurable(acc.getService('HltEventLoopMgr').ResultMaker)
return acc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment