63 """calculate the parameters needed to generate a hypo helper config AlgTool
64 starting from a the hypoScenario which appears in the chainname for
65 a DIPZ MLPL + HT condition. """
67 assert scenario.startswith(
'HTZ'),\
68 'routing error, module %s: bad scenario %s' % (__name__, scenario)
70 m = rgx_pattern.match(scenario)
72 assert m
is not None, \
73 'scenario_htdipz.py - regex part %s does not match scenario %s' % (
74 pattern_full, scenario)
76 groupdict = m.groupdict()
92 repcondargs.append(RepeatedConditionParams(tree_id=2,
95 chainPartInd=chainPartInd,
96 condargs=condargsHTZ))
97 filterparam_inds.append(-1)
100 repcondargs.append(RepeatedConditionParams(tree_id=1,
102 multiplicity=
int(chooseN),
103 chainPartInd=chainPartInd,
104 condargs=condargs_kin))
105 filterparam_inds.append(-1)
110 assert treevec == [0, 0, 1]
112 assert len(repcondargs) == len(filterparam_inds)
115 helper_params = HelperConfigToolParams(treevec=treevec,
116 repcondargs=repcondargs,
117 filterparams=filterparams,
118 filterparam_inds=filterparam_inds)
119 return [helper_params]