732 def __init__(self, name, inputMaker=None, **inputMakerArgs):
733 super( InEventRecoCA, self ).__init__()
734 self.name = name
735 self.recoSeq = None
736
737 if inputMaker:
738 assert len(inputMakerArgs) == 0, "No support for explicitly passed input maker and and input maker arguments at the same time"
739 self.inputMakerAlg = inputMaker
740 else:
741 assert 'name' not in inputMakerArgs, "The name of input maker is predefined by the name of sequence"
742 args = {'name': "IM"+name,
743 'RoIsLink' : 'initialRoI',
744 'RoIs' : f'{name}RoIs',
745 'RoITool': CompFactory.ViewCreatorInitialROITool(),
746 'mergeUsingFeature': False}
747 args.update(**inputMakerArgs)
748 self.inputMakerAlg = CompFactory.InputMakerForRoI(**args)
749