ATLAS Offline Software
Functions
python.Timeout Namespace Reference

Functions

def run (flags)
 

Function Documentation

◆ run()

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

Definition at line 7 of file Timeout.py.

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
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
SGInputLoaderConfig.SGInputLoaderCfg
def SGInputLoaderCfg(flags, Load=None, **kwargs)
Definition: SGInputLoaderConfig.py:7
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195