ATLAS Offline Software
Loading...
Searching...
No Matches
python.Timeout Namespace Reference

Functions

 run (flags)

Function Documentation

◆ run()

python.Timeout.run ( flags)
Test timeout handling in athenaHLT

Definition at line 7 of file Timeout.py.

7def 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
Definition run.py:1