CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
Modules._Module Class Reference
Inheritance diagram for Modules._Module:
Mixins._ConfigureComponent Mixins._TypedParameterizable Mixins._Labelable SequenceTypes._SequenceLeaf Mixins._Parameterizable SequenceTypes._Sequenceable Modules.EDAnalyzer Modules.EDFilter Modules.EDProducer Modules.OutputModule

Public Member Functions

def __init__ (self, type_, arg, kargs)
 
def insertInto (self, parameterSet, myname)
 
def setPrerequisites (self, libs)
 
- Public Member Functions inherited from Mixins._TypedParameterizable
def __init__ (self, type_, arg, kargs)
 
def clone (self, args, params)
 
def copy (self)
 
def dumpConfig (self, options=PrintOptions())
 
def dumpPython (self, options=PrintOptions())
 
def dumpPythonAttributes (self, myname, options)
 
def insertInto (self, parameterSet, myname)
 
def moduleLabel_ (self, myname)
 
def nameInProcessDesc_ (self, myname)
 
def type_ (self)
 
- Public Member Functions inherited from Mixins._Parameterizable
def __delattr__ (self, name)
 
def __init__ (self, arg, kargs)
 
def __repr__ (self)
 
def __setattr__ (self, name, value)
 
def dumpPython (self, options=PrintOptions())
 
def getParameter (self, params)
 
def hasParameter (self, params)
 
def insertContentsInto (self, parameterSet)
 
def isFrozen (self)
 
def isModified (self)
 
def parameterNames_ (self)
 
def parameters_ (self)
 
def setIsFrozen (self)
 
- Public Member Functions inherited from Mixins._Labelable
def __str__ (self)
 
def dumpSequenceConfig (self)
 
def dumpSequencePython (self, options=PrintOptions())
 
def hasLabel_ (self)
 
def label (self)
 
def label_ (self)
 
def setLabel (self, label)
 
- Public Member Functions inherited from SequenceTypes._SequenceLeaf
def __init__ (self)
 
def isLeaf (self)
 
- Public Member Functions inherited from SequenceTypes._Sequenceable
def __add__ (self, rhs)
 
def __init__ (self)
 
def __invert__ (self)
 
def __mul__ (self, rhs)
 
def isLeaf (self)
 
def isOperation (self)
 
def resolve (self, processDict, keepIfCannotResolve=False)
 
def visitNode (self, visitor)
 

Private Member Functions

def _clonesequence (self, lookuptable)
 
def _errorstr (self)
 

Detailed Description

base class for classes which denote framework event based 'modules'

Definition at line 131 of file Modules.py.

Constructor & Destructor Documentation

def Modules._Module.__init__ (   self,
  type_,
  arg,
  kargs 
)

Definition at line 134 of file Modules.py.

References Mixins.saveOrigin(), Mixins._ParameterTypeBase.setIsFrozen(), and Mixins._Parameterizable.setIsFrozen().

134  def __init__(self,type_,*arg,**kargs):
135  super(_Module,self).__init__(type_,*arg,**kargs)
136  if _Module.__isStrict__:
137  self.setIsFrozen()
138  saveOrigin(self, 2)
def __init__(self, type_, arg, kargs)
Definition: Modules.py:134
def setIsFrozen(self)
Definition: Mixins.py:238
def saveOrigin(obj, level)
Definition: Mixins.py:621

Member Function Documentation

def Modules._Module._clonesequence (   self,
  lookuptable 
)
private

Definition at line 139 of file Modules.py.

References Modules._Module._errorstr(), and triggerObjects_cff.id.

139  def _clonesequence(self, lookuptable):
140  try:
141  return lookuptable[id(self)]
142  except:
143  raise ModuleCloneError(self._errorstr())
def _errorstr(self)
Definition: Modules.py:144
def _clonesequence(self, lookuptable)
Definition: Modules.py:139
def Modules._Module._errorstr (   self)
private

Definition at line 144 of file Modules.py.

Referenced by Modules._Module._clonesequence().

144  def _errorstr(self):
145  # return something like "EDAnalyzer("foo", ...)"
146  typename = format_typename(self)
147  return "%s('%s', ...)" %(typename, self.type_())
148 
def _errorstr(self)
Definition: Modules.py:144
def format_typename(object)
def Modules._Module.insertInto (   self,
  parameterSet,
  myname 
)

Definition at line 152 of file Modules.py.

152  def insertInto(self, parameterSet, myname):
153  if "libraries_" in self.__dict__:
154  from ctypes import LibraryLoader, CDLL
155  import platform
156  loader = LibraryLoader(CDLL)
157  ext = platform.uname()[0] == "Darwin" and "dylib" or "so"
158  [loader.LoadLibrary("lib%s.%s" % (l, ext)) for l in self.libraries_]
159  super(_Module,self).insertInto(parameterSet,myname)
160 
def insertInto(self, parameterSet, myname)
Definition: Modules.py:152
def Modules._Module.setPrerequisites (   self,
  libs 
)

Definition at line 149 of file Modules.py.

149  def setPrerequisites(self, *libs):
150  self.__dict__["libraries_"] = libs
151 
def setPrerequisites(self, libs)
Definition: Modules.py:149