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