66 """calculate the parameters needed to generate a hypo helper config AlgTool
67 starting from a the hypoScenario which appears in the chainname for
68 a DIPZ mlpl condition. """
70 assert scenario.startswith(
'Z'),\
71 'routing error, module %s: bad scenario %s' % (__name__, scenario)
73 m = rgx_pattern.match(scenario)
75 assert m
is not None, \
76 'scenario_dipz.py - regex part %s does not match scenario %s' % (
77 pattern_dipz, scenario)
79 groupdict = m.groupdict()
95 repcondargs.append(RepeatedConditionParams(tree_id=2,
98 chainPartInd=chainPartInd,
100 filterparam_inds.append(-1)
103 repcondargs.append(RepeatedConditionParams(tree_id=1,
105 multiplicity=
int(chooseN),
106 chainPartInd=chainPartInd,
107 condargs=condargs_kin))
108 filterparam_inds.append(-1)
113 assert treevec == [0, 0, 1]
115 assert len(repcondargs) == len(filterparam_inds)
118 helper_params = HelperConfigToolParams(treevec=treevec,
119 repcondargs=repcondargs,
120 filterparams=filterparams,
121 filterparam_inds=filterparam_inds)
123 return [helper_params]