CMS 3D CMS Logo

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__ (self, process, SelectEvents=untracked.PSet(), outputCommands=untracked.vstring())
 
def dumpPython (self, options=PrintOptions())
 
def getProcessName (self)
 
def getSubProcessPSet (self, parameterSet)
 
def nameInProcessDesc_ (self, label)
 
def outputCommands (self)
 
def process (self)
 
def SelectEvents (self)
 
def type_ (self)
 

Private Member Functions

def _place (self, label, process)
 

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 1244 of file Config.py.

Constructor & Destructor Documentation

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

Definition at line 1249 of file Config.py.

1249  def __init__(self,process, SelectEvents = untracked.PSet(), outputCommands = untracked.vstring()):
1250  """
1251  """
1252  if not isinstance(process, Process):
1253  raise ValueError("the 'process' argument must be of type cms.Process")
1254  if not isinstance(SelectEvents,PSet):
1255  raise ValueError("the 'SelectEvents' argument must be of type cms.untracked.PSet")
1256  if not isinstance(outputCommands,vstring):
1257  raise ValueError("the 'outputCommands' argument must be of type cms.untracked.vstring")
1258  self.__process = process
1259  self.__SelectEvents = SelectEvents
1260  self.__outputCommands = outputCommands
def __init__(self, process, SelectEvents=untracked.PSet(), outputCommands=untracked.vstring())
Definition: Config.py:1249

Member Function Documentation

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

Definition at line 1280 of file Config.py.

1280  def _place(self,label,process):
1281  process._placeSubProcess('subProcess',self)
def _place(self, label, process)
Definition: Config.py:1280
def Config.SubProcess.dumpPython (   self,
  options = PrintOptions() 
)

Definition at line 1261 of file Config.py.

References cond.hash, and str.

Referenced by Mixins._Parameterizable.__addParameter(), Modules.SwitchProducer.__addParameter(), Mixins._ParameterTypeBase.__repr__(), Mixins._Parameterizable.__repr__(), Mixins._ValidatingParameterListBase.__repr__(), Types.VPSet.__repr__(), Mixins._Parameterizable.__setattr__(), Modules.SwitchProducer.__setattr__(), and SequenceTypes.Schedule.__str__().

1261  def dumpPython(self,options=PrintOptions()):
1262  out = "parentProcess"+str(hash(self))+" = process\n"
1263  out += self.__process.dumpPython()
1264  out += "childProcess = process\n"
1265  out += "process = parentProcess"+str(hash(self))+"\n"
1266  out += "process.addSubProcess(cms.SubProcess(process = childProcess, SelectEvents = "+self.__SelectEvents.dumpPython(options) +", outputCommands = "+self.__outputCommands.dumpPython(options) +"))"
1267  return out
def dumpPython(self, options=PrintOptions())
Definition: Config.py:1261
#define str(s)
def Config.SubProcess.getProcessName (   self)

Definition at line 1268 of file Config.py.

Referenced by Types.InputTag.cppTag().

1268  def getProcessName(self):
1269  return self.__process.name_()
def getProcessName(self)
Definition: Config.py:1268
def Config.SubProcess.getSubProcessPSet (   self,
  parameterSet 
)

Definition at line 1282 of file Config.py.

1282  def getSubProcessPSet(self,parameterSet):
1283  topPSet = parameterSet.newPSet()
1284  self.__process.fillProcessDesc(topPSet)
1285  subProcessPSet = parameterSet.newPSet()
1286  self.__SelectEvents.insertInto(subProcessPSet,"SelectEvents")
1287  self.__outputCommands.insertInto(subProcessPSet,"outputCommands")
1288  subProcessPSet.addPSet(False,"process",topPSet)
1289  return subProcessPSet
1290 
def getSubProcessPSet(self, parameterSet)
Definition: Config.py:1282
def Config.SubProcess.nameInProcessDesc_ (   self,
  label 
)
def Config.SubProcess.outputCommands (   self)

Definition at line 1274 of file Config.py.

References Config.SubProcess.__outputCommands.

1274  def outputCommands(self):
1275  return self.__outputCommands
def outputCommands(self)
Definition: Config.py:1274
def Config.SubProcess.process (   self)

Definition at line 1270 of file Config.py.

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

1270  def process(self):
1271  return self.__process
def process(self)
Definition: Config.py:1270
def Config.SubProcess.SelectEvents (   self)

Definition at line 1272 of file Config.py.

References Config.SubProcess.__SelectEvents.

1272  def SelectEvents(self):
1273  return self.__SelectEvents
def SelectEvents(self)
Definition: Config.py:1272
def Config.SubProcess.type_ (   self)

Member Data Documentation

Config.SubProcess.__outputCommands
private

Definition at line 1260 of file Config.py.

Referenced by Config.SubProcess.outputCommands().

Config.SubProcess.__process
private

Definition at line 1258 of file Config.py.

Referenced by Config.SubProcess.process().

Config.SubProcess.__SelectEvents
private

Definition at line 1259 of file Config.py.

Referenced by Config.SubProcess.SelectEvents().