108 """For each element of node.conf_attrs, construct a
109 ConditionContainer. Example for chain HLT_2j80_3j60_L1J15:
113 (defaultdict(<class 'dict'>, {
114 'et': {'min': '80000.0', 'max': 'inf'},
115 'eta': {'min': '0.0', 'max': '3.2'}}), 2)
119 (defaultdict(<class 'dict'>, {'et': {'min': '60000.0', 'max': 'inf'},
120 'eta': {'min': '0.0', 'max': '3.2'}}), 3)
126 outer_condition_tools = []
131 assert len(node.conf_attrs) == 1
132 mult = node.multiplicity
133 for i
in range(len(node.conf_attrs)):
134 c = node.conf_attrs[i]
137 if node.chainpartinds:
138 cpi = node.chainpartinds[i]
149 condition_tool.chainPartInd = int(cpi[len(
'leg'):])
151 condition_tool.conditionMakers = el_condition_tools
152 condition_tool.multiplicity = mult
154 outer_condition_tools.append(condition_tool)
156 return outer_condition_tools
193 assert (len(node.compound_condition_tools) == 1)
194 cmap[node.node_id] = node.compound_condition_tools[0]
196 fmap[node.node_id] = node.filter_condition_tool
202 cmap[node.node_id].multiplicity = 1
205 fmap[node.node_id].conditionMakers = []
206 fmap[node.node_id].multiplicity = 1
209 for cn
in node.children:
229 """Entry point for this module.
230 Modifies a (usually compound) hypo tree node to
231 reduce it to form from whuch the treevector, and conditionsVector
232 These will be used to initialise FastReductionMatcher.
234 In particular: all leaf nodes will have a single ConmpoundCondition
235 All other nodes will be assigned an AcceptAll condition.
253 filterConditionsMap = {}
260 filterConditionsVec = self.
_map_2_vec(filterConditionsMap)
267 config_tool.filtConditionsMakers = filterConditionsVec
268 config_tool.treeVector = treeVec