CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
runTheMatrix Namespace Reference

Functions

def runSelected
 
def showRaw
 
def stepOrIndex
 

Variables

string action = 'store_true'
 
list choices = ['init','test','submit','force']
 
int default = 4
 
string dest = 'nThreads'
 
string help = 'number of threads. 0 Will use 4 threads, not execute anything but create the wfs'
 
 mapped = False
 
tuple parser = optparse.OptionParser(usage)
 
dictionary predefinedSet
 
tuple ret = showRaw(opt)
 prodAgent to be discontinued More...
 
list testList = []
 
string usage = 'usage: runTheMatrix.py --show -s '
 

Function Documentation

def runTheMatrix.runSelected (   opt)

Definition at line 20 of file runTheMatrix.py.

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

Definition at line 11 of file runTheMatrix.py.

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

Definition at line 207 of file runTheMatrix.py.

References python.multivaluedict.map().

208  def stepOrIndex(s):
209  if s.isdigit():
210  return int(s)
211  else:
return s

Variable Documentation

string runTheMatrix.action = 'store_true'

Definition at line 81 of file runTheMatrix.py.

list runTheMatrix.choices = ['init','test','submit','force']

Definition at line 131 of file runTheMatrix.py.

string runTheMatrix.default = 4

Definition at line 75 of file runTheMatrix.py.

string runTheMatrix.dest = 'nThreads'

Definition at line 74 of file runTheMatrix.py.

string runTheMatrix.help = 'number of threads. 0 Will use 4 threads, not execute anything but create the wfs'

Definition at line 73 of file runTheMatrix.py.

runTheMatrix.mapped = False

Definition at line 223 of file runTheMatrix.py.

Referenced by npstat::ArrayND< Numeric, StackLen, StackDim >.marginalize(), and npstat::ArrayND< Numeric, StackLen, StackDim >.marginalizeLoop().

tuple runTheMatrix.parser = optparse.OptionParser(usage)

Definition at line 70 of file runTheMatrix.py.

dictionary runTheMatrix.predefinedSet
Initial value:
1 = {
2  'limited' : [5.1, #FastSim ttbar
3  8, #BH/Cosmic MC
4  25, #MC ttbar
5  4.22, #cosmic data
6  4.291, #hlt data
7  1000, #data+prompt
8  1001, #data+express
9  4.53, #HI data
10  40, #HI MC
11  ],
12  'jetmc': [5.1, 13, 15, 25, 38, 39], #MC
13  'metmc' : [5.1, 15, 25, 37, 38, 39], #MC
14  'muonmc' : [5.1, 124.4, 124.5, 20, 21, 22, 23, 25, 30], #MC
15  }

Definition at line 50 of file runTheMatrix.py.

tuple runTheMatrix.ret = showRaw(opt)

prodAgent to be discontinued

Definition at line 248 of file runTheMatrix.py.

list runTheMatrix.testList = []

Definition at line 220 of file runTheMatrix.py.

Referenced by QTestConfigurationParser.monitorElementTestsMap().

string runTheMatrix.usage = 'usage: runTheMatrix.py --show -s '

Definition at line 68 of file runTheMatrix.py.