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

Constructor & Destructor Documentation

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

Definition at line 1219 of file Config.py.

1219  def __init__(self,process, SelectEvents = untracked.PSet(), outputCommands = untracked.vstring()):
1220  """
1221  """
1222  if not isinstance(process, Process):
1223  raise ValueError("the 'process' argument must be of type cms.Process")
1224  if not isinstance(SelectEvents,PSet):
1225  raise ValueError("the 'SelectEvents' argument must be of type cms.untracked.PSet")
1226  if not isinstance(outputCommands,vstring):
1227  raise ValueError("the 'outputCommands' argument must be of type cms.untracked.vstring")
1228  self.__process = process
1229  self.__SelectEvents = SelectEvents
1230  self.__outputCommands = outputCommands
def __init__(self, process, SelectEvents=untracked.PSet(), outputCommands=untracked.vstring())
Definition: Config.py:1219

Member Function Documentation

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

Definition at line 1250 of file Config.py.

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

Definition at line 1231 of file Config.py.

References cond.hash, and harvestTrackValidationPlots.str.

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

1231  def dumpPython(self,options=PrintOptions()):
1232  out = "parentProcess"+str(hash(self))+" = process\n"
1233  out += self.__process.dumpPython()
1234  out += "childProcess = process\n"
1235  out += "process = parentProcess"+str(hash(self))+"\n"
1236  out += "process.addSubProcess(cms.SubProcess(process = childProcess, SelectEvents = "+self.__SelectEvents.dumpPython(options) +", outputCommands = "+self.__outputCommands.dumpPython(options) +"))"
1237  return out
def dumpPython(self, options=PrintOptions())
Definition: Config.py:1231
def Config.SubProcess.getProcessName (   self)

Definition at line 1238 of file Config.py.

Referenced by Types.InputTag.cppTag().

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

Definition at line 1252 of file Config.py.

1252  def getSubProcessPSet(self,parameterSet):
1253  topPSet = parameterSet.newPSet()
1254  self.__process.fillProcessDesc(topPSet)
1255  subProcessPSet = parameterSet.newPSet()
1256  self.__SelectEvents.insertInto(subProcessPSet,"SelectEvents")
1257  self.__outputCommands.insertInto(subProcessPSet,"outputCommands")
1258  subProcessPSet.addPSet(False,"process",topPSet)
1259  return subProcessPSet
1260 
def getSubProcessPSet(self, parameterSet)
Definition: Config.py:1252
def Config.SubProcess.nameInProcessDesc_ (   self,
  label 
)

Definition at line 1248 of file Config.py.

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

1248  def nameInProcessDesc_(self,label):
1249  return label
def nameInProcessDesc_(self, label)
Definition: Config.py:1248
def Config.SubProcess.outputCommands (   self)

Definition at line 1244 of file Config.py.

References Config.SubProcess.__outputCommands.

1244  def outputCommands(self):
1245  return self.__outputCommands
def outputCommands(self)
Definition: Config.py:1244
def Config.SubProcess.process (   self)
def Config.SubProcess.SelectEvents (   self)

Definition at line 1242 of file Config.py.

References Config.SubProcess.__SelectEvents.

1242  def SelectEvents(self):
1243  return self.__SelectEvents
def SelectEvents(self)
Definition: Config.py:1242
def Config.SubProcess.type_ (   self)

Member Data Documentation

Config.SubProcess.__outputCommands
private

Definition at line 1230 of file Config.py.

Referenced by Config.SubProcess.outputCommands().

Config.SubProcess.__process
private

Definition at line 1228 of file Config.py.

Referenced by Config.SubProcess.process().

Config.SubProcess.__SelectEvents
private

Definition at line 1229 of file Config.py.

Referenced by Config.SubProcess.SelectEvents().