ATLAS Offline Software
Timeout.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 import TrigExamples.MTCalibPebConfig as Conf
5 
6 
7 def run(flags):
8  """Test timeout handling in athenaHLT"""
9 
10  # Setup flags
11  Conf.set_flags(flags)
12  flags.lock()
13  cfg = ComponentAccumulator()
14 
15  # Configure the HLT algorithms
16  hypo_tools = [Conf.make_hypo_tool('HLT_MTCalibPeb{:d}'.format(num)) for num in range(1, 4)]
17  for tool in hypo_tools:
18  # 100% accept rate, no ROB requests, sleeps for up to 1.4 seconds
19  tool.RandomAcceptRate = 1.0
20  tool.ROBAccessDict = {}
21  tool.BurnTimePerCycleMillisec = 200
22  tool.NumBurnCycles = 7
23  tool.PEBROBList = [0x7c0000]
24 
25  hypo = Conf.make_hypo_alg('HypoAlg1')
26  hypo.HypoTools = hypo_tools
27 
28  # SGInputLoader takes care of unmet input dependencies (e.g. triggering conversion from BS)
29  from SGComps.SGInputLoaderConfig import SGInputLoaderCfg
30  cfg.merge(SGInputLoaderCfg(flags))
31 
32  # Configure the L1 and HLT sequences
33  cfg.merge( Conf.l1_seq_cfg(flags) )
34  cfg.merge( Conf.hlt_seq_cfg(flags,
35  num_chains=1, # ignored if hypo_algs argument given
36  concurrent=False, # ignored if hypo_algs argument given
37  hypo_algs=[hypo]) )
38 
39  return cfg
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
vtune_athena.format
format
Definition: vtune_athena.py:14
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
python.Timeout.run
def run(flags)
Definition: Timeout.py:7