CMS 3D CMS Logo

Functions
runTheMatrix Namespace Reference

Functions

def runSelected (opt)
 
def showRaw (opt)
 
def stepOrIndex (s)
 

Function Documentation

def runTheMatrix.runSelected (   opt)

Definition at line 19 of file runTheMatrix.py.

References harvestTrackValidationPlots.str.

Referenced by stepOrIndex().

19 def runSelected(opt):
20 
21  mrd = MatrixReader(opt)
22  mrd.prepare(opt.useInput, opt.refRel, opt.fromScratch)
23 
24  ret = 0
25  if opt.show:
26  mrd.show(opt.testList, opt.extended, opt.cafVeto)
27  if opt.testList : print 'testListected items:', opt.testList
28  else:
29  mRunnerHi = MatrixRunner(mrd.workFlows, opt.nProcs, opt.nThreads)
30  ret = mRunnerHi.runTests(opt)
31 
32  if opt.wmcontrol:
33  if ret!=0:
34  print 'Cannot go on with wmagent injection with failing workflows'
35  else:
36  wfInjector = MatrixInjector(opt,mode=opt.wmcontrol,options=opt.wmoptions)
37  ret= wfInjector.prepare(mrd,
38  mRunnerHi.runDirs)
39  if ret==0:
40  wfInjector.upload()
41  wfInjector.submit()
42  return ret
43 
44 # ================================================================================
45 
def runSelected(opt)
Definition: runTheMatrix.py:19
def runTheMatrix.showRaw (   opt)

Definition at line 10 of file runTheMatrix.py.

Referenced by stepOrIndex().

10 def showRaw(opt):
11 
12  mrd = MatrixReader(opt)
13  mrd.showRaw(opt.useInput, opt.refRel, opt.fromScratch, opt.raw, opt.step1Only, selected=opt.testList)
14 
15  return 0
16 
17 # ================================================================================
18 
def showRaw(opt)
Definition: runTheMatrix.py:10
def runTheMatrix.stepOrIndex (   s)

Definition at line 283 of file runTheMatrix.py.

References objects.autophobj.float, createfilelist.int, list(), genParticles_cff.map, MatrixInjector.performInjectionOptionTest(), runSelected(), and showRaw().

283  def stepOrIndex(s):
284  if s.isdigit():
285  return int(s)
286  else:
287  return s
def stepOrIndex(s)