337 def __init__(self, flags, selectionCA, HypoToolGen):
338 self.ca = selectionCA
340 self.hypoAcc = selectionCA.hypoAcc
343 self._sequence = Node(Alg=sequence)
347 assert len(inputMaker) == 1, f
"{len(inputMaker)} input makers in the ComponentAccumulator"
348 inputMaker = inputMaker[0]
349 assert inputMaker.name.startswith(
"IM"), f
"Input maker {inputMaker.name} name needs to start with 'IM'"
350 self._maker = InputMakerNode( Alg = inputMaker )
351 input_maker_output = self.maker.readOutputList()[0]
355 hypoAlg = selectionCA.hypoAcc.getEventAlgos()
356 assert len(hypoAlg) == 1, f
"{len(hypoAlg)} hypo algs in the ComponentAccumulator"
358 hypoAlg.RuntimeValidation = flags.Trigger.doRuntimeNaviVal
360 self._name = CFNaming.menuSequenceName(hypoAlg.name)
361 self._hypo = HypoAlgNode( Alg = hypoAlg )
362 self._hypo.addOutput( CFNaming.hypoAlgOutName(hypoAlg.name) )
363 self._hypo.setPreviousDecision( input_maker_output )
364 self._hypoToolConf = HypoToolConf( HypoToolGen )
367 if ROBPrefetching.StepRoI
in flags.Trigger.ROBPrefetchingOptions:
368 for child
in sequence.Members:
369 if ( isinstance(child, CompFactory.ROBPrefetchingAlg)
and
370 input_maker_output
not in child.ROBPrefetchingInputDecisions ):
371 child.ROBPrefetchingInputDecisions.append(input_maker_output)
373 log.debug(
"connecting InputMaker and HypoAlg, adding: InputMaker::%s.output=%s",
374 self.maker.Alg.name, input_maker_output)
375 log.debug(
"HypoAlg::%s.HypoInputDecisions=%s, HypoAlg::%s.HypoOutputDecisions=%s",
376 self.hypo.Alg.name, self.hypo.readInputList()[0],
377 self.hypo.Alg.name, self.hypo.readOutputList()[0])