Public Member Functions | |
def | __and__ |
def | __init__ |
def | __invert__ |
def | __or__ |
def | makeProcessModifier |
def | toModify |
def | toReplaceWith |
Private Member Functions | |
def | _isChosen |
def | _isOrContains |
def | _setChosen |
Static Private Member Functions | |
def | _toModify |
def | _toModifyCheck |
def | _toReplaceWith |
def | _toReplaceWithCheck |
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 that 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 | ) |
def Config.Modifier.__and__ | ( | self, | |
other | |||
) |
Definition at line 1752 of file Config.py.
def Config.Modifier.__invert__ | ( | self | ) |
Definition at line 1754 of file Config.py.
def Config.Modifier.__or__ | ( | self, | |
other | |||
) |
Definition at line 1756 of file Config.py.
Referenced by LumiList.LumiList.__add__().
|
private |
Definition at line 1750 of file Config.py.
References Config.Modifier.__chosen.
Referenced by Config._BoolModifierBase.toModify(), Config.Modifier.toModify(), Config._BoolModifierBase.toReplaceWith(), and Config.Modifier.toReplaceWith().
|
private |
Definition at line 1758 of file Config.py.
Referenced by Config.ModifierChain.__copyIfExclude().
|
private |
Should only be called by cms.Process instances
Definition at line 1747 of file Config.py.
References Config.Modifier.__chosen.
|
staticprivate |
Definition at line 1711 of file Config.py.
References cms::cuda.func, and groupFilesInBlocks.temp.
|
staticprivate |
|
staticprivate |
|
staticprivate |
def Config.Modifier.makeProcessModifier | ( | self, | |
func | |||
) |
This is used to create a ProcessModifer that can perform actions on the process as a whole. This takes as argument a callable object (e.g. function) that takes as its sole argument an instance of Process. In order to work, the value returned from this function must be assigned to a uniquely named variable.
Definition at line 1683 of file Config.py.
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 that 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)) This form can also be used to remove a parameter by passing the value of None #remove the parameter foo.fred mod.toModify(foo, fred = None) Additionally, parameters embedded within PSets can also be modified using a dictionary #change foo.fred.pebbles to 3 and foo.fred.friend to "barney" mod.toModify(foo, fred = dict(pebbles = 3, friend = "barney)) )
Definition at line 1693 of file Config.py.
References Config._AndModifier._isChosen(), Config._InvertModifier._isChosen(), Config._OrModifier._isChosen(), and Config.Modifier._isChosen().
def Config.Modifier.toReplaceWith | ( | self, | |
toObj, | |||
fromObj | |||
) |
If the Modifier is chosen the internals of toObj will be associated with the internals of fromObj
Definition at line 1721 of file Config.py.
References Config._AndModifier._isChosen(), Config._InvertModifier._isChosen(), Config._OrModifier._isChosen(), and Config.Modifier._isChosen().
|
private |
Definition at line 1682 of file Config.py.
Referenced by Config.Modifier._isChosen(), Config.ModifierChain._isChosen(), Config.Modifier._setChosen(), and Config.ModifierChain._setChosen().