ATLAS Offline Software
Public Member Functions | Public Attributes | Private Member Functions | List of all members
python.MakerAlgConfig.MakerAlg Class Reference
Collaboration diagram for python.MakerAlgConfig.MakerAlg:

Public Member Functions

def __init__ (self, name, flags, acc, registry, *args, **kw)
 
def __iadd__ (self, configs)
 

Public Attributes

 alg
 
 registry
 
 flags
 
 acc
 

Private Member Functions

def _setRegistry (self, conf)
 

Detailed Description

Definition at line 17 of file MakerAlgConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.MakerAlgConfig.MakerAlg.__init__ (   self,
  name,
  flags,
  acc,
  registry,
args,
**  kw 
)

Definition at line 18 of file MakerAlgConfig.py.

18  def __init__ (self, name, flags, acc, registry, *args, **kw):
19  self.alg = D3PD.MakerAlg (name, *args, **kw)
20  self.registry = registry
21  self.flags = flags
22  self.acc = acc
23  return
24 
25 

Member Function Documentation

◆ __iadd__()

def python.MakerAlgConfig.MakerAlg.__iadd__ (   self,
  configs 
)
Add a new IObjFillerTool to a tree.

Definition at line 26 of file MakerAlgConfig.py.

26  def __iadd__( self, configs ):
27  """Add a new IObjFillerTool to a tree."""
28 
29  # FIXME: should make sure name is unique within alg.
30  nchild = len (self.alg.Tools)
31  if not isinstance(configs, list):
32  configs = [configs]
33  self.alg.Tools += configs
34 
35  for c in self.alg.Tools[nchild:]:
36  # Scan children to set the proper collection getter registry.
37  self._setRegistry (c)
38 
39  D3PDObject.runHooks (c, self.flags, self.acc)
40  return self
41 
42 

◆ _setRegistry()

def python.MakerAlgConfig.MakerAlg._setRegistry (   self,
  conf 
)
private
Scan CONF and all children to set the proper
collection getter registry for this tree.

Definition at line 43 of file MakerAlgConfig.py.

43  def _setRegistry (self, conf):
44  """Scan CONF and all children to set the proper
45  collection getter registry for this tree.
46 """
47 
48  if 'CollectionGetterRegistry' in conf.getDefaultProperties():
49  conf.CollectionGetterRegistry = self.registry
50  if 'BlockFillers' in conf.getDefaultProperties():
51  for c in conf.BlockFillers:
52  self._setRegistry (c)
53  D3PDObject.runHooks (c, self.flags, self.acc)
54  if 'Getter' in conf.getDefaultProperties():
55  self._setRegistry (conf.Getter)
56  if 'SelectionGetter' in conf.getDefaultProperties():
57  self._setRegistry (conf.SelectionGetter)
58  if 'Associator' in conf.getDefaultProperties():
59  self._setRegistry (conf.Associator)
60  return
61 
62 

Member Data Documentation

◆ acc

python.MakerAlgConfig.MakerAlg.acc

Definition at line 22 of file MakerAlgConfig.py.

◆ alg

python.MakerAlgConfig.MakerAlg.alg

Definition at line 19 of file MakerAlgConfig.py.

◆ flags

python.MakerAlgConfig.MakerAlg.flags

Definition at line 21 of file MakerAlgConfig.py.

◆ registry

python.MakerAlgConfig.MakerAlg.registry

Definition at line 20 of file MakerAlgConfig.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
D3PD::MakerAlg
Algorithm to create a D3PD tree.
Definition: MakerAlg.h:46