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

Functions

 testChainDictMaker (idict)
 list_chains ()
 order_chainparts (d)

Variables

list DevGroup = ['Development']
 logger = logging.getLogger( __name__)
 flags = initConfigFlags()
 Files
list chains
 parser = argparse.ArgumentParser()
 help
 type
 action
 default
 args = parser.parse_args()
 iprop = args.iprop
 dicts = testChainDictMaker(iprop)
 do_dot = args.dot
 hypo_tool = hypotool_from_chaindict(d)
 dotdir

Detailed Description

Make chain dicts for testing jet hypo config modules

Function Documentation

◆ list_chains()

python.test_hypoConfigBuilder.list_chains ( )

Definition at line 71 of file test_hypoConfigBuilder.py.

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

◆ order_chainparts()

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()

python.test_hypoConfigBuilder.testChainDictMaker ( idict)

Definition at line 55 of file test_hypoConfigBuilder.py.

55def 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 = parser.parse_args()

Definition at line 97 of file test_hypoConfigBuilder.py.

◆ chains

list python.test_hypoConfigBuilder.chains
Initial value:
1= [
2
3 ChainProp(name='HLT_j45a_pf_ftf_preselj20_L1J15', l1SeedThresholds=['FSNOSEED'], stream=[PhysicsStream,'express'], groups=SingleJetGroup+SupportLegGroup+['RATE:CPS_J15'], monGroups=['jetMon:t0','jetMon:online','idMon:shifter','caloMon:t0']),
4
5 ChainProp(name='HLT_j0_DIPZ50XX4j20_roiftf_preselj20_L13J35p0ETA23', l1SeedThresholds=['FSNOSEED'], stream=[PhysicsStream,'express'], groups=MultiJetGroup+SupportLegGroup, monGroups=['jetMon:t0','jetMon:online']),
6 ChainProp(name='HLT_j0_DIPZ50XX4j20_MAXMULT20_roiftf_preselj20_L13J35p0ETA23', l1SeedThresholds=['FSNOSEED'], stream=[PhysicsStream,'express'], groups=MultiJetGroup+SupportLegGroup, monGroups=['jetMon:t0','jetMon:online']),
7 ChainProp(name='HLT_4j110_pf_ftf_presel4jDIPZ50X20pt_L13J50', l1SeedThresholds=['FSNOSEED'], stream=[PhysicsStream,'express'], groups=MultiJetGroup+SupportLegGroup, monGroups=['jetMon:t0','jetMon:online']),
8
9 ChainProp(name='HLT_j0_HT400XX15ptXX0eta490_j45a_pf_ftf_preselj20_L1J15', l1SeedThresholds=['FSNOSEED']*2, stream=[PhysicsStream,'express'], groups=SingleJetGroup+SupportLegGroup+['RATE:CPS_J15'], monGroups=['jetMon:t0','jetMon:online','idMon:shifter','caloMon:t0']),
10
11
12 ChainProp(name='HLT_j0_HT400XX15ptXX0eta490XXveto_j45a_pf_ftf_preselj20_L1J15', l1SeedThresholds=['FSNOSEED']*2, stream=[PhysicsStream,'express'], groups=SingleJetGroup+SupportLegGroup+['RATE:CPS_J15'], monGroups=['jetMon:t0','jetMon:online','idMon:shifter','caloMon:t0']),
13
14 ChainProp(name='HLT_j0_MULT0mult11XX15ptXX0eta490_j45a_pf_ftf_preselj20_L1J15', l1SeedThresholds=['FSNOSEED']*2, stream=[PhysicsStream,'express'], groups=SingleJetGroup+SupportLegGroup+['RATE:CPS_J15'], monGroups=['jetMon:t0','jetMon:online','idMon:shifter','caloMon:t0']),
15 ]

Definition at line 39 of file test_hypoConfigBuilder.py.

◆ default

python.test_hypoConfigBuilder.default

Definition at line 94 of file test_hypoConfigBuilder.py.

◆ DevGroup

list python.test_hypoConfigBuilder.DevGroup = ['Development']

Definition at line 11 of file test_hypoConfigBuilder.py.

◆ dicts

python.test_hypoConfigBuilder.dicts = testChainDictMaker(iprop)

Definition at line 104 of file test_hypoConfigBuilder.py.

◆ do_dot

bool python.test_hypoConfigBuilder.do_dot = args.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 = initConfigFlags()

Definition at line 33 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 = hypotool_from_chaindict(d)

Definition at line 133 of file test_hypoConfigBuilder.py.

◆ iprop

python.test_hypoConfigBuilder.iprop = args.iprop

Definition at line 103 of file test_hypoConfigBuilder.py.

◆ logger

python.test_hypoConfigBuilder.logger = logging.getLogger( __name__)

Definition at line 28 of file test_hypoConfigBuilder.py.

◆ parser

python.test_hypoConfigBuilder.parser = argparse.ArgumentParser()

Definition at line 80 of file test_hypoConfigBuilder.py.

◆ type

python.test_hypoConfigBuilder.type

Definition at line 86 of file test_hypoConfigBuilder.py.