CMS 3D CMS Logo

Public Member Functions | Public Attributes

runTheMatrix_dev::WorkFlow Class Reference

List of all members.

Public Member Functions

def __init__
def check

Public Attributes

 cmdStep1
 cmdStep2
 cmdStep3
 cmdStep4
 input
 nameId
 numId

Detailed Description

Definition at line 223 of file runTheMatrix_dev.py.


Constructor & Destructor Documentation

def runTheMatrix_dev::WorkFlow::__init__ (   self,
  num,
  nameID,
  cmd1,
  cmd2 = None,
  cmd3 = None,
  cmd4 = None,
  inputInfo = None 
)

Definition at line 225 of file runTheMatrix_dev.py.

00226                                                                                           :
00227 
00228         self.numId  = num.strip()
00229         self.nameId = nameID
00230         self.cmdStep1 = self.check(cmd1)
00231         self.cmdStep2 = self.check(cmd2)
00232         self.cmdStep3 = self.check(cmd3)
00233         self.cmdStep4 = self.check(cmd4)
00234 
00235         # run on real data requested:
00236         self.input = inputInfo
00237         return


Member Function Documentation

def runTheMatrix_dev::WorkFlow::check (   self,
  cmd = None 
)

Definition at line 238 of file runTheMatrix_dev.py.

00239                              :
00240         if not cmd : return None
00241 
00242         # raw data are treated differently ...
00243         if 'DATAINPUT' in cmd: return cmd
00244 
00245         # force the number of events to process to be 10
00246         reN = re.compile('\s*-n\s*\d+\s*')
00247         newCmd = reN.sub(' -n 10 ', cmd)
00248         if not reN.match(newCmd) : # -n not specified, add it:
00249             newCmd += ' -n 10 '
00250 
00251         return newCmd
00252 
00253 # ================================================================================


Member Data Documentation

Definition at line 225 of file runTheMatrix_dev.py.

Definition at line 225 of file runTheMatrix_dev.py.

Definition at line 225 of file runTheMatrix_dev.py.

Definition at line 225 of file runTheMatrix_dev.py.

Definition at line 225 of file runTheMatrix_dev.py.

Definition at line 225 of file runTheMatrix_dev.py.

Definition at line 225 of file runTheMatrix_dev.py.