CMS 3D CMS Logo

Public Member Functions | Public Attributes

WorkFlow::WorkFlow Class Reference

List of all members.

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.

00009                                                                   :
00010 
00011         self.numId  = num
00012         self.nameId = nameID
00013         self.cmds = []
00014 
00015         if commands:
00016             for (i,c) in enumerate(commands):
00017                 nToRun=10 + (i!=0)*90
00018                 self.check(c,nToRun)
00019         
00020 
00021         # run on real data requested:
00022         self.input = inputInfo
00023 
00024         return


Member Function Documentation

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

Definition at line 25 of file WorkFlow.py.

00026                                              :
00027         if not cmd : return None
00028 
00029         if (isinstance(cmd,str)) and ( ' -n ' not in cmd):
00030             cmd+=' -n '+str(nEvtDefault)+' '
00031 
00032         self.cmds.append(cmd)
00033         return cmd
00034 


Member Data Documentation

Definition at line 8 of file WorkFlow.py.

Definition at line 8 of file WorkFlow.py.

Definition at line 8 of file WorkFlow.py.

Definition at line 8 of file WorkFlow.py.