コード例 #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)
コード例 #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)
コード例 #3
0
ファイル: selection.py プロジェクト: hackerlank/lhcb-software
    def __init__ (self,
                  Location) :

        NamedObject.__init__(self, Location.replace('/', '_'))
        SelectionBase.__init__(self,
                               algorithm = None,
                               outputLocation=Location,
                               requiredSelections = [] )
コード例 #4
0
ファイル: selection.py プロジェクト: hackerlank/lhcb-software
    def __init__(self,
                 name,
                 ConfGenerator ) :

        UniquelyNamedObject.__init__(self, name)
        ClonableObject.__init__(self, locals())
        SelectionBase.__init__(self,
                               algorithm =ConfGenerator( self.name() ) ,
                               outputLocation='',
                               requiredSelections = [] )
コード例 #5
0
    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)
コード例 #6
0
ファイル: selection.py プロジェクト: hackerlank/lhcb-software
    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)
コード例 #7
0
ファイル: selection.py プロジェクト: hackerlank/lhcb-software
    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)