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 20 of file runTheMatrix.py.

References edm.print(), and str.

Referenced by stepOrIndex().

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

Definition at line 11 of file runTheMatrix.py.

Referenced by stepOrIndex().

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

Definition at line 294 of file runTheMatrix.py.

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

294  def stepOrIndex(s):
295  if s.isdigit():
296  return int(s)
297  else:
298  return s
def stepOrIndex(s)