CMS 3D CMS Logo

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 (ZMM, TTbar, ZEE, MinBias, TTbar PU, ZEE PU, TTbar design)
17 #same for 2018
18 numWFIB = [10042.0,10024.0,10025.0,10026.0,10023.0,10224.0,10225.0,10424.0,
19  10842.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
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', 'OnlyPhase1QuadProp')
65  else:
66  s = s.replace('Full', 'Full_trackingPhase1QuadProp')
67  if 'ALCA' in s:
68  continue
69  res.append(s)
70  return res
71 def _trackingLowPU(stepList):
72  res = []
73  for step in stepList:
74  s = step
75  if 'RecoFull' in step:
76  if 'trackingOnly' in step:
77  s = s.replace('Only', 'OnlyLowPU')
78  else:
79  s = s.replace('Full', 'Full_trackingLowPU')
80  if 'ALCA' in s:
81  continue
82  res.append(s)
83  return res
84 
85 # compose and adding tracking specific workflows in the IB test.
86 # NB. those workflows are expected to be only used forIB test.
87 # if you really want to run them locally, do runTheMatrix.py --what 2017 -l workflow numbers
88 workflows[10024.1] = [ workflows[10024.0][0], _trackingOnly(workflows[10024.0][1]) ]
89 workflows[10024.2] = [ workflows[10024.0][0], _trackingRun2(workflows[10024.0][1]) ]
90 workflows[10024.3] = [ workflows[10024.1][0], _trackingRun2(workflows[10024.1][1]) ]
91 workflows[10024.4] = [ workflows[10024.0][0], _trackingPhase1QuadProp(workflows[10024.0][1]) ]
92 workflows[10024.5] = [ workflows[10024.1][0], _trackingPhase1QuadProp(workflows[10024.1][1]) ]
93 workflows[10024.6] = [ workflows[10024.0][0], _trackingLowPU(workflows[10024.0][1]) ]
def _trackingOnly(stepList)
Definition: relval_2017.py:35
CLHEP::HepMatrix Matrix
Definition: matutil.h:65
def _trackingLowPU(stepList)
Definition: relval_2017.py:71
def _trackingRun2(stepList)
Definition: relval_2017.py:45
def _trackingPhase1QuadProp(stepList)
Definition: relval_2017.py:58