CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
cmsDriver.forkit Class Reference
Inheritance diagram for cmsDriver.forkit:

Public Member Functions

def __init__
 
def run
 

Detailed Description

Definition at line 9 of file cmsDriver.py.

Constructor & Destructor Documentation

def cmsDriver.forkit.__init__ (   self)

Definition at line 10 of file cmsDriver.py.

10 
11  def __init__(self):
Thread.__init__(self)

Member Function Documentation

def cmsDriver.forkit.run (   self)

Definition at line 12 of file cmsDriver.py.

References mergeVDriftHistosByStation.file, and split.

Referenced by Types.LuminosityBlockID.cppID().

12 
13  def run(self):
14  import sys
15  import os
16  import Configuration.PyReleaseValidation
17  from Configuration.PyReleaseValidation.ConfigBuilder import ConfigBuilder, defaultOptions
18  from Configuration.PyReleaseValidation.cmsDriverOptions import options, python_config_filename
19 
20  # after cleanup of all config parameters pass it to the ConfigBuilder
21  configBuilder = ConfigBuilder(options, with_output = True, with_input = True)
22  configBuilder.prepare()
23 
24  # fetch the results and write it to file
25  if options.python_filename: python_config_filename = options.python_filename
26  config = file(python_config_filename,"w")
27  config.write(configBuilder.pythonCfgCode)
28  config.close()
29 
30  # handle different dump options
31  if options.dump_python:
32  result = {}
33  execfile(python_config_filename, result)
34  process = result["process"]
35  expanded = process.dumpPython()
36  expandedFile = file(python_config_filename,"w")
37  expandedFile.write(expanded)
38  expandedFile.close()
39  print "Expanded config file", python_config_filename, "created"
40  sys.exit(0)
41 
42  if options.no_exec_flag:
43  print "Config file "+python_config_filename+ " created"
44  sys.exit(0)
45  else:
46  commandString = options.prefix+" cmsRun"
47  print "Starting "+commandString+' '+python_config_filename
48  commands = commandString.lstrip().split()
49  os.execvpe(commands[0],commands+[python_config_filename],os.environ)
50  sys.exit()
double split
Definition: MVATrainer.cc:139