32 ChainProp(name=
'HLT_j420_subresjesgscIS_ftf_L1J100',
33 l1SeedThresholds=[
'FSNOSEED'],
34 groups=SingleJetGroup),
35 'connections': dict(((0, [1]),
44 ChainProp(name=
'HLT_j260f_L1J75_31ETA49',
45 l1SeedThresholds=[
'FSNOSEED'],
46 groups=SingleJetGroup),
47 'connections': dict(((0, [1]),
57 ChainProp(name=
'HLT_j80_j60_L1J15',
58 l1SeedThresholds=[
'FSNOSEED']*2, groups=MultiJetGroup),
59 'connections': dict(((0, [1]),
69 'prop': ChainProp(name=
'HLT_2j80_3j60_L1J15',
70 l1SeedThresholds=[
'FSNOSEED']*2, groups=MultiJetGroup),
71 'connections': dict(((0, [1]), (1, [2]),
80 'prop': ChainProp(name=
'HLT_j0_HT1000_L1J20',
81 l1SeedThresholds=[
'FSNOSEED'],
82 groups=SingleJetGroup),
84 'connections': dict(((0, [1]),
96 name=
'HLT_j70_1j50a_j0_DIJET70j12etXX1000djmassXXdjdphi200XX400djdeta_L1MJJ-500-NFF',
97 l1SeedThresholds=[
'FSNOSEED']*3,
98 groups=MultiJetGroup),
100 'connections': dict(((0, [1]),
114 'prop': ChainProp(name=
'HLT_10j40_L1J15',
115 l1SeedThresholds=[
'FSNOSEED'],
116 groups=MultiJetGroup),
118 'connections': dict(((0, [1]),
123 'values': [{
'nodeid': 5,
128 'prop': ChainProp(name=
'HLT_j0_FBDJSHARED_L1J20',
129 l1SeedThresholds=[
'FSNOSEED'],
130 groups=SingleJetGroup),
132 'connections': dict(((0, [1]),
138 (11, [12, 14, 17, 20]),
147 'prop': ChainProp(name=
'HLT_j40_j0_HT50XX10etXX0eta320_L1J20',
148 l1SeedThresholds=[
'FSNOSEED']*2,
149 groups=MultiJetGroup),
151 'connections': dict(((0, [1]),
165 'prop': ChainProp(name=
'HLT_j0_FBDJNOSHARED10etXX20etXX34massXX50fbet_L1J20',
166 l1SeedThresholds=[
'FSNOSEED'],
167 groups=SingleJetGroup),
169 'connections': dict(((0, [1]),
171 (2, [3, 5, 8, 11, 14, 17]),
183 'prop': ChainProp(name=
'HLT_j45_pf_ftf_preselj20_L1J15',
184 l1SeedThresholds=[
'FSNOSEED'],
185 groups=SingleJetGroup),
187 'connections': dict(((0, [1]),
196 'prop': ChainProp(name=
'HLT_j85_ftf_MASK300ceta210XX300nphi10_L1J20',
197 l1SeedThresholds=[
'FSNOSEED'],
198 groups=SingleJetGroup),
201 'connections': dict(((0, [1]),
213 'prop': ChainProp(name=
'HLT_j0_DIJET80j12etXX0j12eta240XX700djmass_L1J20',
214 l1SeedThresholds=[
'FSNOSEED'],
215 groups=SingleJetGroup),
219 'connections': dict(((0, [1]),
226 'values': [{
'nodeid': 6,
'min':
'700000.0',
'max':
'inf'},
228 {
'nodeid': 7,
'multiplicity': 2},
229 {
'nodeid': 8,
'min':
'80000.0',
'max':
'inf'},
230 {
'nodeid': 9,
'min':
'0.0',
'max':
'2.4'},
239 chain_dict =chain_dict = dictFromChainName(flags, td[
'prop'])
242 for cp
in chain_dict[
'chainParts']:
243 cp[
'chainPartIndex'] = cpi
245 chain_name = chain_dict[
'chainName']
246 tool = hypotool_from_chaindict(chain_dict)
248 analyser = HypoToolAnalyser(tool)
251 for k
in sorted(analyser.node_table.keys()):
252 node_table.append (
'%d: %s' % (k, analyser.node_table[k]))
254 node_table =
'\n'.join(node_table)
256 self.assertTrue(analyser.connections == td[
'connections'],
257 'fail for case %s expected %s; saw %s \n %s' %(
259 str(td[
'connections']),
260 str(analyser.connections),
265 for ref_values
in td[
'values']:
270 nodeid = ref_values[
'nodeid']
271 del ref_values[
'nodeid']
272 subtool = analyser.node_table[nodeid]
276 for attrname, testval
in ref_values.items():
277 toolval = getattr(subtool, attrname)
278 self.assertEqual(toolval, testval,
279 msg=
'%s: node: %d expected %s saw %s' % (