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

Member Function Documentation

◆ check()

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

Definition at line 25 of file WorkFlow.py.

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 

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

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.

RPCNoise_example.check
check
Definition: RPCNoise_example.py:71
str
#define str(s)
Definition: TestProcessor.cc:48
mps_setup.append
append
Definition: mps_setup.py:85