10 """produce a list with two HelperToolConfigTool instances
11 This list will initialise a Gaudi ToolArray
13 This scenario has no arguments - it is illustrative only
15 The tree vector 0 is [0, 0, 0]
16 pos 0: root; pos 1 backward jet; pos 2 forward jet;
18 The tree vector 0 is [0, 0, 1, 1]
19 pos 0: root; pos 1 dijet; pos 2 dijet j0; pos 3 dijet j1;
21 There is a Repeated Condition configurer for each position
23 No conditions are filtered"""
25 assert scenario.startswith(
'FBDJSHARED'),\
26 'routing error, module %s: bad scenario %s' % (__name__, scenario)
37 condargs.append((
'et', vals))
40 condargs.append((
'neta', vals))
42 repcondargs.append(RepeatedConditionParams(tree_id = 1,
44 chainPartInd=chainPartInd,
51 condargs.append((
'et', vals))
54 condargs.append((
'peta', vals))
56 repcondargs.append(RepeatedConditionParams(tree_id = 2,
58 chainPartInd=chainPartInd,
63 nconds = len(repcondargs)
65 filterparam_inds = [-1
for i
in range(nconds)]
70 assert treevec == [0, 0, 0]
72 helperparams = HelperConfigToolParams(treevec=treevec,
73 repcondargs=repcondargs,
74 filterparams=filterparams,
75 filterparam_inds=filterparam_inds)
76 helperparamslist = [helperparams]
85 condargs.append((
'djmass', vals))
88 condargs.append((
'djdphi', vals))
91 repcondargs.append(RepeatedConditionParams(tree_id = 1,
101 condargs.append((
'et', vals))
103 vals =
defaults(
'eta', lo=
'0', hi=
'490')
104 condargs.append((
'eta', vals))
106 repcondargs.append(RepeatedConditionParams(tree_id = 2,
108 chainPartInd=chainPartInd,
115 condargs.append((
'et', vals))
117 vals =
defaults(
'eta', lo=
'0', hi=
'490')
118 condargs.append((
'eta', vals))
120 repcondargs.append(RepeatedConditionParams(tree_id = 3,
122 chainPartInd=chainPartInd,
127 nconds = len(repcondargs)
129 filterparam_inds = [-1
for i
in range(nconds)]
136 assert treevec == [0, 0, 1, 1]
138 helperparams = HelperConfigToolParams(treevec=treevec,
139 repcondargs=repcondargs,
140 filterparams=filterparams,
141 filterparam_inds=filterparam_inds)
145 assert len(repcondargs) == len(filterparam_inds)
147 helperparamslist.append(helperparams)
148 return helperparamslist