test
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 numWFIB = [10021.0,10024.0,10025.0,10026.0,10023.0,10224.0,10225.0,10424.0]
18 for i,key in enumerate(upgradeKeys[2017]):
19  numWF=numWFAll[2017][i]
20  for frag in upgradeFragments:
21  k=frag[:-4]+'_'+key
22  stepList=[]
23  for step in upgradeProperties[2017][key]['ScenToRun']:
24  if 'Sim' in step:
25  stepList.append(k+'_'+step)
26  else:
27  stepList.append(step+'_'+key)
28  if numWF in numWFIB:
29  workflows[numWF] = [ upgradeDatasetFromFragment[frag], stepList]
30  numWF+=1
31 
32 # Tracking-specific special workflows
33 def _trackingOnly(stepList):
34  res = []
35  for step in stepList:
36  s = step
37  if 'RecoFull' in step or 'HARVESTFull' in step:
38  s = s.replace('Full', 'Full_trackingOnly')
39  if 'ALCA' in s:
40  continue
41  res.append(s)
42  return res
43 def _trackingRun2(stepList):
44  res = []
45  for step in stepList:
46  s = step
47  if 'RecoFull' in step:
48  if 'trackingOnly' in step:
49  s = s.replace('Only', 'OnlyRun2')
50  else:
51  s = s.replace('Full', 'Full_trackingRun2')
52  if 'ALCA' in s:
53  continue
54  res.append(s)
55  return res
56 def _trackingPhase1PU70(stepList):
57  res = []
58  for step in stepList:
59  s = step
60  if 'RecoFull' in step:
61  if 'trackingOnly' in step:
62  s = s.replace('Only', 'OnlyPhase1PU70')
63  else:
64  s = s.replace('Full', 'Full_trackingPhase1PU70')
65  if 'ALCA' in s:
66  continue
67  res.append(s)
68  return res
69 
70 # compose and adding tracking specific workflows in the IB test.
71 # NB. those workflows are expected to be only used forIB test.
72 # if you really want to run them locally, do runTheMatrix.py --what 2017 -l workflow numbers
73 workflows[10024.1] = [ workflows[10024.0][0], _trackingOnly(workflows[10024.0][1]) ]
74 workflows[10024.2] = [ workflows[10024.0][0], _trackingRun2(workflows[10024.0][1]) ]
75 workflows[10024.3] = [ workflows[10024.1][0], _trackingRun2(workflows[10024.1][1]) ]
76 workflows[10024.4] = [ workflows[10024.0][0], _trackingPhase1PU70(workflows[10024.0][1]) ]
77 workflows[10024.5] = [ workflows[10024.1][0], _trackingPhase1PU70(workflows[10024.1][1]) ]
def _trackingRun2
Definition: relval_2017.py:43
CLHEP::HepMatrix Matrix
Definition: matutil.h:65
def _trackingPhase1PU70
Definition: relval_2017.py:56
def _trackingOnly
Definition: relval_2017.py:33