CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Config.SubProcess Class Reference
Inheritance diagram for Config.SubProcess:
Mixins._Unlabelable

Public Member Functions

def __init__
 
def dumpPython
 
def getProcessName
 
def getSubProcessPSet
 
def nameInProcessDesc_
 
def outputCommands
 
def process
 
def SelectEvents
 
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 that are connected via a temporary file.

Definition at line 1058 of file Config.py.

Constructor & Destructor Documentation

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

Definition at line 1063 of file Config.py.

1064  def __init__(self,process, SelectEvents = untracked.PSet(), outputCommands = untracked.vstring()):
1065  """
1066  """
1067  if not isinstance(process, Process):
1068  raise ValueError("the 'process' argument must be of type cms.Process")
1069  if not isinstance(SelectEvents,PSet):
1070  raise ValueError("the 'SelectEvents' argument must be of type cms.untracked.PSet")
1071  if not isinstance(outputCommands,vstring):
1072  raise ValueError("the 'outputCommands' argument must be of type cms.untracked.vstring")
1073  self.__process = process
1074  self.__SelectEvents = SelectEvents
self.__outputCommands = outputCommands

Member Function Documentation

def Config.SubProcess._place (   self,
  label,
  process 
)
private

Definition at line 1094 of file Config.py.

1095  def _place(self,label,process):
process._placeSubProcess('subProcess',self)
def Config.SubProcess.dumpPython (   self,
  options 
)

Definition at line 1075 of file Config.py.

References cond.hash.

Referenced by Mixins._Parameterizable.__addParameter(), Mixins._ParameterTypeBase.__repr__(), Mixins._Parameterizable.__repr__(), Mixins._ValidatingParameterListBase.__repr__(), Types.VPSet.__repr__(), and Mixins._Parameterizable.__setattr__().

1076  def dumpPython(self,options):
1077  out = "parentProcess"+str(hash(self))+" = process\n"
1078  out += self.__process.dumpPython()
1079  out += "childProcess = process\n"
1080  out += "process = parentProcess"+str(hash(self))+"\n"
1081  out += "process.addSubProcess(cms.SubProcess(process = childProcess, SelectEvents = "+self.__SelectEvents.dumpPython(options) +", outputCommands = "+self.__outputCommands.dumpPython(options) +"))"
return out
def Config.SubProcess.getProcessName (   self)

Definition at line 1082 of file Config.py.

Referenced by Types.InputTag.cppTag().

1083  def getProcessName(self):
return self.__process.name_()
def Config.SubProcess.getSubProcessPSet (   self,
  parameterSet 
)

Definition at line 1096 of file Config.py.

1097  def getSubProcessPSet(self,parameterSet):
1098  topPSet = parameterSet.newPSet()
1099  self.__process.fillProcessDesc(topPSet)
1100  subProcessPSet = parameterSet.newPSet()
1101  self.__SelectEvents.insertInto(subProcessPSet,"SelectEvents")
1102  self.__outputCommands.insertInto(subProcessPSet,"outputCommands")
1103  subProcessPSet.addPSet(False,"process",topPSet)
1104  return subProcessPSet
def getSubProcessPSet
Definition: Config.py:1096
def Config.SubProcess.nameInProcessDesc_ (   self,
  label 
)

Definition at line 1092 of file Config.py.

Referenced by Mixins._TypedParameterizable.insertInto(), and Types.EDAlias.insertInto().

1093  def nameInProcessDesc_(self,label):
return label
def nameInProcessDesc_
Definition: Config.py:1092
def Config.SubProcess.outputCommands (   self)

Definition at line 1088 of file Config.py.

References Config.SubProcess.__outputCommands.

1089  def outputCommands(self):
return self.__outputCommands
def Config.SubProcess.process (   self)

Definition at line 1084 of file Config.py.

References Config.Process.__process, Config.ProcessFragment.__process, and Config.SubProcess.__process.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

1085  def process(self):
return self.__process
def Config.SubProcess.SelectEvents (   self)

Definition at line 1086 of file Config.py.

References Config.SubProcess.__SelectEvents.

1087  def SelectEvents(self):
return self.__SelectEvents
def Config.SubProcess.type_ (   self)

Definition at line 1090 of file Config.py.

Referenced by Modules.Service._placeImpl(), Modules.ESSource._placeImpl(), Modules.ESProducer._placeImpl(), Modules.ESPrefer.copy(), Mixins._TypedParameterizable.dumpPython(), Modules.ESPrefer.dumpPythonAs(), Modules.Service.insertInto(), RandomRunSource.RandomRunSource.insertInto(), Mixins._TypedParameterizable.insertInto(), Modules.ESSource.moduleLabel_(), Modules.ESProducer.moduleLabel_(), Modules.ESSource.nameInProcessDesc_(), Modules.ESProducer.nameInProcessDesc_(), and Modules.ESPrefer.nameInProcessDesc_().

1091  def type_(self):
return 'subProcess'

Member Data Documentation

Config.SubProcess.__outputCommands
private

Definition at line 1074 of file Config.py.

Referenced by Config.SubProcess.outputCommands().

Config.SubProcess.__process
private

Definition at line 1072 of file Config.py.

Referenced by Config.SubProcess.process().

Config.SubProcess.__SelectEvents
private

Definition at line 1073 of file Config.py.

Referenced by Config.SubProcess.SelectEvents().