cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches

A named parameters set to steer a generic module. More...

+ Inheritance diagram for Module:
+ Collaboration diagram for Module:

Public Member Functions

 __init__ (self, name, *args, **kwargs)
 Construct a module parameters set from dictionary arguments.
 
 __len__ (self)
 Number of keys handled.
 
 dump (self, printer=PrintHelper())
 Human-readable dump of this object.
 
 __repr__ (self)
 Human-readable version of this object.
 
 name (self)
 
 clone (self, name='', **kwargs)
 Return a deep copy of this object.
 

Public Attributes

 mod_name
 Name of this module.
 

Detailed Description

Definition at line 110 of file containers_cff.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  name,
args,
**  kwargs 
)
Parameters
namemodule name
argslist of arguments
kwargslist of named (keyworded) arguments

Examples

>>> print(dict(Module('module1', foo = 'bar', foo2 = 42)))
{'foo': 'bar', 'foo2': 42, 'mod_name': 'module1'}

Reimplemented from Parameters.

Definition at line 130 of file containers_cff.py.

Member Function Documentation

◆ __len__()

__len__ (   self)

Definition at line 135 of file containers_cff.py.

◆ __repr__()

__repr__ (   self)

Reimplemented from Parameters.

Definition at line 156 of file containers_cff.py.

◆ clone()

clone (   self,
  name = '',
**  kwargs 
)

Reimplemented from Parameters.

Definition at line 163 of file containers_cff.py.

◆ dump()

dump (   self,
  printer = PrintHelper() 
)

Reimplemented from Parameters.

Definition at line 139 of file containers_cff.py.

◆ name()

name (   self)

Definition at line 159 of file containers_cff.py.

Member Data Documentation

◆ mod_name

mod_name

Definition at line 132 of file containers_cff.py.