Public Member Functions | |
def | __init__ |
def | isChosen |
def | toModify |
def | toModifyProcess |
Private Member Functions | |
def | _applyNewProcessModifiers |
def | _setChosen |
Private Attributes | |
__chosen | |
__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 Modifier was passed to the cms.Process' constructor.
def Config.Modifier.__init__ | ( | self | ) |
|
private |
Should only be called by cms.Process instances applies list of accumulated changes to the process
Definition at line 1085 of file Config.py.
References Config.Modifier.__processModifiers, list(), and m.
|
private |
Should only be called by cms.Process instances
Definition at line 1091 of file Config.py.
References Config.Modifier.__chosen.
def Config.Modifier.isChosen | ( | self | ) |
Definition at line 1094 of file Config.py.
References Config.Modifier.__chosen.
Referenced by Config.Modifier.toModify().
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 1069 of file Config.py.
References Config.Modifier.isChosen(), and groupFilesInBlocks.temp.
def Config.Modifier.toModifyProcess | ( | self, | |
func | |||
) |
|
private |
Definition at line 1064 of file Config.py.
Referenced by Config.Modifier._setChosen(), Config.ModifierChain._setChosen(), Config.Modifier.isChosen(), and Config.ModifierChain.isChosen().
|
private |
Definition at line 1063 of file Config.py.
Referenced by Config.Modifier._applyNewProcessModifiers().