CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
relval_2017.py
Go to the documentation of this file.
1 
2 # import the definition of the steps and input files:
4 
5 # here only define the workflows as a combination of the steps defined above:
6 workflows = Matrix()
7 
8 # each workflow defines a name and a list of steps to be done.
9 # if no explicit name/label given for the workflow (first arg),
10 # the name of step1 will be used
11 
12 
13 
14 #just define all of them
15 
16 #2017 WFs to run in IB (TenMuE_0_200, TTbar, ZEE, MinBias, TTbar PU, ZEE PU, TTbar design)
17 #same for 2018
18 numWFIB = [10021.0,10024.0,10025.0,10026.0,10023.0,10224.0,10225.0,10424.0,
19  10821.0,10824.0,10825.0,10826.0,10823.0,11024.0,11025.0,11224.0]
20 for i,key in enumerate(upgradeKeys[2017]):
21  numWF=numWFAll[2017][i]
22  for frag in upgradeFragments:
23  k=frag[:-4]+'_'+key
24  stepList=[]
25  for step in upgradeProperties[2017][key]['ScenToRun']:
26  if 'Sim' in step:
27  stepList.append(k+'_'+step)
28  else:
29  stepList.append(step+'_'+key)
30  if numWF in numWFIB:
31  workflows[numWF] = [ upgradeDatasetFromFragment[frag], stepList]
32  numWF+=1
33 
34 # Tracking-specific special workflows
35 def _trackingOnly(stepList):
36  res = []
37  for step in stepList:
38  s = step
39  if 'RecoFull' in step or 'HARVESTFull' in step:
40  s = s.replace('Full', 'Full_trackingOnly')
41  if 'ALCA' in s:
42  continue
43  res.append(s)
44  return res
45 def _trackingRun2(stepList):
46  res = []
47  for step in stepList:
48  s = step
49  if 'RecoFull' in step:
50  if 'trackingOnly' in step:
51  s = s.replace('Only', 'OnlyRun2')
52  else:
53  s = s.replace('Full', 'Full_trackingRun2')
54  if 'ALCA' in s:
55  continue
56  res.append(s)
57  return res
58 def _trackingPhase1CA(stepList):
59  res = []
60  for step in stepList:
61  s = step
62  if 'RecoFull' in step:
63  if 'trackingOnly' in step:
64  s = s.replace('Only', 'OnlyPhase1CA')
65  else:
66  s = s.replace('Full', 'Full_trackingPhase1CA')
67  if 'ALCA' in s:
68  continue
69  res.append(s)
70  return res
71 
72 # compose and adding tracking specific workflows in the IB test.
73 # NB. those workflows are expected to be only used forIB test.
74 # if you really want to run them locally, do runTheMatrix.py --what 2017 -l workflow numbers
75 workflows[10024.1] = [ workflows[10024.0][0], _trackingOnly(workflows[10024.0][1]) ]
76 workflows[10024.2] = [ workflows[10024.0][0], _trackingRun2(workflows[10024.0][1]) ]
77 workflows[10024.3] = [ workflows[10024.1][0], _trackingRun2(workflows[10024.1][1]) ]
78 workflows[10024.4] = [ workflows[10024.0][0], _trackingPhase1CA(workflows[10024.0][1]) ]
79 workflows[10024.5] = [ workflows[10024.1][0], _trackingPhase1CA(workflows[10024.1][1]) ]
def _trackingRun2
Definition: relval_2017.py:45
CLHEP::HepMatrix Matrix
Definition: matutil.h:65
def _trackingPhase1CA
Definition: relval_2017.py:58
def _trackingOnly
Definition: relval_2017.py:35