CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
WorkFlow.WorkFlow Class Reference
Inheritance diagram for WorkFlow.WorkFlow:

Public Member Functions

def __init__
 
def check
 

Public Attributes

 cmds
 
 input
 
 nameId
 
 numId
 

Detailed Description

Definition at line 6 of file WorkFlow.py.

Constructor & Destructor Documentation

def WorkFlow.WorkFlow.__init__ (   self,
  num,
  nameID,
  inputInfo = None,
  commands = None 
)

Definition at line 8 of file WorkFlow.py.

8 
9  def __init__(self, num, nameID, inputInfo=None, commands=None):
10 
11  self.numId = num
12  self.nameId = nameID
13  self.cmds = []
14 
15  if commands:
16  for (i,c) in enumerate(commands):
17  nToRun=10 + (i!=0)*90
18  self.check(c,nToRun)
19 
20 
21  # run on real data requested:
22  self.input = inputInfo
23 
24  return

Member Function Documentation

def WorkFlow.WorkFlow.check (   self,
  cmd = None,
  nEvtDefault = 10 
)

Definition at line 25 of file WorkFlow.py.

25 
26  def check(self, cmd=None, nEvtDefault=10):
27  if not cmd : return None
28 
29  if (isinstance(cmd,str)) and ( ' -n ' not in cmd):
30  cmd+=' -n '+str(nEvtDefault)+' '
31 
32  self.cmds.append(cmd)
33  return cmd
34 

Member Data Documentation

WorkFlow.WorkFlow.cmds

Definition at line 12 of file WorkFlow.py.

WorkFlow.WorkFlow.input

Definition at line 21 of file WorkFlow.py.

Referenced by personalPlayback.Playback.do_create_lumi().

WorkFlow.WorkFlow.nameId

Definition at line 11 of file WorkFlow.py.

WorkFlow.WorkFlow.numId

Definition at line 10 of file WorkFlow.py.