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):
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
19
20
# run on real data requested:
21
self.
input
= inputInfo
22
23
return
24
25
def
check
(self, cmd=None, nEvtDefault=10):
26
if
not
cmd :
return
None
27
28
if
(isinstance(cmd,str))
and
(
' -n '
not
in
cmd):
29
cmd+=
' -n '
+
str
(nEvtDefault)+
' '
30
31
self.
cmds
.
append
(cmd)
32
return
cmd
33
34
35
class
WorkFlowConnector
(
object
):
36
def
__init__
(self):
37
self.
moduleName
=
''
38
self.
tier
=
''
39
self.
fileName
=
''
40
41
class
WorkFlowBlock
(
object
):
42
def
__init__
(self, name,cmdDict):
43
self.
nameId
= name
44
self.
command
=
''
#made from the cmdDict
45
46
47
self.
ins
=
None
48
self.
outs
=
None
49
50
def
getProcess
(self):
51
#get ConfigBuilder to give a process back
52
return
None
53
WorkFlow.WorkFlow.numId
numId
Definition:
WorkFlow.py:10
WorkFlow.WorkFlowBlock.__init__
def __init__(self, name, cmdDict)
Definition:
WorkFlow.py:42
resolutioncreator_cfi.object
object
Definition:
resolutioncreator_cfi.py:4
WorkFlow.WorkFlowConnector.__init__
def __init__(self)
Definition:
WorkFlow.py:36
str
#define str(s)
Definition:
TestProcessor.cc:51
WorkFlow.WorkFlowConnector.moduleName
moduleName
Definition:
WorkFlow.py:37
WorkFlow.WorkFlow.__init__
def __init__(self, num, nameID, inputInfo=None, commands=None)
Definition:
WorkFlow.py:8
WorkFlow.WorkFlowBlock.nameId
nameId
Definition:
WorkFlow.py:43
WorkFlow.WorkFlowConnector.tier
tier
Definition:
WorkFlow.py:38
mps_setup.append
append
Definition:
mps_setup.py:85
WorkFlow.WorkFlow.input
input
Definition:
WorkFlow.py:21
WorkFlow.WorkFlowConnector.fileName
fileName
Definition:
WorkFlow.py:39
WorkFlow.WorkFlow.cmds
cmds
Definition:
WorkFlow.py:12
WorkFlow.WorkFlowBlock
Definition:
WorkFlow.py:41
WorkFlow.WorkFlowBlock.ins
ins
I/O of the block.
Definition:
WorkFlow.py:47
WorkFlow.WorkFlow.nameId
nameId
Definition:
WorkFlow.py:11
WorkFlow.WorkFlowBlock.getProcess
def getProcess(self)
Definition:
WorkFlow.py:50
WorkFlow.WorkFlow.check
def check(self, cmd=None, nEvtDefault=10)
Definition:
WorkFlow.py:25
WorkFlow.WorkFlow
Definition:
WorkFlow.py:6
WorkFlow.WorkFlowBlock.command
command
Definition:
WorkFlow.py:44
WorkFlow.WorkFlowBlock.outs
outs
Definition:
WorkFlow.py:48
WorkFlow.WorkFlowConnector
Definition:
WorkFlow.py:35
Generated for CMSSW Reference Manual by
1.8.16