90def testHLTTree( inputSequence ):
91 """ Run all config tests """
92
93 viewMakers = collectViewMakers( inputSequence )
94
95
96 viewNodes = {}
97 for viewMaker in viewMakers:
98 viewNodes[ viewMaker.ViewNodeName ] = False
99 originalLength = len( viewNodes )
100
101
102 wholeEventAlgs, viewAlgs = findViewAlgs( inputSequence.getChildren(), viewNodes )
103
104
105 if len( viewNodes ) != originalLength:
106 raise RuntimeError( "Something went wrong with view config inspection" )
107 for viewNode in viewNodes.keys():
108 if not viewNodes[ viewNode ]:
109 raise RuntimeError( "EventView CF node " + viewNode + " was not found attached to the test sequence" )
110
111
112 for viewAlgName in viewAlgs:
113 if viewAlgName in wholeEventAlgs:
114 from AthenaCommon.AlgSequence import dumpSequence
115 dumpSequence( inputSequence )
116 raise RuntimeError( viewAlgName + " is attached to an EventView node, but also runs in the whole event context" )
117
118
119 allEVCAs = {}
120 checkVDV( inputSequence.getChildren(), [inputSequence.name()], allEVCAs )
121
122
123 if len( allEVCAs ) != originalLength:
124 raise RuntimeError( "EventView creator alg search found different results in structured search (" + str(originalLength) + ") versus naive search (" + str( len( allEVCAs ) ) + "). Implies menu structure error" )