Public Member Functions | |
def | __init__ |
def | dumpPython |
def | insertInto |
def | nameInProcessDesc_ |
def | type_ |
Private Member Functions | |
def | _place |
Private Attributes | |
__outputCommands | |
__process | |
__SelectEvents |
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.
def Config::SubProcess::__init__ | ( | self, | |
process, | |||
SelectEvents = untracked.PSet() , |
|||
outputCommands = untracked.vstring() |
|||
) |
Definition at line 953 of file Config.py.
00954 : 00955 """ 00956 """ 00957 if not isinstance(process, Process): 00958 raise ValueError("the 'process' argument must be of type cms.Process") 00959 if not isinstance(SelectEvents,PSet): 00960 raise ValueError("the 'SelectEvents' argument must be of type cms.untracked.PSet") 00961 if not isinstance(outputCommands,vstring): 00962 raise ValueError("the 'outputCommands' argument must be of type cms.untracked.vstring") 00963 self.__process = process 00964 self.__SelectEvents = SelectEvents self.__outputCommands = outputCommands
def Config::SubProcess::_place | ( | self, | |
label, | |||
process | |||
) | [private] |
def Config::SubProcess::dumpPython | ( | self, | |
options | |||
) |
Definition at line 965 of file Config.py.
00966 : 00967 out = "parentProcess"+str(hash(self))+" = process\n" 00968 out += self.__process.dumpPython() 00969 out += "childProcess = process\n" 00970 out += "process = parentProcess"+str(hash(self))+"\n" 00971 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 978 of file Config.py.
00979 : 00980 topPSet = parameterSet.newPSet() 00981 self.__process.fillProcessDesc(topPSet) 00982 subProcessPSet = parameterSet.newPSet() 00983 self.__SelectEvents.insertInto(subProcessPSet,"SelectEvents") 00984 self.__outputCommands.insertInto(subProcessPSet,"outputCommands") 00985 subProcessPSet.addPSet(False,"process",topPSet) 00986 parameterSet.addPSet(False,self.nameInProcessDesc_("subProcess"), subProcessPSet)
def Config::SubProcess::nameInProcessDesc_ | ( | self, | |
label | |||
) |
def Config::SubProcess::type_ | ( | self | ) |
Config::SubProcess::__outputCommands [private] |
Config::SubProcess::__process [private] |
Config::SubProcess::__SelectEvents [private] |