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