ATLAS Offline Software
Public Member Functions | Static Private Attributes | List of all members
BPhysPyHelpers.BPyWrapper Class Reference
Inheritance diagram for BPhysPyHelpers.BPyWrapper:
Collaboration diagram for BPhysPyHelpers.BPyWrapper:

Public Member Functions

def __init__ (self, wclass, *args, **kargs)
 
def __getattr__ (self, attr)
 
def __setattr__ (self, attr, value)
 
def __call__ (self, *args, **kwargs)
 

Static Private Attributes

dictionary __slots__ = {'wclass' : object}
 

Detailed Description

Definition at line 30 of file BPhysPyHelpers.py.

Constructor & Destructor Documentation

◆ __init__()

def BPhysPyHelpers.BPyWrapper.__init__ (   self,
  wclass,
args,
**  kargs 
)

Definition at line 33 of file BPhysPyHelpers.py.

33  def __init__(self, wclass, *args, **kargs):
34  object.__setattr__(self, 'wclass', wclass(*args, **kargs))
35  # the important part: make __slot__ variables attributes
36  for n,v in self.wclass.__slots__.items():
37  if not hasattr(self.wclass, n):
38  setattr(self.wclass, n, v)
39 

Member Function Documentation

◆ __call__()

def BPhysPyHelpers.BPyWrapper.__call__ (   self,
args,
**  kwargs 
)

Definition at line 46 of file BPhysPyHelpers.py.

46  def __call__(self, *args, **kwargs):
47  return self.wclass(*args, **kwargs)
48 #--------------------------------------------------------------------
49 #
50 # ensure default contents of __slots__ dict are available as attributes
51 #

◆ __getattr__()

def BPhysPyHelpers.BPyWrapper.__getattr__ (   self,
  attr 
)

Definition at line 40 of file BPhysPyHelpers.py.

40  def __getattr__(self, attr):
41  return self.wclass.__getattribute__(attr)
42 

◆ __setattr__()

def BPhysPyHelpers.BPyWrapper.__setattr__ (   self,
  attr,
  value 
)

Definition at line 43 of file BPhysPyHelpers.py.

43  def __setattr__(self, attr, value):
44  setattr(self.wclass, attr, value)
45 

Member Data Documentation

◆ __slots__

dictionary BPhysPyHelpers.BPyWrapper.__slots__ = {'wclass' : object}
staticprivate

Definition at line 31 of file BPhysPyHelpers.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
python.PyAthenaComps.__setattr__
__setattr__
Definition: PyAthenaComps.py:39