CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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)
 
def check (self, cmd=None, nEvtDefault=10)
 

Public Attributes

 cmds
 
 input
 
 nameId
 
 numId
 

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 
)

Definition at line 8 of file WorkFlow.py.

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 
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)

Member Function Documentation

◆ check()

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

Definition at line 25 of file WorkFlow.py.

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

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 
#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

Definition at line 21 of file WorkFlow.py.

Referenced by personalPlayback.Playback.do_create_lumi().

◆ nameId

WorkFlow.WorkFlow.nameId

Definition at line 11 of file WorkFlow.py.

◆ numId

WorkFlow.WorkFlow.numId

Definition at line 10 of file WorkFlow.py.