ATLAS Offline Software
Functions | Variables
python.test_hypoConfigBuilder Namespace Reference

Functions

def testChainDictMaker (idict)
 
def list_chains ()
 
def order_chainparts (d)
 

Variables

 DevGroup
 
 logger
 
 flags
 
 Files
 
 chains
 
 name
 
 l1SeedThresholds
 
 stream
 
 groups
 
 monGroups
 
 SupportLegGroup
 
 parser
 
 help
 
 type
 
 action
 
 default
 
 args
 
 iprop
 
 dicts
 
 do_dot
 
 hypo_tool
 
 dotdir
 

Function Documentation

◆ list_chains()

def python.test_hypoConfigBuilder.list_chains ( )

Definition at line 71 of file test_hypoConfigBuilder.py.

71 def list_chains():
72  for i, c in enumerate(chains):
73  logger.debug('%2d ' + c.name, i)
74 
75 

◆ order_chainparts()

def python.test_hypoConfigBuilder.order_chainparts (   d)

Definition at line 106 of file test_hypoConfigBuilder.py.

106  def order_chainparts(d):
107  cdict = d[1]
108  # crass "fix" for out of order chainparts
109  # these errors probably arise from calling
110  # not-quite-correct menu code.
111  chain_part_inds = [cp['chainPartIndex'] for cp in cdict['chainParts']]
112  fix = chain_part_inds == sorted(chain_part_inds)
113  if not fix:
114  fix = chain_part_inds[-1] - chain_part_inds[0] == len(chain_part_inds)
115 
116 
117  if fix:
118  cpi = 0
119  for cp in cdict['chainParts']:
120  cp['chainPartIndex'] = cpi
121  cpi += 1
122 
123 

◆ testChainDictMaker()

def python.test_hypoConfigBuilder.testChainDictMaker (   idict)

Definition at line 55 of file test_hypoConfigBuilder.py.

55 def testChainDictMaker(idict):
56 
57  if idict >= 0:
58  chain_props = [chains[idict]]
59  else:
60  chain_props = chains
61 
62  result = []
63  for cp in chain_props:
64  logger.debug(cp)
65  chain_dict = dictFromChainName(flags, cp)
66  result.append((cp.name, chain_dict))
67 
68  return result
69 
70 

Variable Documentation

◆ action

python.test_hypoConfigBuilder.action

Definition at line 89 of file test_hypoConfigBuilder.py.

◆ args

python.test_hypoConfigBuilder.args

Definition at line 97 of file test_hypoConfigBuilder.py.

◆ chains

python.test_hypoConfigBuilder.chains

Definition at line 39 of file test_hypoConfigBuilder.py.

◆ default

python.test_hypoConfigBuilder.default

Definition at line 94 of file test_hypoConfigBuilder.py.

◆ DevGroup

python.test_hypoConfigBuilder.DevGroup

Definition at line 11 of file test_hypoConfigBuilder.py.

◆ dicts

python.test_hypoConfigBuilder.dicts

Definition at line 104 of file test_hypoConfigBuilder.py.

◆ do_dot

python.test_hypoConfigBuilder.do_dot

Definition at line 128 of file test_hypoConfigBuilder.py.

◆ dotdir

python.test_hypoConfigBuilder.dotdir

Definition at line 136 of file test_hypoConfigBuilder.py.

◆ Files

python.test_hypoConfigBuilder.Files

Definition at line 34 of file test_hypoConfigBuilder.py.

◆ flags

python.test_hypoConfigBuilder.flags

Definition at line 33 of file test_hypoConfigBuilder.py.

◆ groups

python.test_hypoConfigBuilder.groups

Definition at line 41 of file test_hypoConfigBuilder.py.

◆ help

python.test_hypoConfigBuilder.help

Definition at line 85 of file test_hypoConfigBuilder.py.

◆ hypo_tool

python.test_hypoConfigBuilder.hypo_tool

Definition at line 133 of file test_hypoConfigBuilder.py.

◆ iprop

python.test_hypoConfigBuilder.iprop

Definition at line 103 of file test_hypoConfigBuilder.py.

◆ l1SeedThresholds

python.test_hypoConfigBuilder.l1SeedThresholds

Definition at line 41 of file test_hypoConfigBuilder.py.

◆ logger

python.test_hypoConfigBuilder.logger

Definition at line 28 of file test_hypoConfigBuilder.py.

◆ monGroups

python.test_hypoConfigBuilder.monGroups

Definition at line 41 of file test_hypoConfigBuilder.py.

◆ name

python.test_hypoConfigBuilder.name

Definition at line 41 of file test_hypoConfigBuilder.py.

◆ parser

python.test_hypoConfigBuilder.parser

Definition at line 80 of file test_hypoConfigBuilder.py.

◆ stream

python.test_hypoConfigBuilder.stream

Definition at line 41 of file test_hypoConfigBuilder.py.

◆ SupportLegGroup

python.test_hypoConfigBuilder.SupportLegGroup

Definition at line 43 of file test_hypoConfigBuilder.py.

◆ type

python.test_hypoConfigBuilder.type

Definition at line 86 of file test_hypoConfigBuilder.py.

python.test_hypoConfigBuilder.order_chainparts
def order_chainparts(d)
Definition: test_hypoConfigBuilder.py:106
DictFromChainName.dictFromChainName
def dictFromChainName(flags, chainInfo)
Definition: DictFromChainName.py:626
python.test_hypoConfigBuilder.list_chains
def list_chains()
Definition: test_hypoConfigBuilder.py:71
python.test_hypoConfigBuilder.testChainDictMaker
def testChainDictMaker(idict)
Definition: test_hypoConfigBuilder.py:55
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.