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 65 of file test_hypoConfigBuilder.py.

65 def list_chains():
66  for i, c in enumerate(chains):
67  logger.debug('%2d ' + c.name, i)
68 
69 

◆ order_chainparts()

def python.test_hypoConfigBuilder.order_chainparts (   d)

Definition at line 100 of file test_hypoConfigBuilder.py.

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

◆ testChainDictMaker()

def python.test_hypoConfigBuilder.testChainDictMaker (   idict)

Definition at line 49 of file test_hypoConfigBuilder.py.

49 def testChainDictMaker(idict):
50 
51  if idict >= 0:
52  chain_props = [chains[idict]]
53  else:
54  chain_props = chains
55 
56  result = []
57  for cp in chain_props:
58  logger.debug(cp)
59  chain_dict = dictFromChainName(flags, cp)
60  result.append((cp.name, chain_dict))
61 
62  return result
63 
64 

Variable Documentation

◆ action

python.test_hypoConfigBuilder.action

Definition at line 83 of file test_hypoConfigBuilder.py.

◆ args

python.test_hypoConfigBuilder.args

Definition at line 91 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 88 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 98 of file test_hypoConfigBuilder.py.

◆ do_dot

python.test_hypoConfigBuilder.do_dot

Definition at line 122 of file test_hypoConfigBuilder.py.

◆ dotdir

python.test_hypoConfigBuilder.dotdir

Definition at line 130 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 79 of file test_hypoConfigBuilder.py.

◆ hypo_tool

python.test_hypoConfigBuilder.hypo_tool

Definition at line 127 of file test_hypoConfigBuilder.py.

◆ iprop

python.test_hypoConfigBuilder.iprop

Definition at line 97 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 74 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 80 of file test_hypoConfigBuilder.py.

python.test_hypoConfigBuilder.order_chainparts
def order_chainparts(d)
Definition: test_hypoConfigBuilder.py:100
DictFromChainName.dictFromChainName
def dictFromChainName(flags, chainInfo)
Definition: DictFromChainName.py:626
python.test_hypoConfigBuilder.list_chains
def list_chains()
Definition: test_hypoConfigBuilder.py:65
python.test_hypoConfigBuilder.testChainDictMaker
def testChainDictMaker(idict)
Definition: test_hypoConfigBuilder.py:49
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.