385 def __init__(self, flags, selectionCA, HypoToolGen):
386 self.ca = selectionCA
388 self.hypoAcc = selectionCA.hypoAcc
391 self._sequence = Node(Alg=sequence)
395 assert len(inputMaker) == 1, f
"{len(inputMaker)} input makers in the ComponentAccumulator"
396 inputMaker = inputMaker[0]
397 assert inputMaker.name.startswith(
"IM"), f
"Input maker {inputMaker.name} name needs to start with 'IM'"
398 self._maker = InputMakerNode( Alg = inputMaker )
399 input_maker_output = self.maker.readOutputList()[0]
403 hypoAlg = selectionCA.hypoAcc.getEventAlgos()
404 assert len(hypoAlg) == 1, f
"{len(hypoAlg)} hypo algs in the ComponentAccumulator"
406 hypoAlg.RuntimeValidation = flags.Trigger.doRuntimeNaviVal
408 self._name = CFNaming.menuSequenceName(hypoAlg.name)
409 self._hypo = HypoAlgNode( Alg = hypoAlg )
410 self._hypo.addOutput( CFNaming.hypoAlgOutName(hypoAlg.name) )
411 self._hypo.setPreviousDecision( input_maker_output )
412 self._hypoToolConf = HypoToolConf( HypoToolGen )
415 if ROBPrefetching.StepRoI
in flags.Trigger.ROBPrefetchingOptions:
416 for child
in sequence.Members:
417 if ( isinstance(child, CompFactory.ROBPrefetchingAlg)
and
418 input_maker_output
not in child.ROBPrefetchingInputDecisions ):
419 child.ROBPrefetchingInputDecisions.append(input_maker_output)
421 log.debug(
"connecting InputMaker and HypoAlg, adding: InputMaker::%s.output=%s",
422 self.maker.Alg.name, input_maker_output)
423 log.debug(
"HypoAlg::%s.HypoInputDecisions=%s, HypoAlg::%s.HypoOutputDecisions=%s",
424 self.hypo.Alg.name, self.hypo.readInputList()[0],
425 self.hypo.Alg.name, self.hypo.readOutputList()[0])