CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

Config::SubProcess Class Reference

Inheritance diagram for Config::SubProcess:
Mixins::_ConfigureComponent Mixins::_Unlabelable

List of all members.

Public Member Functions

def __init__
def dumpPython
def insertInto
def nameInProcessDesc_
def type_

Private Member Functions

def _place

Private Attributes

 __outputCommands
 __process
 __SelectEvents

Detailed Description

Allows embedding another process within a parent process. This allows one to 
chain processes together directly in one cmsRun job rather than having to run
separate jobs which are connected via a temporary file.

Definition at line 971 of file Config.py.


Constructor & Destructor Documentation

def Config::SubProcess::__init__ (   self,
  process,
  SelectEvents = untracked.PSet(),
  outputCommands = untracked.vstring() 
)

Definition at line 976 of file Config.py.

00977                                                                                                     :
00978       """
00979       """
00980       if not isinstance(process, Process):
00981          raise ValueError("the 'process' argument must be of type cms.Process")
00982       if not isinstance(SelectEvents,PSet):
00983          raise ValueError("the 'SelectEvents' argument must be of type cms.untracked.PSet")
00984       if not isinstance(outputCommands,vstring):
00985          raise ValueError("the 'outputCommands' argument must be of type cms.untracked.vstring")
00986       self.__process = process
00987       self.__SelectEvents = SelectEvents
      self.__outputCommands = outputCommands

Member Function Documentation

def Config::SubProcess::_place (   self,
  label,
  process 
) [private]

Definition at line 999 of file Config.py.

01000                                  :
      process._placeSubProcess('subProcess',self)
def Config::SubProcess::dumpPython (   self,
  options 
)

Definition at line 988 of file Config.py.

00989                                :
00990       out = "parentProcess"+str(hash(self))+" = process\n"
00991       out += self.__process.dumpPython()
00992       out += "childProcess = process\n"
00993       out += "process = parentProcess"+str(hash(self))+"\n"
00994       out += "process.subProcess = cms.SubProcess( process = childProcess, SelectEvents = "+self.__SelectEvents.dumpPython(options) +", outputCommands = "+self.__outputCommands.dumpPython(options) +")\n"
      return out
def Config::SubProcess::insertInto (   self,
  parameterSet,
  newlabel 
)

Definition at line 1001 of file Config.py.

01002                                               :
01003       topPSet = parameterSet.newPSet()
01004       self.__process.fillProcessDesc(topPSet)
01005       subProcessPSet = parameterSet.newPSet()
01006       self.__SelectEvents.insertInto(subProcessPSet,"SelectEvents")
01007       self.__outputCommands.insertInto(subProcessPSet,"outputCommands")
01008       subProcessPSet.addPSet(False,"process",topPSet)
01009       parameterSet.addPSet(False,self.nameInProcessDesc_("subProcess"), subProcessPSet)

def Config::SubProcess::nameInProcessDesc_ (   self,
  label 
)

Definition at line 997 of file Config.py.

00998                                      :
      return '@sub_process'
def Config::SubProcess::type_ (   self)

Definition at line 995 of file Config.py.

00996                   :
      return 'subProcess'

Member Data Documentation

Definition at line 977 of file Config.py.

Definition at line 977 of file Config.py.

Definition at line 977 of file Config.py.