CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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__
 
def fillProcessDesc
 
def moduleToTest
 

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 
5  def __init__(self,name="TEST",*modifiers):
6  super(TestProcess,self).__init__(name,*modifiers)
self.__dict__["_TestProcess__moduleToTest"] = None

Member Function Documentation

def TestProcess.TestProcess.fillProcessDesc (   self,
  processPSet 
)

Definition at line 13 of file TestProcess.py.

References edm::errors.LogicError.

13 
14  def fillProcessDesc(self, processPSet):
15  if self.__dict__["_TestProcess__moduleToTest"] is None:
16  raise LogicError("moduleToTest was not called")
17  for p in self.paths.iterkeys():
18  if p != "_test_path":
19  delattr(self,p)
20  for p in self.endpaths.iterkeys():
21  if p != "_test_endpath":
22  delattr(self,p)
23  if not hasattr(self,"options"):
24  self.options = cms.untracked.PSet()
25  cms.Process.fillProcessDesc(self,processPSet)
26  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 
8  def moduleToTest(self,mod,task=cms.Task()):
9  self.__dict__["_TestProcess__moduleToTest"] = mod
10  if isinstance(mod,cms.EDFilter):
11  self._test_path = cms.Path(mod,task)
12  else:
self._test_endpath = cms.EndPath(mod,task)

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.

TestProcess.TestProcess.options

Definition at line 23 of file TestProcess.py.

Referenced by betterConfigParser.BetterConfigParser.__updateDict(), submitPVValidationJobs.BetterConfigParser.__updateDict(), confdb.HLTProcess.buildOptions(), betterConfigParser.BetterConfigParser.checkInput(), CrabHelper.CrabHelper.crab_config_filename(), CrabHelper.CrabHelper.crab_taskname(), CrabHelper.CrabHelper.fill_options_from_crab_config(), confdb.HLTProcess.fixPrescales(), edmIntegrityCheck.IntegrityCheck.query(), cmsswPreprocessor.CmsswPreprocessor.run(), production_tasks.BaseDataset.run(), production_tasks.GenerateMask.run(), production_tasks.RunCMSBatch.run(), production_tasks.MonitorJobs.run(), production_tasks.CheckJobStatus.run(), and production_tasks.CleanJobFiles.run().