Public Member Functions | |
def | __call__ |
def | __init__ |
def | modify |
def | toModify |
def | toModifyProcess |
Private Attributes | |
__objectToModifiers | |
__processModifiers | |
This class is used to define standard modifications to a Process. An instance of this class is declared to denote a specific modification,e.g. era2017 could reconfigure items in a process to match our expectation of running in 2017. Once declared, these Modifier instances are imported into a configuration and items which need to be modified are then associated with the Modifier and with the action to do the modification. The registered modifications will only occur if the modify() method is called.
def Config.Modifier.__init__ | ( | self | ) |
def Config.Modifier.__call__ | ( | self, | |
process | |||
) |
Forwards to modify call. The presence of a __call__ allows Modifiers to be chained together. E.g. Have bar inherit all modifiers of foo foo = Modifier() bar = Modifier() foo.toModifyProcess(bar)
Definition at line 1080 of file Config.py.
References AlignableModifier.modify(), and Config.Modifier.modify().
def Config.Modifier.modify | ( | self, | |
process | |||
) |
This applies all the registered modifiers to the passed in process
Definition at line 1069 of file Config.py.
References Config.Modifier.__objectToModifiers, Config.Modifier.__processModifiers, and m.
Referenced by Config.Modifier.__call__().
def Config.Modifier.toModify | ( | self, | |
obj, | |||
func = None , |
|||
kw | |||
) |
This is used to register an action to be performed on the specific object. Two different forms are allowed Form 1: A callable object (e.g. function) can be passed as the second. This callable object is expected to take one argument which will be the object passed in as the first argument. Form 2: A list of parameter name, value pairs can be passed mod.toModify(foo, fred=cms.int32(7), barney = cms.double(3.14))
Definition at line 1056 of file Config.py.
def Config.Modifier.toModifyProcess | ( | self, | |
func | |||
) |
|
private |
Definition at line 1050 of file Config.py.
Referenced by Config.Modifier.modify().
|
private |
Definition at line 1051 of file Config.py.
Referenced by Config.Modifier.modify().