CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
TestProcess.TestProcess Class Reference
Inheritance diagram for TestProcess.TestProcess:

Public Member Functions

def __init__ (self, name="TEST", modifiers)
 
def fillProcessDesc (self, processPSet)
 
def moduleToTest (self, mod, task=cms.Task())
 

Public Attributes

 options
 

Private Attributes

 _test_endpath
 
 _test_path
 

Detailed Description

Definition at line 3 of file TestProcess.py.

Constructor & Destructor Documentation

def TestProcess.TestProcess.__init__ (   self,
  name = "TEST",
  modifiers 
)

Definition at line 4 of file TestProcess.py.

4  def __init__(self,name="TEST",*modifiers):
5  super(TestProcess,self).__init__(name,*modifiers)
6  self.__dict__["_TestProcess__moduleToTest"] = None
def __init__(self, name="TEST", modifiers)
Definition: TestProcess.py:4

Member Function Documentation

def TestProcess.TestProcess.fillProcessDesc (   self,
  processPSet 
)

Definition at line 13 of file TestProcess.py.

References edm::errors.LogicError.

13  def fillProcessDesc(self, processPSet):
14  if self.__dict__["_TestProcess__moduleToTest"] is None:
15  raise LogicError("moduleToTest was not called")
16  for p in self.paths.iterkeys():
17  if p != "_test_path":
18  delattr(self,p)
19  for p in self.endpaths.iterkeys():
20  if p != "_test_endpath":
21  delattr(self,p)
22  if not hasattr(self,"options"):
23  self.options = cms.untracked.PSet()
24  cms.Process.fillProcessDesc(self,processPSet)
25  processPSet.addString(True, "@moduleToTest",self.__dict__["_TestProcess__moduleToTest"].label_())
def TestProcess.TestProcess.moduleToTest (   self,
  mod,
  task = cms.Task() 
)

Definition at line 7 of file TestProcess.py.

7  def moduleToTest(self,mod,task=cms.Task()):
8  self.__dict__["_TestProcess__moduleToTest"] = mod
9  if isinstance(mod,cms.EDFilter):
10  self._test_path = cms.Path(mod,task)
11  else:
12  self._test_endpath = cms.EndPath(mod,task)
def moduleToTest(self, mod, task=cms.Task())
Definition: TestProcess.py:7

Member Data Documentation

TestProcess.TestProcess._test_endpath
private

Definition at line 12 of file TestProcess.py.

TestProcess.TestProcess._test_path
private

Definition at line 10 of file TestProcess.py.