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 from Configuration.PyReleaseValidation.relval_upgrade import workflows as _upgrade_workflows
13 
14 #just define all of them
15 
16 #WFs to run in IB:
17 # 2017 (ele guns 10, 35, 1000; pho guns 10, 35; mu guns 1, 10, 100, 1000, QCD 3TeV, QCD Flat)
18 # 2017 (ZMM, TTbar, ZEE, MinBias, TTbar PU, ZEE PU, TTbar design)
19 # 2018 (ele guns 10, 35, 1000; pho guns 10, 35; mu guns 1, 10, 100, 1000, QCD 3TeV, QCD Flat)
20 # 2018 (ZMM, TTbar, ZEE, MinBias, TTbar PU, ZEE PU, TTbar design)
21 # he collapse: TTbar, TTbar PU, TTbar design
22 # 2019 (ZMM, TTbar, ZEE, MinBias, TTbar PU, ZEE PU, TTbar design)
23 numWFIB = [10001.0,10002.0,10003.0,10004.0,10005.0,10006.0,10007.0,10008.0,10009.0,10059.0,10071.0,
24  10042.0,10024.0,10025.0,10026.0,10023.0,10224.0,10225.0,10424.0,
25  10801.0,10802.0,10803.0,10804.0,10805.0,10806.0,10807.0,10808.0,10809.0,10859.0,10871.0,
26  10842.0,10824.0,10825.0,10826.0,10823.0,11024.0,11025.0,11224.0,
27  10824.6,11024.6,11224.6,
28  11642.0,11624.0,11625.0,11626.0,11623.0,11824.0,11825.0,12024.0]
29 for numWF in numWFIB:
30  if not numWF in _upgrade_workflows: continue
31  workflows[numWF] = _upgrade_workflows[numWF]
32 
33 # Tracking-specific special workflows
34 def _trackingOnly(stepList):
35  res = []
36  for step in stepList:
37  s = step
38  if 'RecoFull' in step or 'HARVESTFull' in step:
39  s = s.replace('Full', 'Full_trackingOnly')
40  if 'ALCA' in s:
41  continue
42  res.append(s)
43  return res
44 def _pixelTrackingOnly(stepList):
45  res = []
46  for step in stepList:
47  s = step
48  if 'RecoFull' in step or 'HARVESTFull' in step:
49  s = s.replace('Full', 'Full_pixelTrackingOnly')
50  if 'ALCA' in s:
51  continue
52  res.append(s)
53  return res
54 def _trackingRun2(stepList):
55  res = []
56  for step in stepList:
57  s = step
58  if 'RecoFull' in step:
59  if 'trackingOnly' in step:
60  s = s.replace('Only', 'OnlyRun2')
61  else:
62  s = s.replace('Full', 'Full_trackingRun2')
63  if 'ALCA' in s:
64  continue
65  res.append(s)
66  return res
67 def _trackingLowPU(stepList):
68  res = []
69  for step in stepList:
70  s = step
71  if 'RecoFull' in step:
72  if 'trackingOnly' in step:
73  s = s.replace('Only', 'OnlyLowPU')
74  else:
75  s = s.replace('Full', 'Full_trackingLowPU')
76  if 'ALCA' in s:
77  continue
78  res.append(s)
79  return res
80 
81 # compose and adding tracking specific workflows in the IB test.
82 # NB. those workflows are expected to be only used forIB test.
83 # if you really want to run them locally, do runTheMatrix.py --what 2017 -l workflow numbers
84 workflows[10024.1] = [ workflows[10024.0][0], _trackingOnly(workflows[10024.0][1]) ]
85 workflows[10024.2] = [ workflows[10024.0][0], _trackingRun2(workflows[10024.0][1]) ]
86 workflows[10024.3] = [ workflows[10024.1][0], _trackingRun2(workflows[10024.1][1]) ]
87 workflows[10024.4] = [ workflows[10024.0][0], _trackingLowPU(workflows[10024.0][1]) ]
88 workflows[10024.5] = [ workflows[10024.0][0], _pixelTrackingOnly(workflows[10024.0][1]) ]
89 # for 2018 as well, use the same numbering
90 workflows[10824.1] = [ workflows[10824.0][0], _trackingOnly(workflows[10024.0][1]) ]
91 workflows[10824.5] = [ workflows[10824.0][0], _pixelTrackingOnly(workflows[10024.0][1]) ]
def _trackingOnly(stepList)
Definition: relval_2017.py:34
CLHEP::HepMatrix Matrix
Definition: matutil.h:65
def _trackingLowPU(stepList)
Definition: relval_2017.py:67
def _pixelTrackingOnly(stepList)
Definition: relval_2017.py:44
def _trackingRun2(stepList)
Definition: relval_2017.py:54