Package Ganga :: Package Lib :: Package Splitters :: Module ArgSplitter' :: Class ArgSplitter :: Class _proxyClass
[hide private]
[frames] | no frames]

Class _proxyClass

source code

    object --+    
             |    
GPIProxyObject --+
                 |
                Lib.Splitters.ArgSplitter'.ArgSplitter._proxyClass


    Split job by changing the args attribute of the application.

    This splitter only applies to the applications which have args attribute (e.g. Executable, Root).
    It is a special case of the GenericSplitter.

    This splitter allows the creation of a series of subjobs where
    the only difference between different jobs are their
    arguments. Below is an example that executes a ROOT script ~/analysis.C

    void analysis(const char* type, int events) {
      std::cout << type << "  " << events << std::endl;
    }

    with 3 different sets of arguments.

    s = ArgSplitter(args=[['AAA',1],['BBB',2],['CCC',3]])
    r = Root(version='5.10.00',script='~/analysis.C')
    j.Job(application=r, splitter=s)

    Notice how each job takes a list of arguments (in this case a list
    with a string and an integer). The splitter thus takes a list of
    lists, in this case with 3 elements so there will be 3 subjobs.

    Running the subjobs will produce the output:
    subjob 1 : AAA  1
    subjob 2 : BBB  2
    subjob 3 : CCC  3


Properties:

     args A list of lists of arguments to pass to script. (simple property,
          list, default=[],comparable)

Nested Classes [hide private]
  _impl
This is a Ganga.GPI.ArgSplitter implementation class.
Instance Methods [hide private]
 
__eq__(self, x)
Equality operator (==), compare the ArgSplitter properties which are declared as [comparable].
source code
 
__init__(self, *args, **kwds)
GPI ArgSplitter object constructor: ArgSplitter() : create argsplitter with default settings; ArgSplitter(a) : make a copy of a; ArgSplitter(a,x=a,...): make a copy of a and set property 'x' to a, etc..
source code
 
__ne__(self, x)
Non-equality operator (!=).
source code
 
__repr__(self)
Return an short representation of ArgSplitter object.
source code
 
__setattr__(self, x, v)
Set a property of ArgSplitter with consistency and safety checks.
source code
 
__str__(self)
Return a printable string representing ArgSplitter object as a tree of properties.
source code
 
copy(self)
Make an identical copy of self.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Variables [hide private]
  args = <Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at ...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwds)
(Constructor)

source code 

GPI ArgSplitter object constructor: ArgSplitter() : create argsplitter with default settings; ArgSplitter(a) : make a copy of a; ArgSplitter(a,x=a,...): make a copy of a and set property 'x' to a, etc..

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

Return an short representation of ArgSplitter object.

Overrides: object.__repr__

__setattr__(self, x, v)

source code 

Set a property of ArgSplitter with consistency and safety checks. Setting a [protected] or a unexisting property raises AttributeError.

Overrides: object.__setattr__

__str__(self)
(Informal representation operator)

source code 

Return a printable string representing ArgSplitter object as a tree of properties.

Overrides: object.__str__

Class Variable Details [hide private]

args

Value:
<Ganga.GPIDev.Base.Proxy.ProxyDataDescriptor object at 0x1cb1410>