Exemplo n.º 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)
Exemplo n.º 2
0
 def __init__(self, name, sequencer, output, requiredSelections):
     UniquelyNamedObject.__init__(self, name)
     ClonableObject.__init__(self, locals())
     SelectionBase.__init__(self,
                            algorithm=sequencer,
                            outputLocation=output,
                            requiredSelections=requiredSelections)
Exemplo n.º 3
0
    def __init__(self,
                 name,
                 ConfGenerator ) :

        UniquelyNamedObject.__init__(self, name)
        ClonableObject.__init__(self, locals())
        SelectionBase.__init__(self,
                               algorithm =ConfGenerator( self.name() ) ,
                               outputLocation='',
                               requiredSelections = [] )
    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)
Exemplo n.º 5
0
    def __init__(self,
                 name,
                 ConfGenerator ,
                 RequiredSelection,
                 InputDataSetter = None ) :

        UniquelyNamedObject.__init__(self, name)
        ClonableObject.__init__(self, locals())
        SelectionBase.__init__(self,
                               algorithm =ConfGenerator( self.name() ) ,
                               outputLocation=RequiredSelection.outputLocation(),
                               requiredSelections = [RequiredSelection] )

        connectToRequiredSelections(self, InputDataSetter)
Exemplo n.º 6
0
    def __init__(self,
                 name,
                 TopSelection,
                 EventPreSelector = [],
                 PostSelectionAlgs = [],
                 sequencerType = DummySequencer) :

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

        self._algos = list(EventPreSelector)
        self._topSelection = TopSelection
        self._algos += flatAlgorithmList(TopSelection)
        self._algos += PostSelectionAlgs
        self._gaudiseq = sequencerType(self.name(), Members = self._algos)
Exemplo n.º 7
0
    def __init__(self,
                 name,
                 ConfGenerator,
                 RequiredSelections = [],
                 OutputBranch = "Phys",
                 InputDataSetter = 'Inputs',
                 OutputDataSetter = 'Output',
                 Extension='Particles') :

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

        _outputLocation = makeOutputLocation(name = self.name(),
                                             branch    = OutputBranch,
                                             leaf      = Extension)
        
        SelectionBase.__init__(self,
                               algorithm = ConfGenerator( self.name() ),
                               outputLocation = _outputLocation,
                               requiredSelections = RequiredSelections )

        connectToRequiredSelections(self, InputDataSetter)
        setOutputLocation(self, OutputDataSetter)