CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
Config._BoolModifierBase Class Reference
Inheritance diagram for Config._BoolModifierBase:
Config._AndModifier Config._InvertModifier Config._OrModifier

Public Member Functions

def __and__ (self, other)
 
def __init__ (self, lhs, rhs=None)
 
def __invert__ (self)
 
def __or__ (self, other)
 
def makeProcessModifier (self, func)
 
def toModify (self, obj, func=None, kw)
 
def toReplaceWith (self, toObj, fromObj)
 

Private Attributes

 _lhs
 
 _rhs
 

Detailed Description

A helper base class for _AndModifier, _InvertModifier, and _OrModifier to contain the common code

Definition at line 1727 of file Config.py.

Constructor & Destructor Documentation

◆ __init__()

def Config._BoolModifierBase.__init__ (   self,
  lhs,
  rhs = None 
)

Definition at line 1729 of file Config.py.

1729  def __init__(self, lhs, rhs=None):
1730  self._lhs = lhs
1731  if rhs is not None:
1732  self._rhs = rhs
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ __and__()

def Config._BoolModifierBase.__and__ (   self,
  other 
)

Definition at line 1748 of file Config.py.

1748  def __and__(self, other):
1749  return _AndModifier(self,other)

◆ __invert__()

def Config._BoolModifierBase.__invert__ (   self)

Definition at line 1750 of file Config.py.

1750  def __invert__(self):
1751  return _InvertModifier(self)

◆ __or__()

def Config._BoolModifierBase.__or__ (   self,
  other 
)

Definition at line 1752 of file Config.py.

Referenced by LumiList.LumiList.__add__().

1752  def __or__(self, other):
1753  return _OrModifier(self,other)
1754 

◆ makeProcessModifier()

def Config._BoolModifierBase.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 1743 of file Config.py.

1743  def makeProcessModifier(self,func):
1744  """This is used to create a ProcessModifer that can perform actions on the process as a whole.
1745  This takes as argument a callable object (e.g. function) that takes as its sole argument an instance of Process.
1746  In order to work, the value returned from this function must be assigned to a uniquely named variable."""
1747  return ProcessModifier(self,func)

◆ toModify()

def Config._BoolModifierBase.toModify (   self,
  obj,
  func = None,
  kw 
)

Definition at line 1733 of file Config.py.

References Config._AndModifier._isChosen(), Config._InvertModifier._isChosen(), Config._OrModifier._isChosen(), Config.Modifier._isChosen(), and Config.ModifierChain._isChosen().

1733  def toModify(self,obj, func=None,**kw):
1734  Modifier._toModifyCheck(obj,func,**kw)
1735  if not self._isChosen():
1736  return
1737  Modifier._toModify(obj,func,**kw)

◆ toReplaceWith()

def Config._BoolModifierBase.toReplaceWith (   self,
  toObj,
  fromObj 
)

Definition at line 1738 of file Config.py.

References Config._AndModifier._isChosen(), Config._InvertModifier._isChosen(), Config._OrModifier._isChosen(), Config.Modifier._isChosen(), and Config.ModifierChain._isChosen().

1738  def toReplaceWith(self,toObj,fromObj):
1739  Modifier._toReplaceWithCheck(toObj,fromObj)
1740  if not self._isChosen():
1741  return
1742  Modifier._toReplaceWith(toObj,fromObj)

Member Data Documentation

◆ _lhs

Config._BoolModifierBase._lhs
private

◆ _rhs

Config._BoolModifierBase._rhs
private

Definition at line 1732 of file Config.py.

Referenced by Config._AndModifier._isChosen(), and Config._OrModifier._isChosen().