CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
WorkFlow.WorkFlow Class Reference
Inheritance diagram for WorkFlow.WorkFlow:

Public Member Functions

def __init__ (self, num, nameID, inputInfo=None, commands=None, stepList=None)
 
def check (self, cmd=None, nEvtDefault=10)
 

Public Attributes

 cmds
 
 input
 
 nameId
 
 numId
 
 stepList
 

Detailed Description

Definition at line 6 of file WorkFlow.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 8 of file WorkFlow.py.

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 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)
assert(be >=bs)

Member Function Documentation

◆ check()

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

Definition at line 27 of file WorkFlow.py.

References mps_setup.append, WorkFlow.WorkFlow.cmds, and str.

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 
#define str(s)

Member Data Documentation

◆ cmds

WorkFlow.WorkFlow.cmds

Definition at line 12 of file WorkFlow.py.

Referenced by WorkFlow.WorkFlow.check().

◆ input

WorkFlow.WorkFlow.input

◆ nameId

WorkFlow.WorkFlow.nameId

Definition at line 11 of file WorkFlow.py.

◆ numId

WorkFlow.WorkFlow.numId

Definition at line 10 of file WorkFlow.py.

◆ stepList

WorkFlow.WorkFlow.stepList

Definition at line 18 of file WorkFlow.py.