src
Configuration
PyReleaseValidation
python
WorkFlow.py
Go to the documentation of this file.
1
2
import
re
3
4
# ================================================================================
5
6
class
WorkFlow
(
object
):
7
8
def
__init__
(self, num, nameID, inputInfo=None, commands=None, stepList=None):
9
10
self.
numId
= num
11
self.
nameId
= nameID
12
self.
cmds
= []
13
14
if
commands:
15
for
(i,c)
in
enumerate(commands):
16
nToRun=10 + (i!=0)*90
17
self.
check
(c,nToRun)
18
self.
stepList
= stepList
19
if
commands
and
stepList:
20
assert
(len(commands)==len(stepList))
21
22
# run on real data requested:
23
self.
input
= inputInfo
24
25
return
26
27
def
check
(self, cmd=None, nEvtDefault=10):
28
if
not
cmd :
return
None
29
30
if
(isinstance(cmd,str))
and
(
' -n '
not
in
cmd):
31
cmd+=
' -n '
+
str
(nEvtDefault)+
' '
32
33
self.
cmds
.
append
(cmd)
34
return
cmd
35
36
37
class
WorkFlowConnector
(
object
):
38
def
__init__
(self):
39
self.
moduleName
=
''
40
self.
tier
=
''
41
self.
fileName
=
''
42
43
class
WorkFlowBlock
(
object
):
44
def
__init__
(self, name,cmdDict):
45
self.
nameId
= name
46
self.
command
=
''
#made from the cmdDict
47
48
49
self.
ins
=
None
50
self.
outs
=
None
51
52
def
getProcess
(self):
53
#get ConfigBuilder to give a process back
54
return
None
55
WorkFlow.WorkFlowBlock.outs
outs
Definition:
WorkFlow.py:50
WorkFlow.WorkFlow.nameId
nameId
Definition:
WorkFlow.py:11
WorkFlow.WorkFlowBlock.command
command
Definition:
WorkFlow.py:46
cms::cuda::assert
assert(be >=bs)
WorkFlow.WorkFlow.input
input
Definition:
WorkFlow.py:23
WorkFlow.WorkFlowBlock.__init__
def __init__(self, name, cmdDict)
Definition:
WorkFlow.py:44
WorkFlow.WorkFlowBlock.ins
ins
I/O of the block.
Definition:
WorkFlow.py:49
WorkFlow.WorkFlow.__init__
def __init__(self, num, nameID, inputInfo=None, commands=None, stepList=None)
Definition:
WorkFlow.py:8
WorkFlow.WorkFlow.check
def check(self, cmd=None, nEvtDefault=10)
Definition:
WorkFlow.py:27
WorkFlow.WorkFlow.cmds
cmds
Definition:
WorkFlow.py:12
WorkFlow.WorkFlow.stepList
stepList
Definition:
WorkFlow.py:18
WorkFlow.WorkFlow.numId
numId
Definition:
WorkFlow.py:10
WorkFlow.WorkFlowBlock
Definition:
WorkFlow.py:43
mps_setup.append
append
Definition:
mps_setup.py:85
WorkFlow.WorkFlowBlock.getProcess
def getProcess(self)
Definition:
WorkFlow.py:52
WorkFlow.WorkFlow
Definition:
WorkFlow.py:6
WorkFlow.WorkFlowConnector.moduleName
moduleName
Definition:
WorkFlow.py:39
WorkFlow.WorkFlowBlock.nameId
nameId
Definition:
WorkFlow.py:45
WorkFlow.WorkFlowConnector
Definition:
WorkFlow.py:37
WorkFlow.WorkFlowConnector.__init__
def __init__(self)
Definition:
WorkFlow.py:38
WorkFlow.WorkFlowConnector.fileName
fileName
Definition:
WorkFlow.py:41
WorkFlow.WorkFlowConnector.tier
tier
Definition:
WorkFlow.py:40
str
#define str(s)
Definition:
TestProcessor.cc:56
resolutioncreator_cfi.object
object
Definition:
resolutioncreator_cfi.py:4
Generated for CMSSW Reference Manual by
1.8.14