Definition at line 28 of file hypoToolTests.py.
 
◆ test_structure()
      
        
          | def python.hypoToolTests.HypoToolStructure.test_structure | ( |  | self | ) |  | 
      
 
Definition at line 29 of file hypoToolTests.py.
   29     def test_structure(self):
 
   32              ChainProp(name=
'HLT_j420_subresjesgscIS_ftf_L1J100',
 
   33                        groups=SingleJetGroup),
 
   34              'connections': dict(((0, [1]),
 
   43              ChainProp(name=
'HLT_j260f_L1J75_31ETA49',
 
   44                        groups=SingleJetGroup),
 
   45              'connections': dict(((0, [1]),
 
   55              ChainProp(name=
'HLT_j80_j60_L1J15',
 
   56                        l1SeedThresholds=[
'FSNOSEED']*2, groups=MultiJetGroup),
 
   57              'connections': dict(((0, [1]),
 
   67             'prop': ChainProp(name=
'HLT_2j80_3j60_L1J15',
 
   68                               l1SeedThresholds=[
'FSNOSEED']*2, groups=MultiJetGroup),
 
   69             'connections': dict(((0, [1]), (1, [2]),
 
   78             'prop': ChainProp(name=
'HLT_j0_HT1000_L1J20',
 
   79                               groups=SingleJetGroup),
 
   81             'connections': dict(((0, [1]),
 
   93                 name=
'HLT_j70_1j50a_j0_DIJET70j12etXX1000djmassXXdjdphi200XX400djdeta_L1MJJ-500-NFF',
 
   94                 l1SeedThresholds=[
'FSNOSEED']*3,
 
   95                 groups=MultiJetGroup),
 
   97             'connections': dict(((0, [1]),
 
  111                 'prop': ChainProp(name=
'HLT_10j40_L1J15',
 
  112                                   l1SeedThresholds=[
'FSNOSEED'],
 
  113                                   groups=MultiJetGroup),
 
  115                 'connections': dict(((0, [1]),
 
  120              'values': [{
'nodeid': 5,
 
  125                 'prop': ChainProp(name=
'HLT_j0_FBDJSHARED_L1J20',
 
  126                                   groups=SingleJetGroup),
 
  128                 'connections': dict(((0, [1]),
 
  134                                      (11, [12, 14, 17, 20]),
 
  143                 'prop': ChainProp(name=
'HLT_j40_j0_HT50XX10etXX0eta320_L1J20',
 
  144                                   l1SeedThresholds=[
'FSNOSEED']*2,
 
  145                                   groups=MultiJetGroup),
 
  147                 'connections': dict(((0, [1]),
 
  161                 'prop': ChainProp(name=
'HLT_j0_FBDJNOSHARED10etXX20etXX34massXX50fbet_L1J20',
 
  162                                   groups=SingleJetGroup),
 
  164                 'connections': dict(((0, [1]),
 
  166                                      (2, [3, 5, 8, 11, 14, 17]),
 
  178                 'prop': ChainProp(name=
'HLT_j45_pf_ftf_preselj20_L1J15',
 
  179                                   groups=SingleJetGroup),
 
  181                 'connections': dict(((0, [1]),
 
  190                 'prop': ChainProp(name=
'HLT_j85_ftf_MASK300ceta210XX300nphi10_L1J20',
 
  191                                   groups=SingleJetGroup),
 
  194                 'connections': dict(((0, [1]),
 
  206                 'prop': ChainProp(name=
'HLT_j0_DIJET80j12etXX0j12eta240XX700djmass_L1J20',
 
  207                                   groups=SingleJetGroup),
 
  211                 'connections': dict(((0, [1]),
 
  218                 'values': [{
'nodeid': 6, 
'min': 
'700000.0', 
'max': 
'inf'},
 
  220                            {
'nodeid': 7, 
'multiplicity': 2},
 
  221                            {
'nodeid': 8, 
'min': 
'80000.0', 
'max': 
'inf'},
 
  222                            {
'nodeid': 9, 
'min': 
'0.0', 
'max': 
'2.4'},
 
  234             for cp 
in chain_dict[
'chainParts']:
 
  235                 cp[
'chainPartIndex'] = cpi
 
  237             chain_name = chain_dict[
'chainName']
 
  240             analyser = HypoToolAnalyser(tool)
 
  243             for k 
in sorted(analyser.node_table.keys()):
 
  244                 node_table.append (
'%d: %s' % (k, analyser.node_table[k]))
 
  246             node_table = 
'\n'.
join(node_table)
 
  248             self.assertTrue(analyser.connections == td[
'connections'],
 
  249                             'fail for case %s expected %s; saw %s \n %s' %(
 
  251                                 str(td[
'connections']),
 
  252                                 str(analyser.connections),
 
  257             for ref_values 
in td[
'values']:
 
  262                 nodeid = ref_values[
'nodeid']
 
  263                 del ref_values[
'nodeid']
 
  264                 subtool = analyser.node_table[nodeid]
 
  268                 for attrname, testval 
in ref_values.items():
 
  269                     toolval = getattr(subtool, attrname)
 
  270                     self.assertEqual(toolval, testval,
 
  271                                     msg=
'%s:  node: %d expected %s saw  %s' % (
 
 
 
The documentation for this class was generated from the following file: