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 = 'nProcs'
 
string help = 'number of processes. 0 Will use 4 processes, 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 19 of file runTheMatrix.py.

19 
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)
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 # ================================================================================
def runTheMatrix.showRaw (   opt)

Definition at line 10 of file runTheMatrix.py.

10 
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 # ================================================================================
def runTheMatrix.stepOrIndex (   s)

Definition at line 219 of file runTheMatrix.py.

References python.multivaluedict.map().

220  def stepOrIndex(s):
221  if s.isdigit():
222  return int(s)
223  else:
return s

Variable Documentation

string runTheMatrix.action = 'store_true'

Definition at line 87 of file runTheMatrix.py.

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

Definition at line 137 of file runTheMatrix.py.

string runTheMatrix.default = 4

Definition at line 75 of file runTheMatrix.py.

string runTheMatrix.dest = 'nProcs'

Definition at line 74 of file runTheMatrix.py.

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

Definition at line 73 of file runTheMatrix.py.

runTheMatrix.mapped = False

Definition at line 235 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  1000, #data+prompt
7  1001, #data+express
8  4.53, #2012B Photon data
9  140.53, #2011 HI data
10  1330, #Run2 MC Zmm
11  135.4 #Run 2 Zee ttbar
12  ],
13  'jetmc': [5.1, 13, 15, 25, 38, 39], #MC
14  'metmc' : [5.1, 15, 25, 37, 38, 39], #MC
15  'muonmc' : [5.1, 124.4, 124.5, 20, 21, 22, 23, 25, 30], #MC
16  }

Definition at line 49 of file runTheMatrix.py.

tuple runTheMatrix.ret = showRaw(opt)

prodAgent to be discontinued

Definition at line 261 of file runTheMatrix.py.

list runTheMatrix.testList = []

Definition at line 232 of file runTheMatrix.py.

Referenced by QTestConfigurationParser.monitorElementTestsMap().

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

Definition at line 68 of file runTheMatrix.py.