65 """calculate the parameters needed to generate a hypo helper config AlgTool
66 starting from a the hypoScenario which appears in the chainname for
67 an HT condition. The HT condition is filtered"""
69 assert scenario.startswith(
'HT'),\
70 'routing error, module %s: bad scenario %s' % (__name__, scenario)
73 m = rgx_pt.match(scenario)
76 m = rgx_et.match(scenario)
77 groupdict = m.groupdict()
84 condargs.append((
'ht', vals))
87 repcondargs = [RepeatedConditionParams(tree_id = 1,
89 chainPartInd=chainPartInd,
91 invert=
'veto' in scenario)]
100 repfiltargs = [RepeatedConditionParams(tree_id=1,
103 filterparams = [FilterParams(typename=
'ConditionFilter',
105 filterparam_inds = [0]
109 filterparam_inds = [-1]
116 assert treevec == [0, 0]
118 assert len(repcondargs) == len(filterparam_inds)
121 helper_params = HelperConfigToolParams(treevec=treevec,
122 repcondargs=repcondargs,
123 filterparams=filterparams,
124 filterparam_inds=filterparam_inds)
126 return [helper_params]