CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
Mixins._ParameterTypeBase Class Reference
Inheritance diagram for Mixins._ParameterTypeBase:
Mixins._SimpleParameterTypeBase Mixins._ValidatingParameterListBase Types.ESInputTag Types.EventID Types.EventRange Types.InputTag Types.LuminosityBlockID Types.LuminosityBlockRange Types.PSet Types.SecSource

Public Member Functions

def __init__
 
def __repr__
 
def configTypeName
 
def dumpPython
 
def isFrozen
 
def isModified
 
def isTracked
 
def pythonTypeName
 
def resetModified
 
def setIsFrozen
 
def setIsTracked
 

Private Attributes

 __isTracked
 
 _isFrozen
 
 _isModified
 

Detailed Description

base class for classes which are used as the 'parameters' for a ParameterSet

Definition at line 19 of file Mixins.py.

Constructor & Destructor Documentation

def Mixins._ParameterTypeBase.__init__ (   self)

Definition at line 21 of file Mixins.py.

21 
22  def __init__(self):
23  self.__dict__["_isFrozen"] = False
24  self.__isTracked = True
self._isModified = False

Member Function Documentation

def Mixins._ParameterTypeBase.__repr__ (   self)

Definition at line 39 of file Mixins.py.

References editorTools.UserCodeTool.dumpPython(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ImportTool.dumpPython(), Mixins._ParameterTypeBase.dumpPython(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ApplyTool.dumpPython(), ConfigToolBase.ConfigToolBase.dumpPython(), Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.dumpPython(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.dumpPython(), Config.Process.dumpPython(), and Config.SubProcess.dumpPython().

39 
40  def __repr__(self):
return self.dumpPython()
def Mixins._ParameterTypeBase.configTypeName (   self)

Definition at line 29 of file Mixins.py.

References edm::AllowedLabelsDescriptionBase.isTracked(), edm::ParameterWildcardBase.isTracked(), edm::ParameterSetEntry.isTracked(), edm::VParameterSetEntry.isTracked(), edm::ParameterDescriptionBase.isTracked(), Mixins._ParameterTypeBase.isTracked(), and edm::Entry.isTracked().

29 
30  def configTypeName(self):
31  if self.isTracked():
32  return type(self).__name__
return 'untracked '+type(self).__name__
def Mixins._ParameterTypeBase.dumpPython (   self,
  options = PrintOptions() 
)

Definition at line 37 of file Mixins.py.

References Mixins._ParameterTypeBase.pythonTypeName(), Mixins._SimpleParameterTypeBase.pythonValue(), Types.string.pythonValue(), Types.EventID.pythonValue(), Types.LuminosityBlockID.pythonValue(), Types.LuminosityBlockRange.pythonValue(), Types.EventRange.pythonValue(), Types.InputTag.pythonValue(), and Types.ESInputTag.pythonValue().

Referenced by Mixins._Parameterizable.__addParameter(), Mixins._ParameterTypeBase.__repr__(), Mixins._Parameterizable.__repr__(), Mixins._ValidatingParameterListBase.__repr__(), Types.VPSet.__repr__(), and Mixins._Parameterizable.__setattr__().

37 
38  def dumpPython(self, options=PrintOptions()):
return self.pythonTypeName()+"("+self.pythonValue(options)+")"
def Mixins._ParameterTypeBase.isFrozen (   self)

Definition at line 45 of file Mixins.py.

References Mixins._ParameterTypeBase._isFrozen.

Referenced by Mixins._Parameterizable.__delattr__(), and Mixins._Parameterizable.__setattr__().

45 
46  def isFrozen(self):
return self._isFrozen
def Mixins._ParameterTypeBase.isModified (   self)

Definition at line 25 of file Mixins.py.

References Mixins._ParameterTypeBase._isModified.

25 
26  def isModified(self):
return self._isModified
def Mixins._ParameterTypeBase.isTracked (   self)

Definition at line 41 of file Mixins.py.

References Mixins._ParameterTypeBase.__isTracked.

Referenced by Types.PSet.clone(), Mixins._ParameterTypeBase.configTypeName(), Types.int32.insertInto(), Types.uint32.insertInto(), Types.int64.insertInto(), Types.uint64.insertInto(), Mixins.UsingBlock.insertInto(), Types.double.insertInto(), Types.bool.insertInto(), Types.string.insertInto(), Types.EventID.insertInto(), Types.LuminosityBlockID.insertInto(), Types.LuminosityBlockRange.insertInto(), Types.EventRange.insertInto(), Types.InputTag.insertInto(), Types.ESInputTag.insertInto(), Types.FileInPath.insertInto(), Types.PSet.insertInto(), Types.vint32.insertInto(), Types.vuint32.insertInto(), Types.vint64.insertInto(), Types.vuint64.insertInto(), Types.vdouble.insertInto(), Types.vbool.insertInto(), Types.vstring.insertInto(), Types.VLuminosityBlockID.insertInto(), Types.VInputTag.insertInto(), Types.VESInputTag.insertInto(), Types.VEventID.insertInto(), Types.VLuminosityBlockRange.insertInto(), Types.VEventRange.insertInto(), Types.VPSet.insertInto(), and Mixins._ParameterTypeBase.pythonTypeName().

41 
42  def isTracked(self):
return self.__isTracked
def Mixins._ParameterTypeBase.pythonTypeName (   self)

Definition at line 33 of file Mixins.py.

References edm::AllowedLabelsDescriptionBase.isTracked(), edm::ParameterWildcardBase.isTracked(), edm::ParameterSetEntry.isTracked(), edm::VParameterSetEntry.isTracked(), edm::ParameterDescriptionBase.isTracked(), Mixins._ParameterTypeBase.isTracked(), and edm::Entry.isTracked().

Referenced by Mixins._ParameterTypeBase.dumpPython(), Mixins._ValidatingParameterListBase.dumpPython(), and Types.PSet.dumpPython().

33 
34  def pythonTypeName(self):
35  if self.isTracked():
36  return 'cms.'+type(self).__name__
return 'cms.untracked.'+type(self).__name__
def Mixins._ParameterTypeBase.resetModified (   self)

Definition at line 27 of file Mixins.py.

References Mixins._ParameterTypeBase._isModified.

27 
28  def resetModified(self):
self._isModified=False
def Mixins._ParameterTypeBase.setIsFrozen (   self)

Definition at line 47 of file Mixins.py.

Referenced by Modules._Module.__init__().

47 
48  def setIsFrozen(self):
49  self._isFrozen = True
def Mixins._ParameterTypeBase.setIsTracked (   self,
  trackness 
)

Definition at line 43 of file Mixins.py.

References Mixins._ParameterTypeBase.__isTracked.

43 
44  def setIsTracked(self,trackness):
self.__isTracked = trackness

Member Data Documentation

Mixins._ParameterTypeBase.__isTracked
private

Definition at line 23 of file Mixins.py.

Referenced by Mixins._ParameterTypeBase.isTracked(), and Mixins._ParameterTypeBase.setIsTracked().

Mixins._ParameterTypeBase._isFrozen
private

Definition at line 48 of file Mixins.py.

Referenced by Mixins._ParameterTypeBase.isFrozen(), SequenceTypes._ModuleSequenceType.isFrozen(), and Mixins._Parameterizable.isFrozen().

Mixins._ParameterTypeBase._isModified
private

Definition at line 24 of file Mixins.py.

Referenced by Mixins._Parameterizable.__addParameter(), Mixins._Parameterizable.__setattr__(), Mixins._TypedParameterizable.copy(), Mixins._ParameterTypeBase.isModified(), Mixins._Parameterizable.isModified(), Mixins._ParameterTypeBase.resetModified(), Types.InputTag.setValue(), and Types.ESInputTag.setValue().