CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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__ (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

◆ __init__()

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, 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

◆ fillProcessDesc()

def TestProcess.TestProcess.fillProcessDesc (   self,
  processPSet 
)

Definition at line 13 of file TestProcess.py.

References FastTimerService::ResourcesPerProcess.endpaths, Config.Process.endpaths, edm::errors.LogicError, EgammaValidationReco_cff.dummy.paths, RPCLinkSynchroStat::LinkBoard.paths(), edm::PathsAndConsumesOfModulesBase.paths(), options.HLTProcessOptions.paths, pat::TriggerEvent.paths(), FastTimerService::ResourcesPerProcess.paths, and Config.Process.paths.

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_())

◆ moduleToTest()

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)

Member Data Documentation

◆ _test_endpath

TestProcess.TestProcess._test_endpath
private

Definition at line 12 of file TestProcess.py.

◆ _test_path

TestProcess.TestProcess._test_path
private

Definition at line 10 of file TestProcess.py.

◆ options

TestProcess.TestProcess.options