Example #1
0
    def __init__(self,
                 name,
                 Algorithm,
                 RequiredSelections=[],
                 OutputBranch="Phys",
                 InputDataSetter="Inputs",
                 OutputDataSetter="Output",
                 Extension="Particles"):

        checkName(name)

        UniquelyNamedObject.__init__(self, name)
        ClonableObject.__init__(self, locals())

        _outputLocation = makeOutputLocation(name=self.name(),
                                             branch=OutputBranch,
                                             leaf=Extension)

        alg = Algorithm.clone(name)

        SelectionBase.__init__(self,
                               algorithm=alg,
                               outputLocation=_outputLocation,
                               requiredSelections=RequiredSelections)

        connectToRequiredSelections(self, InputDataSetter)
        setOutputLocation(self, OutputDataSetter)
    def __init__(self, name, Algorithm, Output, RequiredSelection=[]):

        checkName(name)
        UniquelyNamedObject.__init__(self, name)
        ClonableObject.__init__(self, locals())

        alg = Algorithm.clone(name, OutputVerticesName=Output)
        SelectionBase.__init__(self,
                               algorithm=alg,
                               outputLocation=Output,
                               requiredSelections=RequiredSelection)