CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
relval_steps.py
Go to the documentation of this file.
1 class Matrix(dict):
2  def __setitem__(self,key,value):
3  if key in self:
4  print "ERROR in Matrix"
5  print "overwritting",key,"not allowed"
6  else:
7  self.update({float(key):WF(float(key),value)})
8 
9 
10 #the class to collect all possible steps
11 class Steps(dict):
12  def __setitem__(self,key,value):
13  if key in self:
14  print "ERROR in Step"
15  print "overwritting",key,"not allowed"
16  import sys
17  sys.exit(-9)
18  else:
19  self.update({key:value})
20  # make the python file named <step>.py
21  #if not '--python' in value: self[key].update({'--python':'%s.py'%(key,)})
22 
23  def overwrite(self,keypair):
24  value=self[keypair[1]]
25  print "overwritting step",keypair[0],"with",keypair[1],str(value)
26  self.update({keypair[0]:value})
27 
28 class WF(list):
29  def __init__(self,n,l):
30  self.extend(l)
31  self.num=n
32  #the actual steps of this WF
33  self.steps=[]
34 
35 
36  def interpret(self,stepsDict):
37  for s in self:
38  steps.append(stepsDict[s])
39 
40 InputInfoNDefault=2000000
42  def __init__(self,dataSet,label='',run=[],files=1000,events=InputInfoNDefault,split=10,location='CAF',ib_blacklist=None,ib_block=None) :
43  self.run = run
44  self.files = files
45  self.events = events
46  self.location = location
47  self.label = label
48  self.dataSet = dataSet
49  self.split = split
50  self.ib_blacklist = ib_blacklist
51  self.ib_block = ib_block
52 
53  def das(self, das_options):
54  if len(self.run) is not 0:
55  command = ";".join(["das_client.py %s --query '%s'" % (das_options, query) for query in self.queries()])
56  command = "({0})".format(command)
57  else:
58  command = "das_client.py %s --query '%s'" % (das_options, self.queries()[0])
59 
60  # Run filter on DAS output
61  if self.ib_blacklist:
62  command += " | grep -E -v "
63  command += " ".join(["-e '{0}'".format(pattern) for pattern in self.ib_blacklist])
64  command += " | sort -u"
65  return command
66 
67  def lumiRanges(self):
68  if len(self.run) != 0:
69  return "echo '{\n"+",".join(('"%d":[[1,268435455]]\n'%(x,) for x in self.run))+"}'"
70  return None
71 
72  def queries(self):
73  query_by = "block" if self.ib_block else "dataset"
74  query_source = "{0}#{1}".format(self.dataSet, self.ib_block) if self.ib_block else self.dataSet
75  if len(self.run) is not 0:
76  return ["file {0}={1} run={2} site=T2_CH_CERN".format(query_by, query_source, query_run) for query_run in self.run]
77  else:
78  return ["file {0}={1} site=T2_CH_CERN".format(query_by, query_source)]
79 
80  def __str__(self):
81  if self.ib_block:
82  return "input from: {0} with run {1}#{2}".format(self.dataSet, self.ib_block, self.run)
83  return "input from: {0} with run {1}".format(self.dataSet, self.run)
84 
85 # merge dictionaries, with prioty on the [0] index
86 def merge(dictlist,TELL=False):
87  import copy
88  last=len(dictlist)-1
89  if TELL: print last,dictlist
90  if last==0:
91  # ONLY ONE ITEM LEFT
92  return copy.copy(dictlist[0])
93  else:
94  reducedlist=dictlist[0:max(0,last-1)]
95  if TELL: print reducedlist
96  # make a copy of the last item
97  d=copy.copy(dictlist[last])
98  # update with the last but one item
99  d.update(dictlist[last-1])
100  # and recursively do the rest
101  reducedlist.append(d)
102  return merge(reducedlist,TELL)
103 
104 
105 # step1 gensim: for run1
106 step1Defaults = {'--relval' : None, # need to be explicitly set
107  '-s' : 'GEN,SIM',
108  '-n' : 10,
109  '--conditions' : 'auto:run1_mc',
110  '--datatier' : 'GEN-SIM',
111  '--eventcontent': 'RAWSIM',
112  }
113 # step1 gensim: for postLS1
114 step1Up2015Defaults = {'-s' : 'GEN,SIM',
115  '-n' : 10,
116  '--conditions' : 'auto:run2_mc',
117  '--datatier' : 'GEN-SIM',
118  '--eventcontent': 'FEVTDEBUG',
119  '--magField' : '38T_PostLS1',
120  '--customise' : 'SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1'
121  }
122 
123 steps = Steps()
124 #wmsplit = {}
125 
126 #### Production test section ####
127 steps['ProdMinBias']=merge([{'cfg':'MinBias_8TeV_cfi','--relval':'9000,300'},step1Defaults])
128 steps['ProdTTbar']=merge([{'cfg':'TTbar_Tauola_8TeV_cfi','--relval':'9000,100'},step1Defaults])
129 steps['ProdQCD_Pt_3000_3500']=merge([{'cfg':'QCD_Pt_3000_3500_8TeV_cfi','--relval':'9000,50'},step1Defaults])
130 
131 #### data ####
132 #list of run to harvest for 2010A: 144086,144085,144084,144083,144011,139790,139789,139788,139787,138937,138934,138924,138923
133 #list of run to harvest for 2010B: 149442,149291,149181,149011,148822,147929,147115,146644
134 Run2010ASk=[138937,138934,138924,138923,139790,139789,139788,139787,144086,144085,144084,144083,144011]
135 Run2010BSk=[146644,147115,147929,148822,149011,149181,149182,149291,149294,149442]
136 steps['MinimumBias2010A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2010A-valskim-v6/RAW-RECO',label='run2010A',location='STD',run=Run2010ASk)}
137 steps['MinimumBias2010B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2010B-valskim-v2/RAW-RECO',label='run2010B',run=Run2010BSk)}
138 steps['WZMuSkim2010A']={'INPUT':InputInfo(dataSet='/Mu/Run2010A-WZMu-Nov4Skim_v1/RAW-RECO',label='wzMu2010A',run=Run2010ASk)}
139 steps['WZMuSkim2010B']={'INPUT':InputInfo(dataSet='/Mu/Run2010B-WZMu-Nov4Skim_v1/RAW-RECO',label='wzMu2010B',run=Run2010BSk)}
140 steps['WZEGSkim2010A']={'INPUT':InputInfo(dataSet='/EG/Run2010A-WZEG-Nov4Skim_v1/RAW-RECO',label='wzEG2010A',run=Run2010ASk)}
141 steps['WZEGSkim2010B']={'INPUT':InputInfo(dataSet='/Electron/Run2010B-WZEG-Nov4Skim_v1/RAW-RECO',label='wzEG2010B',run=Run2010BSk)}
142 
143 steps['RunCosmicsA']={'INPUT':InputInfo(dataSet='/Cosmics/Run2010A-v1/RAW',label='cos2010A',run=[142089],events=100000)}
144 Run2010B=[149011]
145 steps['RunMinBias2010B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2010B-RelValRawSkim-v1/RAW',label='mb2010B',run=Run2010B,events=100000)}
146 steps['RunMu2010B']={'INPUT':InputInfo(dataSet='/Mu/Run2010B-RelValRawSkim-v1/RAW',label='mu2010B',run=Run2010B,events=100000)}
147 steps['RunElectron2010B']={'INPUT':InputInfo(dataSet='/Electron/Run2010B-RelValRawSkim-v1/RAW',label='electron2010B',run=Run2010B,events=100000)}
148 steps['RunPhoton2010B']={'INPUT':InputInfo(dataSet='/Photon/Run2010B-RelValRawSkim-v1/RAW',label='photon2010B',run=Run2010B,events=100000)}
149 steps['RunJet2010B']={'INPUT':InputInfo(dataSet='/Jet/Run2010B-RelValRawSkim-v1/RAW',label='jet2010B',run=Run2010B,events=100000)}
150 
151 #list of run to harvest 2011A: 165121, 172802,
152 Run2011ASk=[165121,172802]
153 steps['ValSkim2011A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2011A-ValSkim-08Nov2011-v1/RAW-RECO',ib_block='239c497e-0fae-11e1-a8b1-00221959e72f',label='run2011A',location='STD',run=Run2011ASk)}
154 steps['WMuSkim2011A']={'INPUT':InputInfo(dataSet='/SingleMu/Run2011A-WMu-08Nov2011-v1/RAW-RECO',ib_block='388c2990-0de6-11e1-bb7e-00221959e72f',label='wMu2011A',location='STD',run=Run2011ASk)}
155 steps['WElSkim2011A']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2011A-WElectron-08Nov2011-v1/RAW-RECO',ib_block='9c48c4ea-0db2-11e1-b62c-00221959e69e',label='wEl2011A',location='STD',run=Run2011ASk)}
156 steps['ZMuSkim2011A']={'INPUT':InputInfo(dataSet='/DoubleMu/Run2011A-ZMu-08Nov2011-v1/RAW-RECO',label='zMu2011A',location='STD',run=Run2011ASk)}
157 steps['ZElSkim2011A']={'INPUT':InputInfo(dataSet='/DoubleElectron/Run2011A-ZElectron-08Nov2011-v1/RAW-RECO',label='zEl2011A',location='STD',run=Run2011ASk)}
158 steps['HighMet2011A']={'INPUT':InputInfo(dataSet='/Jet/Run2011A-HighMET-08Nov2011-v1/RAW-RECO',ib_block='3c764584-0b59-11e1-b62c-00221959e69e',label='hMet2011A',location='STD',run=Run2011ASk)}
159 
160 steps['RunCosmics2011A']={'INPUT':InputInfo(dataSet='/Cosmics/Run2011A-v1/RAW',label='cos2011A',run=[160960],events=100000,location='STD')}
161 Run2011A=[165121]
162 steps['RunMinBias2011A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2011A-v1/RAW',label='mb2011A',run=Run2011A,events=100000,location='STD')}
163 steps['RunMu2011A']={'INPUT':InputInfo(dataSet='/SingleMu/Run2011A-v1/RAW',label='mu2011A',run=Run2011A,events=100000)}
164 steps['RunElectron2011A']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2011A-v1/RAW',label='electron2011A',run=Run2011A,events=100000)}
165 steps['RunPhoton2011A']={'INPUT':InputInfo(dataSet='/Photon/Run2011A-v1/RAW',label='photon2011A',run=Run2011A,events=100000)}
166 steps['RunJet2011A']={'INPUT':InputInfo(dataSet='/Jet/Run2011A-v1/RAW',label='jet2011A',run=Run2011A,events=100000)}
167 
168 Run2011B=[177719]
169 Run2011BSk=[177719,177790,177096,175874]
170 steps['RunMinBias2011B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2011B-v1/RAW',label='mb2011B',run=Run2011B,events=100000,location='STD')}
171 steps['RunMu2011B']={'INPUT':InputInfo(dataSet='/SingleMu/Run2011B-v1/RAW',label='mu2011B',run=Run2011B,events=100000)}
172 steps['RunElectron2011B']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2011B-v1/RAW',label='electron2011B',run=Run2011B,events=100000)}
173 steps['RunPhoton2011B']={'INPUT':InputInfo(dataSet='/Photon/Run2011B-v1/RAW',label='photon2011B',run=Run2011B,events=100000)}
174 steps['RunJet2011B']={'INPUT':InputInfo(dataSet='/Jet/Run2011B-v1/RAW',label='jet2011B',run=Run2011B,events=100000)}
175 
176 steps['ValSkim2011B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2011B-ValSkim-19Nov2011-v1/RAW-RECO',label='run2011B',location='STD',run=Run2011BSk)}
177 steps['WMuSkim2011B']={'INPUT':InputInfo(dataSet='/SingleMu/Run2011B-WMu-19Nov2011-v1/RAW-RECO',ib_block='19110c74-1b66-11e1-a98b-003048f02c8a',label='wMu2011B',location='STD',run=Run2011BSk)}
178 steps['WElSkim2011B']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2011B-WElectron-19Nov2011-v1/RAW-RECO',ib_block='d75771a4-1b3f-11e1-aef4-003048f02c8a',label='wEl2011B',location='STD',run=Run2011BSk)}
179 steps['ZMuSkim2011B']={'INPUT':InputInfo(dataSet='/DoubleMu/Run2011B-ZMu-19Nov2011-v1/RAW-RECO',label='zMu2011B',location='STD',run=Run2011BSk)}
180 steps['ZElSkim2011B']={'INPUT':InputInfo(dataSet='/DoubleElectron/Run2011B-ZElectron-19Nov2011-v1/RAW-RECO',label='zEl2011B',run=Run2011BSk)}
181 steps['HighMet2011B']={'INPUT':InputInfo(dataSet='/Jet/Run2011B-HighMET-19Nov2011-v1/RAW-RECO',label='hMet2011B',run=Run2011BSk)}
182 
183 steps['RunHI2010']={'INPUT':InputInfo(dataSet='/HIAllPhysics/HIRun2010-v1/RAW',label='hi2010',run=[152698],events=10000,location='STD')}
184 steps['RunHI2011']={'INPUT':InputInfo(dataSet='/HIMinBiasUPC/HIRun2011-v1/RAW',label='hi2011',run=[181913],events=10000,location='STD')}
185 
186 
187 Run2012A=[191226]
188 Run2012ASk=Run2012A+[]
189 steps['RunMinBias2012A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2012A-v1/RAW',label='mb2012A',run=Run2012A, events=100000,location='STD')}
190 steps['RunTau2012A']={'INPUT':InputInfo(dataSet='/Tau/Run2012A-v1/RAW',label='tau2012A', run=Run2012A, events=100000,location='STD')}
191 steps['RunMET2012A']={'INPUT':InputInfo(dataSet='/MET/Run2012A-v1/RAW',label='met2012A', run=Run2012A, events=100000,location='STD')}
192 steps['RunMu2012A']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012A-v1/RAW',label='mu2012A', run=Run2012A, events=100000,location='STD')}
193 steps['RunElectron2012A']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012A-v1/RAW',label='electron2012A', run=Run2012A, events=100000,location='STD')}
194 steps['RunJet2012A']={'INPUT':InputInfo(dataSet='/Jet/Run2012A-v1/RAW',label='jet2012A', run=Run2012A, events=100000,location='STD')}
195 
196 steps['WElSkim2012A']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012A-WElectron-13Jul2012-v1/USER',label='wEl2012A',location='STD',run=Run2012ASk)}
197 steps['ZMuSkim2012A']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012A-ZMu-13Jul2012-v1/RAW-RECO',label='zMu2012A',location='STD',run=Run2012ASk)}
198 steps['ZElSkim2012A']={'INPUT':InputInfo(dataSet='/DoubleElectron/Run2012A-ZElectron-13Jul2012-v1/RAW-RECO',label='zEl2012A',run=Run2012ASk)}
199 steps['HighMet2012A']={'INPUT':InputInfo(dataSet='/HT/Run2012A-HighMET-13Jul2012-v1/RAW-RECO',label='hMet2012A',run=Run2012ASk)}
200 
201 
202 Run2012B=[194533]
203 Run2012Bsk=Run2012B+[194912,195016]
204 steps['RunMinBias2012B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2012B-v1/RAW',label='mb2012B',run=Run2012B, events=100000,location='STD')}
205 steps['RunMu2012B']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012B-v1/RAW',label='mu2012B',location='STD',run=Run2012B)}
206 steps['RunPhoton2012B']={'INPUT':InputInfo(dataSet='/SinglePhoton/Run2012B-v1/RAW',ib_block='28d7fcc8-a2a0-11e1-86c7-003048caaace',label='photon2012B',location='STD',run=Run2012B)}
207 steps['RunEl2012B']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012B-v1/RAW',label='electron2012B',location='STD',run=Run2012B)}
208 steps['RunJet2012B']={'INPUT':InputInfo(dataSet='/JetHT/Run2012B-v1/RAW',label='jet2012B',location='STD',run=Run2012B)}
209 steps['ZMuSkim2012B']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012B-ZMu-13Jul2012-v1/RAW-RECO',label='zMu2012B',location='CAF',run=Run2012Bsk)}
210 steps['WElSkim2012B']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012B-WElectron-13Jul2012-v1/USER',label='wEl2012B',location='STD',run=Run2012Bsk)}
211 steps['ZElSkim2012B']={'INPUT':InputInfo(dataSet='/DoubleElectron/Run2012B-ZElectron-13Jul2012-v1/RAW-RECO',ib_block='0c5092cc-d554-11e1-bb62-00221959e69e',label='zEl2012B',location='STD',run=Run2012Bsk)}
212 
213 Run2012C=[199812]
214 Run2012Csk=Run2012C+[203002]
215 steps['RunMinBias2012C']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2012C-v1/RAW',label='mb2012C',run=Run2012C, events=100000,location='STD')}
216 steps['RunMu2012C']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012C-v1/RAW',label='mu2012C',location='STD',run=Run2012C)}
217 steps['RunPhoton2012C']={'INPUT':InputInfo(dataSet='/SinglePhoton/Run2012C-v1/RAW',label='photon2012C',location='STD',run=Run2012C)}
218 steps['RunEl2012C']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012C-v1/RAW',label='electron2012C',location='STD',run=Run2012C)}
219 steps['RunJet2012C']={'INPUT':InputInfo(dataSet='/JetHT/Run2012C-v1/RAW',label='jet2012C',location='STD',run=Run2012C)}
220 steps['ZMuSkim2012C']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012C-ZMu-PromptSkim-v3/RAW-RECO',label='zMu2012C',location='CAF',run=Run2012Csk)}
221 steps['WElSkim2012C']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012C-WElectron-PromptSkim-v3/USER',label='wEl2012C',location='STD',run=Run2012Csk)}
222 steps['ZElSkim2012C']={'INPUT':InputInfo(dataSet='/DoubleElectron/Run2012C-ZElectron-PromptSkim-v3/RAW-RECO',label='zEl2012C',location='STD',run=Run2012Csk)}
223 
224 # needed but can't be tested because of DBS => das hanging forever
225 #RunHighPU2012C=[198588]
226 #steps['RunZBias2012C']={'INPUT':InputInfo(dataSet='/ZeroBias/Run2012C-v1/RAW',label='zb2012C',location='STD',run=RunHighPU2012C,events=100000)}
227 
228 
229 Run2012D=[208307]
230 Run2012Dsk=Run2012D+[207454]
231 steps['RunMinBias2012D']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2012D-v1/RAW',label='mb2012D',run=Run2012D, events=100000,location='STD')}
232 steps['RunMu2012D']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012D-v1/RAW',label='mu2012D',location='STD',run=Run2012D)}
233 steps['RunPhoton2012D']={'INPUT':InputInfo(dataSet='/SinglePhoton/Run2012D-v1/RAW',label='photon2012D',location='STD',run=Run2012D)}
234 steps['RunEl2012D']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012D-v1/RAW',label='electron2012D',location='STD',run=Run2012D)}
235 steps['RunJet2012D']={'INPUT':InputInfo(dataSet='/JetHT/Run2012D-v1/RAW',label='jet2012D',location='STD',run=Run2012D)}
236 steps['ZMuSkim2012D']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012D-ZMu-PromptSkim-v1/RAW-RECO',label='zMu2012D',location='STD',run=Run2012Dsk)}
237 steps['WElSkim2012D']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012D-WElectron-PromptSkim-v1/USER',label='wEl2012D',location='STD',run=Run2012Dsk)}
238 steps['ZElSkim2012D']={'INPUT':InputInfo(dataSet='/DoubleElectron/Run2012D-ZElectron-PromptSkim-v1/RAW-RECO',label='zEl2012D',location='STD',run=Run2012Dsk)}
239 
240 #### Standard release validation samples ####
241 
242 stCond={'--conditions':'auto:run1_mc'}
243 def Kby(N,s):
244  return {'--relval':'%s000,%s'%(N,s)}
245 def Mby(N,s):
246  return {'--relval':'%s000000,%s'%(N,s)}
247 
248 def gen(fragment,howMuch):
249  global step1Defaults
250  return merge([{'cfg':fragment},howMuch,step1Defaults])
251 
252 def gen2015(fragment,howMuch):
253  global step1Up2015Defaults
254  return merge([{'cfg':fragment},howMuch,step1Up2015Defaults])
255 
256 ### Production test: 13 TeV equivalents
257 steps['ProdMinBias_13']=gen2015('MinBias_13TeV_cfi',Kby(9,100))
258 steps['ProdTTbar_13']=gen2015('TTbar_Tauola_13TeV_cfi',Kby(9,100))
259 steps['ProdZEE_13']=gen2015('ZEE_13TeV_cfi',Kby(9,100))
260 steps['ProdQCD_Pt_3000_3500_13']=gen2015('QCD_Pt_3000_3500_13TeV_cfi',Kby(9,100))
261 # GF include branched wf comparing relVal and prod
262 
263 steps['MinBias']=gen('MinBias_8TeV_cfi',Kby(9,300))
264 steps['QCD_Pt_3000_3500']=gen('QCD_Pt_3000_3500_8TeV_cfi',Kby(9,25))
265 steps['QCD_Pt_600_800']=gen('QCD_Pt_600_800_8TeV_cfi',Kby(9,50))
266 steps['QCD_Pt_80_120']=gen('QCD_Pt_80_120_8TeV_cfi',Kby(9,100))
267 steps['MinBias_13']=gen2015('MinBias_13TeV_cfi',Kby(100,300)) # set HS to provide adequate pool for PU
268 steps['QCD_Pt_3000_3500_13']=gen2015('QCD_Pt_3000_3500_13TeV_cfi',Kby(9,25))
269 steps['QCD_Pt_600_800_13']=gen2015('QCD_Pt_600_800_13TeV_cfi',Kby(9,50))
270 steps['QCD_Pt_80_120_13']=gen2015('QCD_Pt_80_120_13TeV_cfi',Kby(9,100))
271 
272 steps['QCD_Pt_30_80_BCtoE_8TeV']=gen('QCD_Pt_30_80_BCtoE_8TeV',Kby(9000,100))
273 steps['QCD_Pt_80_170_BCtoE_8TeV']=gen('QCD_Pt_80_170_BCtoE_8TeV',Kby(9000,100))
274 steps['SingleElectronPt10']=gen('SingleElectronPt10_cfi',Kby(9,3000))
275 steps['SingleElectronPt35']=gen('SingleElectronPt35_cfi',Kby(9,500))
276 steps['SingleElectronPt1000']=gen('SingleElectronPt1000_cfi',Kby(9,50))
277 steps['SingleElectronFlatPt1To100']=gen('SingleElectronFlatPt1To100_cfi',Mby(2,100))
278 steps['SingleGammaPt10']=gen('SingleGammaPt10_cfi',Kby(9,3000))
279 steps['SingleGammaPt35']=gen('SingleGammaPt35_cfi',Kby(9,500))
280 steps['SingleMuPt1']=gen('SingleMuPt1_cfi',Kby(25,1000))
281 steps['SingleMuPt10']=gen('SingleMuPt10_cfi',Kby(25,500))
282 steps['SingleMuPt100']=gen('SingleMuPt100_cfi',Kby(9,500))
283 steps['SingleMuPt1000']=gen('SingleMuPt1000_cfi',Kby(9,500))
284 steps['SingleElectronPt10_UP15']=gen2015('SingleElectronPt10_cfi',Kby(9,3000))
285 steps['SingleElectronPt35_UP15']=gen2015('SingleElectronPt35_cfi',Kby(9,500))
286 steps['SingleElectronPt1000_UP15']=gen2015('SingleElectronPt1000_cfi',Kby(9,50))
287 steps['SingleElectronFlatPt1To100_UP15']=gen2015('SingleElectronFlatPt1To100_cfi',Mby(2,100))
288 steps['SingleGammaPt10_UP15']=gen2015('SingleGammaPt10_cfi',Kby(9,3000))
289 steps['SingleGammaPt35_UP15']=gen2015('SingleGammaPt35_cfi',Kby(9,500))
290 steps['SingleMuPt1_UP15']=gen2015('SingleMuPt1_cfi',Kby(25,1000))
291 steps['SingleMuPt10_UP15']=gen2015('SingleMuPt10_cfi',Kby(25,500))
292 steps['SingleMuPt100_UP15']=gen2015('SingleMuPt100_cfi',Kby(9,500))
293 steps['SingleMuPt1000_UP15']=gen2015('SingleMuPt1000_cfi',Kby(9,500))
294 steps['TTbar']=gen('TTbar_Tauola_8TeV_cfi',Kby(9,100))
295 steps['TTbarLepton']=gen('TTbarLepton_Tauola_8TeV_cfi',Kby(9,100))
296 steps['ZEE']=gen('ZEE_8TeV_cfi',Kby(9,100))
297 steps['Wjet_Pt_80_120']=gen('Wjet_Pt_80_120_8TeV_cfi',Kby(9,100))
298 steps['Wjet_Pt_3000_3500']=gen('Wjet_Pt_3000_3500_8TeV_cfi',Kby(9,50))
299 steps['LM1_sfts']=gen('LM1_sfts_8TeV_cfi',Kby(9,100))
300 steps['QCD_FlatPt_15_3000']=gen('QCDForPF_8TeV_cfi',Kby(5,100))
301 steps['QCD_FlatPt_15_3000HS']=gen('QCDForPF_8TeV_cfi',Kby(50,100))
302 steps['TTbar_13']=gen2015('TTbar_Tauola_13TeV_cfi',Kby(9,100))
303 steps['TTbarLepton_13']=gen2015('TTbarLepton_Tauola_13TeV_cfi',Kby(9,100))
304 steps['ZEE_13']=gen2015('ZEE_13TeV_cfi',Kby(9,100))
305 steps['Wjet_Pt_80_120_13']=gen2015('Wjet_Pt_80_120_13TeV_cfi',Kby(9,100))
306 steps['Wjet_Pt_3000_3500_13']=gen2015('Wjet_Pt_3000_3500_13TeV_cfi',Kby(9,50))
307 steps['LM1_sfts_13']=gen2015('LM1_sfts_13TeV_cfi',Kby(9,100))
308 steps['QCD_FlatPt_15_3000_13']=gen2015('QCDForPF_13TeV_cfi',Kby(9,100))
309 steps['QCD_FlatPt_15_3000HS_13']=gen2015('QCDForPF_13TeV_cfi',Kby(50,100))
310 
311 steps['ZpMM_2250_8TeV_Tauola']=gen('ZpMM_2250_8TeV_Tauola_cfi',Kby(9,100))
312 steps['ZpEE_2250_8TeV_Tauola']=gen('ZpEE_2250_8TeV_Tauola_cfi',Kby(9,100))
313 steps['ZpTT_1500_8TeV_Tauola']=gen('ZpTT_1500_8TeV_Tauola_cfi',Kby(9,100))
314 steps['ZpMM_2250_13TeV_Tauola']=gen2015('ZpMM_2250_13TeV_Tauola_cfi',Kby(9,100))
315 steps['ZpEE_2250_13TeV_Tauola']=gen2015('ZpEE_2250_13TeV_Tauola_cfi',Kby(9,100))
316 steps['ZpTT_1500_13TeV_Tauola']=gen2015('ZpTT_1500_13TeV_Tauola_cfi',Kby(9,100))
317 
318 def identitySim(wf):
319  return merge([{'--restoreRND':'SIM','--process':'SIM2'},wf])
320 
321 steps['SingleMuPt10_ID']=identitySim(steps['SingleMuPt10'])
322 steps['TTbar_ID']=identitySim(steps['TTbar'])
323 
324 baseDataSetRelease=[
325  'CMSSW_7_1_0_pre7-PRE_STA71_V3-v1', # run1 samples; keep GEN-SIM fixed to 710_pre7, for samples not routinely produced
326  'CMSSW_7_1_0_pre6-PRE_SHI71_V3-v1', # Run1 HI GEN-SIM (only MB = wf 140)
327  'CMSSW_6_2_0_pre8-PRE_ST62_V8_FastSim-v1', # for fastsim id test
328  'CMSSW_6_2_0_pre8-PRE_SH62_V15-v2', # Run1 HI GEN-SIM (only HydjetQ_B3_2760)
329  'CMSSW_6_1_0_pre6-STARTHI61_V6-v1', # Run1 HI GEN-SIM (only HydjetQ_B0_2760)
330  'CMSSW_6_2_0_pre8-PRE_ST62_V8-v3', # pPb
331  'CMSSW_7_1_0_pre5-POSTLS171_V1-v1', # 13 TeV samples with postLs1 geometry and updated mag field
332  'CMSSW_6_2_0_pre8-PRE_SH62_V15-v1', # Run1 HI GEN-SIM (only HydjetQ_B8_2760)
333  'CMSSW_7_1_0_pre5-START71_V1-v1', # 8 TeV , for the one sample which is part of the routine relval production (MinBias)
334  'CMSSW_7_1_0_pre5-START71_V1-v2', # 8 TeV , for the one sample which is part of the routine relval production (RelValZmumuJets_Pt_20_300, because of -v2)
335  # this an previous should be unified, when -v2 will be gone
336  'CMSSW_7_1_0_pre8-PRE_LS171_V9-v1', # 13 TeV samples with GEN-SIM from 710pre8;
337  'CMSSW_7_1_0_pre8-PRE_LS171_V9_finesplit-v2', #SingleMu GEN-SIM from 710pre8
338  ]
339 
340 # note: INPUT commands to be added once GEN-SIM w/ 13TeV+PostLS1Geo will be available
341 steps['MinBiasINPUT']={'INPUT':InputInfo(dataSet='/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')} #was [0]
342 steps['QCD_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
343 steps['QCD_Pt_600_800INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_600_800/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
344 steps['QCD_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
345 steps['SingleElectronPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
346 steps['SingleElectronPt1000INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt1000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
347 steps['SingleElectronPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt35/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
348 steps['SingleGammaPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
349 steps['SingleGammaPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt35/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
350 steps['SingleMuPt1INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt1/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
351 steps['SingleMuPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
352 steps['SingleMuPt10IdINPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt10/%s/GEN-SIM-DIGI-RAW-HLTDEBUG'%(baseDataSetRelease[0],),location='STD',split=1)}
353 steps['SingleMuPt10FSIdINPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt10/%s/GEN-SIM-DIGI-RECO'%(baseDataSetRelease[2],),location='STD',split=1)}
354 steps['SingleMuPt100INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt100/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
355 steps['SingleMuPt1000INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt1000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
356 steps['TTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
357 steps['TTbarIdINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/%s/GEN-SIM-DIGI-RAW-HLTDEBUG'%(baseDataSetRelease[0],),location='STD',split=1)}
358 steps['TTbarFSIdINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/%s/GEN-SIM-DIGI-RECO'%(baseDataSetRelease[2],),location='STD',split=1)}
359 steps['TTbarLeptonINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbarLepton/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
360 steps['OldTTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValProdTTbar/CMSSW_5_0_0_pre6-START50_V5-v1/GEN-SIM-RECO',location='STD')}
361 steps['OldGenSimINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/CMSSW_4_4_2-START44_V7-v1/GEN-SIM-DIGI-RAW-HLTDEBUG',location='STD')}
362 steps['Wjet_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
363 steps['Wjet_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
364 steps['LM1_sftsINPUT']={'INPUT':InputInfo(dataSet='/RelValLM1_sfts/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
365 steps['QCD_FlatPt_15_3000INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_FlatPt_15_3000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
366 
367 steps['QCD_FlatPt_15_3000HSINPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_FlatPt_15_3000HS/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
368 # the following dataset used to be in input but is currently not valid dbs datasets
369 # candidate for removal..
370 # steps['QCD_FlatPt_15_3000HS__DIGIPU1INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_FlatPt_15_3000/CMSSW_5_2_2-PU_START52_V4_special_120326-v1/GEN-SIM-DIGI-RAW-HLTDEBUG',location='STD')}
371 steps['TTbar__DIGIPU1INPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/CMSSW_5_2_2-PU_START52_V4_special_120326-v1/GEN-SIM-DIGI-RAW-HLTDEBUG',location='STD')}
372 
373 # 13 TeV recycle GEN-SIM input
374 steps['MinBias_13INPUT']={'INPUT':InputInfo(dataSet='/RelValMinBias_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
375 steps['QCD_Pt_3000_3500_13INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_3000_3500_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
376 steps['QCD_Pt_600_800_13INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_600_800_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
377 steps['QCD_Pt_80_120_13INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_80_120_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
378 steps['TTbar_13INPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
379 steps['TTbarLepton_13INPUT']={'INPUT':InputInfo(dataSet='/RelValTTbarLepton_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
380 steps['ZEE_13INPUT']={'INPUT':InputInfo(dataSet='/RelValZEE_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
381 steps['Wjet_Pt_80_120_13INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_80_120_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
382 steps['Wjet_Pt_3000_3500_13INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_3000_3500_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
383 steps['LM1_sfts_13INPUT']={'INPUT':InputInfo(dataSet='/RelValLM1_sfts_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
384 steps['QCD_FlatPt_15_3000_13INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_FlatPt_15_3000_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
385 steps['QCD_FlatPt_15_3000HS_13INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_FlatPt_15_3000HS_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
386 steps['ZpMM_2250_13TeV_TauolaINPUT']={'INPUT':InputInfo(dataSet='/RelValZpMM_2250_13TeV_Tauola/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
387 steps['ZpEE_2250_13TeV_TauolaINPUT']={'INPUT':InputInfo(dataSet='/RelValZpEE_2250_13TeV_Tauola/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
388 steps['ZpTT_1500_13TeV_TauolaINPUT']={'INPUT':InputInfo(dataSet='/RelValZpTT_1500_13TeV_Tauola/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
389 steps['MinBiasHS_13INPUT']={'INPUT':InputInfo(dataSet='/RelValMinBiasHS_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
390 steps['Higgs200ChargedTaus_13INPUT']={'INPUT':InputInfo(dataSet='/RelValHiggs200ChargedTaus_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
391 steps['JpsiMM_13INPUT']={'INPUT':InputInfo(dataSet='/RelValJpsiMM_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
392 steps['WE_13INPUT']={'INPUT':InputInfo(dataSet='/RelValWE_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
393 steps['WM_13INPUT']={'INPUT':InputInfo(dataSet='/RelValWM_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
394 steps['WpM_13INPUT']={'INPUT':InputInfo(dataSet='/RelValWpM_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
395 steps['ZMM_13INPUT']={'INPUT':InputInfo(dataSet='/RelValZMM_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
396 steps['ZpMM_13INPUT']={'INPUT':InputInfo(dataSet='/RelValZpMM_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
397 steps['ZTT_13INPUT']={'INPUT':InputInfo(dataSet='/RelValZTT_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
398 steps['H130GGgluonfusion_13INPUT']={'INPUT':InputInfo(dataSet='/RelValH130GGgluonfusion_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
399 steps['PhotonJets_Pt_10_13INPUT']={'INPUT':InputInfo(dataSet='/RelValPhotonJets_Pt_10_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
400 steps['QQH1352T_Tauola_13INPUT']={'INPUT':InputInfo(dataSet='/RelValQQH1352T_Tauola_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
401 steps['ZmumuJets_Pt_20_300_13INPUT']={'INPUT':InputInfo(dataSet='/RelValZmumuJets_Pt_20_300_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
402 steps['ADDMonoJet_d3MD3_13INPUT']={'INPUT':InputInfo(dataSet='/RelValADDMonoJet_d3MD3_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
403 steps['RSKKGluon_m3000GeV_13INPUT']={'INPUT':InputInfo(dataSet='/RelValRSKKGluon_m3000GeV_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
404 steps['Pythia6_BuJpsiK_TuneZ2star_13INPUT']={'INPUT':InputInfo(dataSet='/RelValPythia6_BuJpsiK_TuneZ2star_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
405 # new wf, GEN-SIM being made in 71x_pre6: GF uncomment when they'll be available
406 #steps['Cosmics_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValCosmics_UP15/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
407 steps['BeamHalo_13INPUT']={'INPUT':InputInfo(dataSet='/RelValBeamHalo_13/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
408 # particle guns with postLS1 geometry recycle GEN-SIM input
409 steps['SingleElectronPt10_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt10_UP15/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
410 steps['SingleElectronPt35_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt35_UP15/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
411 steps['SingleElectronPt1000_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt1000_UP15/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
412 steps['SingleElectronFlatPt1To100_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronFlatPt1To100_UP15/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
413 steps['SingleGammaPt10_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt10_UP15/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
414 steps['SingleGammaPt35_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt35_UP15/%s/GEN-SIM'%(baseDataSetRelease[10],),location='STD')}
415 steps['SingleMuPt1_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt1_UP15/%s/GEN-SIM'%(baseDataSetRelease[11],),location='STD')}
416 steps['SingleMuPt10_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt10_UP15/%s/GEN-SIM'%(baseDataSetRelease[11],),location='STD')}
417 steps['SingleMuPt100_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt100_UP15/%s/GEN-SIM'%(baseDataSetRelease[11],),location='STD')}
418 steps['SingleMuPt1000_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt1000_UP15/%s/GEN-SIM'%(baseDataSetRelease[11],),location='STD')}
419 
420 #input for fast sim workflows to be added - TODO
421 
422 
423 ## high stat step1
424 ecalHcal={
425  '-s':'GEN,SIM,DIGI,DIGI2RAW,RAW2DIGI,L1Reco,RECO,EI',
426  '--datatier':'GEN-SIM-DIGI-RAW-RECO',
427  #'--geometry':'ECALHCAL',
428  '--eventcontent':'FEVTDEBUG',
429  '--customise':'Validation/Configuration/ECALHCAL.customise,SimGeneral/MixingModule/fullMixCustomize_cff.setCrossingFrameOn',
430  '--beamspot':'NoSmear'}
431 
432 steps['SingleElectronE120EHCAL']=merge([{'cfg':'SingleElectronE120EHCAL_cfi'},ecalHcal,Kby(25,250),step1Defaults])
433 steps['SinglePiE50HCAL']=merge([{'cfg':'SinglePiE50HCAL_cfi'},ecalHcal,Kby(25,250),step1Defaults])
434 
435 steps['MinBiasHS']=gen('MinBias_8TeV_cfi',Kby(25,300))
436 steps['InclusiveppMuX']=gen('InclusiveppMuX_8TeV_cfi',Mby(11,45000))
437 steps['SingleElectronFlatPt5To100']=gen('SingleElectronFlatPt5To100_cfi',Kby(25,250))
438 steps['SinglePiPt1']=gen('SinglePiPt1_cfi',Kby(25,250))
439 steps['SingleMuPt1HS']=gen('SingleMuPt1_cfi',Kby(25,1000))
440 steps['ZPrime5000Dijet']=gen('ZPrime5000JJ_8TeV_cfi',Kby(25,100))
441 steps['SinglePi0E10']=gen('SinglePi0E10_cfi',Kby(25,100))
442 steps['SinglePiPt10']=gen('SinglePiPt10_cfi',Kby(25,250))
443 steps['SingleGammaFlatPt10To100']=gen('SingleGammaFlatPt10To100_cfi',Kby(25,250))
444 steps['SingleTauPt50Pythia']=gen('SingleTaupt_50_cfi',Kby(25,100))
445 steps['SinglePiPt100']=gen('SinglePiPt100_cfi',Kby(25,250))
446 
447 
448 def genS(fragment,howMuch):
449  global step1Defaults,stCond
450  return merge([{'cfg':fragment},stCond,howMuch,step1Defaults])
451 
452 steps['Higgs200ChargedTaus']=genS('H200ChargedTaus_Tauola_8TeV_cfi',Kby(9,100))
453 steps['JpsiMM']=genS('JpsiMM_8TeV_cfi',Kby(66,1000))
454 steps['WE']=genS('WE_8TeV_cfi',Kby(9,100))
455 steps['WM']=genS('WM_8TeV_cfi',Kby(9,200))
456 steps['WpM']=genS('WpM_8TeV_cfi',Kby(9,200))
457 steps['ZMM']=genS('ZMM_8TeV_cfi',Kby(18,300))
458 steps['ZpMM']=genS('ZpMM_8TeV_cfi',Kby(9,200))
459 steps['Higgs200ChargedTaus_13']=gen2015('H200ChargedTaus_Tauola_13TeV_cfi',Kby(9,100))
460 steps['JpsiMM_13']=gen2015('JpsiMM_13TeV_cfi',Kby(66,1000))
461 steps['WE_13']=gen2015('WE_13TeV_cfi',Kby(9,100))
462 steps['WM_13']=gen2015('WM_13TeV_cfi',Kby(9,200))
463 steps['WpM_13']=gen2015('WpM_13TeV_cfi',Kby(9,200))
464 steps['ZMM_13']=gen2015('ZMM_13TeV_cfi',Kby(18,300))
465 steps['ZpMM_13']=gen2015('ZpMM_13TeV_cfi',Kby(9,200))
466 
467 steps['ZTT']=genS('ZTT_Tauola_All_hadronic_8TeV_cfi',Kby(9,150))
468 steps['H130GGgluonfusion']=genS('H130GGgluonfusion_8TeV_cfi',Kby(9,100))
469 steps['PhotonJets_Pt_10']=genS('PhotonJet_Pt_10_8TeV_cfi',Kby(9,150))
470 steps['QQH1352T_Tauola']=genS('QQH1352T_Tauola_8TeV_cfi',Kby(9,100))
471 steps['ZTT_13']=gen2015('ZTT_Tauola_All_hadronic_13TeV_cfi',Kby(9,150))
472 steps['H130GGgluonfusion_13']=gen2015('H130GGgluonfusion_13TeV_cfi',Kby(9,100))
473 steps['PhotonJets_Pt_10_13']=gen2015('PhotonJet_Pt_10_13TeV_cfi',Kby(9,150))
474 steps['QQH1352T_Tauola_13']=gen2015('QQH1352T_Tauola_13TeV_cfi',Kby(9,100))
475 steps['ZmumuJets_Pt_20_300']=gen('ZmumuJets_Pt_20_300_GEN_8TeV_cfg',Kby(25,100))
476 steps['ZmumuJets_Pt_20_300_13']=gen2015('ZmumuJets_Pt_20_300_GEN_13TeV_cfg',Kby(25,100))
477 steps['ADDMonoJet_d3MD3']=genS('ADDMonoJet_8TeV_d3MD3_cfi',Kby(9,100))
478 steps['ADDMonoJet_d3MD3_13']=gen2015('ADDMonoJet_13TeV_d3MD3_cfi',Kby(9,100))
479 steps['RSKKGluon_m3000GeV_13']=gen2015('RSKKGluon_m3000GeV_13TeV_cff',Kby(9,100)) # re-named to remove RelvalRelval in the dataset name
480 steps['Pythia6_BuJpsiK_TuneZ2star_13']=gen2015('Pythia6_BuJpsiK_TuneZ2star_13TeV_cfi',Kby(36000,400000)) # check recycling a the next GEN-SIM refresh
481 
482 steps['MinBias2INPUT']={'INPUT':InputInfo(dataSet='/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
483 steps['Higgs200ChargedTausINPUT']={'INPUT':InputInfo(dataSet='/RelValHiggs200ChargedTaus/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
484 steps['QCD_Pt_3000_3500_2INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
485 steps['QCD_Pt_80_120_2INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
486 steps['JpsiMMINPUT']={'INPUT':InputInfo(dataSet='/RelValJpsiMM/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
487 steps['TTbar2INPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
488 steps['WEINPUT']={'INPUT':InputInfo(dataSet='/RelValWE/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
489 steps['WMINPUT']={'INPUT':InputInfo(dataSet='/RelValWM/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
490 steps['ZEEINPUT']={'INPUT':InputInfo(dataSet='/RelValZEE/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
491 steps['ZMMINPUT']={'INPUT':InputInfo(dataSet='/RelValZMM/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
492 steps['ZTTINPUT']={'INPUT':InputInfo(dataSet='/RelValZTT/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
493 steps['H130GGgluonfusionINPUT']={'INPUT':InputInfo(dataSet='/RelValH130GGgluonfusion/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
494 steps['PhotonJets_Pt_10INPUT']={'INPUT':InputInfo(dataSet='/RelValPhotonJets_Pt_10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
495 steps['QQH1352T_TauolaINPUT']={'INPUT':InputInfo(dataSet='/RelValQQH1352T_Tauola/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
496 steps['ADDMonoJet_d3MD3INPUT']={'INPUT':InputInfo(dataSet='/RelValADDMonoJet_d3MD3/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
497 steps['WpMINPUT']={'INPUT':InputInfo(dataSet='/RelValWpM/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
498 steps['ZpMMINPUT']={'INPUT':InputInfo(dataSet='/RelValZpMM/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
499 steps['ZpMM_2250_8TeV_TauolaINPUT']={'INPUT':InputInfo(dataSet='/RelValZpMM_2250_8TeV_Tauola/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
500 steps['ZpEE_2250_8TeV_TauolaINPUT']={'INPUT':InputInfo(dataSet='/RelValZpEE_2250_8TeV_Tauola/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
501 steps['ZpTT_1500_8TeV_TauolaINPUT']={'INPUT':InputInfo(dataSet='/RelValZpTT_1500_8TeV_Tauola/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
502 
503 
504 steps['ZmumuJets_Pt_20_300INPUT']={'INPUT':InputInfo(dataSet='/RelValZmumuJets_Pt_20_300/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
505 
506 
507 steps['Cosmics']=merge([{'cfg':'UndergroundCosmicMu_cfi.py','--scenario':'cosmics'},Kby(666,100000),step1Defaults])
508 steps['Cosmics_UP15']=merge([{'cfg':'UndergroundCosmicMu_cfi.py','--scenario':'cosmics'},Kby(666,100000),step1Up2015Defaults])
509 steps['BeamHalo']=merge([{'cfg':'BeamHalo_cfi.py','--scenario':'cosmics'},Kby(9,100),step1Defaults])
510 steps['BeamHalo_13']=merge([{'cfg':'BeamHalo_13TeV_cfi.py','--scenario':'cosmics'},Kby(9,100),step1Up2015Defaults])
511 
512 # GF re-introduce INPUT command once GEN-SIM will be available
513 # steps['CosmicsINPUT']={'INPUT':InputInfo(dataSet='/RelValCosmics/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
514 steps['BeamHaloINPUT']={'INPUT':InputInfo(dataSet='/RelValBeamHalo/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
515 
516 steps['QCD_Pt_50_80']=genS('QCD_Pt_50_80_8TeV_cfi',Kby(25,100))
517 steps['QCD_Pt_15_20']=genS('QCD_Pt_15_20_8TeV_cfi',Kby(25,100))
518 steps['ZTTHS']=merge([Kby(25,100),steps['ZTT']])
519 steps['QQH120Inv']=genS('QQH120Inv_8TeV_cfi',Kby(25,100))
520 steps['TTbar2HS']=merge([Kby(25,100),steps['TTbar']])
521 steps['JpsiMM_Pt_20_inf']=genS('JpsiMM_Pt_20_inf_8TeV_cfi',Kby(70,280))
522 steps['QCD_Pt_120_170']=genS('QCD_Pt_120_170_8TeV_cfi',Kby(25,100))
523 steps['H165WW2L']=genS('H165WW2L_Tauola_8TeV_cfi',Kby(25,100))
524 steps['UpsMM']=genS('UpsMM_8TeV_cfi',Kby(56250,225))
525 steps['RSGrav']=genS('RS750_quarks_and_leptons_8TeV_cff',Kby(25,100))
526 steps['QCD_Pt_80_120_2HS']=merge([Kby(25,100),steps['QCD_Pt_80_120']])
527 steps['bJpsiX']=genS('bJpsiX_8TeV_cfi',Mby(325,1300000))
528 steps['QCD_Pt_30_50']=genS('QCD_Pt_30_50_8TeV_cfi',Kby(25,100))
529 steps['H200ZZ4L']=genS('H200ZZ4L_Tauola_8TeV_cfi',Kby(25,100))
530 steps['LM9p']=genS('LM9p_8TeV_cff',Kby(25,100))
531 steps['QCD_Pt_20_30']=genS('QCD_Pt_20_30_8TeV_cfi',Kby(25,100))
532 steps['QCD_Pt_170_230']=genS('QCD_Pt_170_230_8TeV_cfi',Kby(25,100))
533 
534 
535 ## upgrade dedicated wf
536 ## extendedPhase1
537 step1UpepiDefaults = {'-s' : 'GEN,SIM',
538  '-n' : 10,
539  '--conditions' : 'DESIGN61_V10::All', #should be updated with autocond
540  '--beamspot' : 'Gauss',
541  '--datatier' : 'GEN-SIM',
542  '--eventcontent': 'FEVTDEBUG',
543  '--geometry' : 'ExtendedPhaseIPixel', #check geo
544  '--customise' : 'SLHCUpgradeSimulations/Configuration/phase1TkCustoms.customise'
545  }
546 def genepi(fragment,howMuch):
547  global step1UpepiDefaults
548  return merge([{'cfg':fragment},howMuch,step1UpepiDefaults])
549 
550 steps['FourMuPt1_200_UPGPhase1']=genepi('FourMuPt_1_200_cfi',Kby(10,100))
551 steps['SingleElectronPt10_UPGPhase1']=genepi('SingleElectronPt10_cfi',Kby(9,3000))
552 steps['SingleElectronPt35_UPGPhase1']=genepi('SingleElectronPt35_cfi',Kby(9,500))
553 steps['SingleElectronPt1000_UPGPhase1']=genepi('SingleElectronPt1000_cfi',Kby(9,50))
554 steps['SingleGammaPt10_UPGPhase1']=genepi('SingleGammaPt10_cfi',Kby(9,3000))
555 steps['SingleGammaPt35_UPGPhase1']=genepi('SingleGammaPt35_cfi',Kby(9,500))
556 steps['SingleMuPt1_UPGPhase1']=genepi('SingleMuPt1_cfi',Kby(25,1000))
557 steps['SingleMuPt10_UPGPhase1']=genepi('SingleMuPt10_cfi',Kby(25,500))
558 steps['SingleMuPt100_UPGPhase1']=genepi('SingleMuPt100_cfi',Kby(9,500))
559 steps['SingleMuPt1000_UPGPhase1']=genepi('SingleMuPt1000_cfi',Kby(9,500))
560 
561 steps['TTbarLepton_UPGPhase1_8']=genepi('TTbarLepton_Tauola_8TeV_cfi',Kby(9,100))
562 steps['Wjet_Pt_80_120_UPGPhase1_8']=genepi('Wjet_Pt_80_120_8TeV_cfi',Kby(9,100))
563 steps['Wjet_Pt_3000_3500_UPGPhase1_8']=genepi('Wjet_Pt_3000_3500_8TeV_cfi',Kby(9,50))
564 steps['LM1_sfts_UPGPhase1_8']=genepi('LM1_sfts_8TeV_cfi',Kby(9,100))
565 
566 steps['QCD_Pt_3000_3500_UPGPhase1_8']=genepi('QCD_Pt_3000_3500_8TeV_cfi',Kby(9,25))
567 steps['QCD_Pt_600_800_UPGPhase1_8']=genepi('QCD_Pt_600_800_8TeV_cfi',Kby(9,50))
568 steps['QCD_Pt_80_120_UPGPhase1_8']=genepi('QCD_Pt_80_120_8TeV_cfi',Kby(9,100))
569 
570 steps['Higgs200ChargedTaus_UPGPhase1_8']=genepi('H200ChargedTaus_Tauola_8TeV_cfi',Kby(9,100))
571 steps['JpsiMM_UPGPhase1_8']=genepi('JpsiMM_8TeV_cfi',Kby(66,1000))
572 steps['TTbar_UPGPhase1_8']=genepi('TTbar_Tauola_8TeV_cfi',Kby(9,100))
573 steps['WE_UPGPhase1_8']=genepi('WE_8TeV_cfi',Kby(9,100))
574 steps['ZEE_UPGPhase1_8']=genepi('ZEE_8TeV_cfi',Kby(9,100))
575 steps['ZTT_UPGPhase1_8']=genepi('ZTT_Tauola_All_hadronic_8TeV_cfi',Kby(9,150))
576 steps['H130GGgluonfusion_UPGPhase1_8']=genepi('H130GGgluonfusion_8TeV_cfi',Kby(9,100))
577 steps['PhotonJets_Pt_10_UPGPhase1_8']=genepi('PhotonJet_Pt_10_8TeV_cfi',Kby(9,150))
578 steps['QQH1352T_Tauola_UPGPhase1_8']=genepi('QQH1352T_Tauola_8TeV_cfi',Kby(9,100))
579 
580 steps['MinBias_TuneZ2star_UPGPhase1_8']=genepi('MinBias_TuneZ2star_8TeV_pythia6_cff',Kby(9,300))
581 steps['WM_UPGPhase1_8']=genepi('WM_8TeV_cfi',Kby(9,200))
582 steps['ZMM_UPGPhase1_8']=genepi('ZMM_8TeV_cfi',Kby(18,300))
583 
584 steps['ADDMonoJet_d3MD3_UPGPhase1_8']=genepi('ADDMonoJet_8TeV_d3MD3_cfi',Kby(9,100))
585 steps['ZpMM_UPGPhase1_8']=genepi('ZpMM_8TeV_cfi',Kby(9,200))
586 steps['WpM_UPGPhase1_8']=genepi('WpM_8TeV_cfi',Kby(9,200))
587 
588 
589 
590 
591 
592 #14TeV
593 #steps['TTbarLepton_UPGPhase1_14']=genepi('TTbarLepton_Tauola_14TeV_cfi',Kby(9,100))
594 steps['Wjet_Pt_80_120_UPGPhase1_14']=genepi('Wjet_Pt_80_120_14TeV_cfi',Kby(9,100))
595 steps['Wjet_Pt_3000_3500_UPGPhase1_14']=genepi('Wjet_Pt_3000_3500_14TeV_cfi',Kby(9,50))
596 steps['LM1_sfts_UPGPhase1_14']=genepi('LM1_sfts_14TeV_cfi',Kby(9,100))
597 
598 steps['QCD_Pt_3000_3500_UPGPhase1_14']=genepi('QCD_Pt_3000_3500_14TeV_cfi',Kby(9,25))
599 #steps['QCD_Pt_600_800_UPGPhase1_14']=genepi('QCD_Pt_600_800_14TeV_cfi',Kby(9,50))
600 steps['QCD_Pt_80_120_UPGPhase1_14']=genepi('QCD_Pt_80_120_14TeV_cfi',Kby(9,100))
601 
602 steps['Higgs200ChargedTaus_UPGPhase1_14']=genepi('H200ChargedTaus_Tauola_14TeV_cfi',Kby(9,100))
603 steps['JpsiMM_UPGPhase1_14']=genepi('JpsiMM_14TeV_cfi',Kby(66,1000))
604 steps['TTbar_UPGPhase1_14']=genepi('TTbar_Tauola_14TeV_cfi',Kby(9,100))
605 steps['WE_UPGPhase1_14']=genepi('WE_14TeV_cfi',Kby(9,100))
606 steps['ZEE_UPGPhase1_14']=genepi('ZEE_14TeV_cfi',Kby(9,100))
607 steps['ZTT_UPGPhase1_14']=genepi('ZTT_Tauola_All_hadronic_14TeV_cfi',Kby(9,150))
608 steps['H130GGgluonfusion_UPGPhase1_14']=genepi('H130GGgluonfusion_14TeV_cfi',Kby(9,100))
609 steps['PhotonJets_Pt_10_UPGPhase1_14']=genepi('PhotonJet_Pt_10_14TeV_cfi',Kby(9,150))
610 steps['QQH1352T_Tauola_UPGPhase1_14']=genepi('QQH1352T_Tauola_14TeV_cfi',Kby(9,100))
611 
612 steps['MinBias_TuneZ2star_UPGPhase1_14']=genepi('MinBias_TuneZ2star_14TeV_pythia6_cff',Kby(9,300))
613 steps['WM_UPGPhase1_14']=genepi('WM_14TeV_cfi',Kby(9,200))
614 steps['ZMM_UPGPhase1_14']=genepi('ZMM_14TeV_cfi',Kby(18,300))
615 
616 #steps['ADDMonoJet_d3MD3_UPGPhase1_14']=genepi('ADDMonoJet_14TeV_d3MD3_cfi',Kby(9,100))
617 #steps['ZpMM_UPGPhase1_14']=genepi('ZpMM_14TeV_cfi',Kby(9,200))
618 #steps['WpM_UPGPhase1_14']=genepi('WpM_14TeV_cfi',Kby(9,200))
619 
620 
621 ## 2015
622 steps['FourMuPt1_200_UPG2015']=gen2015('FourMuPt_1_200_cfi',Kby(10,100))
623 steps['SingleElectronPt10_UPG2015']=gen2015('SingleElectronPt10_cfi',Kby(9,3000))
624 steps['SingleElectronPt35_UPG2015']=gen2015('SingleElectronPt35_cfi',Kby(9,500))
625 steps['SingleElectronPt1000_UPG2015']=gen2015('SingleElectronPt1000_cfi',Kby(9,50))
626 steps['SingleGammaPt10_UPG2015']=gen2015('SingleGammaPt10_cfi',Kby(9,3000))
627 steps['SingleGammaPt35_UPG2015']=gen2015('SingleGammaPt35_cfi',Kby(9,500))
628 steps['SingleMuPt1_UPG2015']=gen2015('SingleMuPt1_cfi',Kby(25,1000))
629 steps['SingleMuPt10_UPG2015']=gen2015('SingleMuPt10_cfi',Kby(25,500))
630 steps['SingleMuPt100_UPG2015']=gen2015('SingleMuPt100_cfi',Kby(9,500))
631 steps['SingleMuPt1000_UPG2015']=gen2015('SingleMuPt1000_cfi',Kby(9,500))
632 
633 steps['TTbarLepton_UPG2015_8']=gen2015('TTbarLepton_Tauola_8TeV_cfi',Kby(9,100))
634 steps['Wjet_Pt_80_120_UPG2015_8']=gen2015('Wjet_Pt_80_120_8TeV_cfi',Kby(9,100))
635 steps['Wjet_Pt_3000_3500_UPG2015_8']=gen2015('Wjet_Pt_3000_3500_8TeV_cfi',Kby(9,50))
636 steps['LM1_sfts_UPG2015_8']=gen2015('LM1_sfts_8TeV_cfi',Kby(9,100))
637 
638 steps['QCD_Pt_3000_3500_UPG2015_8']=gen2015('QCD_Pt_3000_3500_8TeV_cfi',Kby(9,25))
639 steps['QCD_Pt_600_800_UPG2015_8']=gen2015('QCD_Pt_600_800_8TeV_cfi',Kby(9,50))
640 steps['QCD_Pt_80_120_UPG2015_8']=gen2015('QCD_Pt_80_120_8TeV_cfi',Kby(9,100))
641 
642 steps['Higgs200ChargedTaus_UPG2015_8']=gen2015('H200ChargedTaus_Tauola_8TeV_cfi',Kby(9,100))
643 steps['JpsiMM_UPG2015_8']=gen2015('JpsiMM_8TeV_cfi',Kby(66,1000))
644 steps['TTbar_UPG2015_8']=gen2015('TTbar_Tauola_8TeV_cfi',Kby(9,100))
645 steps['WE_UPG2015_8']=gen2015('WE_8TeV_cfi',Kby(9,100))
646 steps['ZEE_UPG2015_8']=gen2015('ZEE_8TeV_cfi',Kby(9,100))
647 steps['ZTT_UPG2015_8']=gen2015('ZTT_Tauola_All_hadronic_8TeV_cfi',Kby(9,150))
648 steps['H130GGgluonfusion_UPG2015_8']=gen2015('H130GGgluonfusion_8TeV_cfi',Kby(9,100))
649 steps['PhotonJets_Pt_10_UPG2015_8']=gen2015('PhotonJet_Pt_10_8TeV_cfi',Kby(9,150))
650 steps['QQH1352T_Tauola_UPG2015_8']=gen2015('QQH1352T_Tauola_8TeV_cfi',Kby(9,100))
651 
652 steps['MinBias_TuneZ2star_UPG2015_8']=gen2015('MinBias_TuneZ2star_8TeV_pythia6_cff',Kby(9,300))
653 steps['WM_UPG2015_8']=gen2015('WM_8TeV_cfi',Kby(9,200))
654 steps['ZMM_UPG2015_8']=gen2015('ZMM_8TeV_cfi',Kby(18,300))
655 
656 steps['ADDMonoJet_d3MD3_UPG2015_8']=gen2015('ADDMonoJet_8TeV_d3MD3_cfi',Kby(9,100))
657 steps['ZpMM_UPG2015_8']=gen2015('ZpMM_8TeV_cfi',Kby(9,200))
658 steps['WpM_UPG2015_8']=gen2015('WpM_8TeV_cfi',Kby(9,200))
659 
660 
661 
662 #14TeV
663 #steps['TTbarLepton_UPG2015_14']=gen2015('TTbarLepton_Tauola_14TeV_cfi',Kby(9,100))
664 steps['Wjet_Pt_80_120_UPG2015_14']=gen2015('Wjet_Pt_80_120_14TeV_cfi',Kby(9,100))
665 steps['Wjet_Pt_3000_3500_UPG2015_14']=gen2015('Wjet_Pt_3000_3500_14TeV_cfi',Kby(9,50))
666 steps['LM1_sfts_UPG2015_14']=gen2015('LM1_sfts_14TeV_cfi',Kby(9,100))
667 
668 steps['QCD_Pt_3000_3500_UPG2015_14']=gen2015('QCD_Pt_3000_3500_14TeV_cfi',Kby(9,25))
669 #steps['QCD_Pt_600_800_UPG2015_14']=gen2015('QCD_Pt_600_800_14TeV_cfi',Kby(9,50))
670 steps['QCD_Pt_80_120_UPG2015_14']=gen2015('QCD_Pt_80_120_14TeV_cfi',Kby(9,100))
671 
672 steps['Higgs200ChargedTaus_UPG2015_14']=gen2015('H200ChargedTaus_Tauola_14TeV_cfi',Kby(9,100))
673 steps['JpsiMM_UPG2015_14']=gen2015('JpsiMM_14TeV_cfi',Kby(66,1000))
674 steps['TTbar_UPG2015_14']=gen2015('TTbar_Tauola_14TeV_cfi',Kby(9,100))
675 steps['WE_UPG2015_14']=gen2015('WE_14TeV_cfi',Kby(9,100))
676 steps['ZEE_UPG2015_14']=gen2015('ZEE_14TeV_cfi',Kby(9,100))
677 steps['ZTT_UPG2015_14']=gen2015('ZTT_Tauola_All_hadronic_14TeV_cfi',Kby(9,150))
678 steps['H130GGgluonfusion_UPG2015_14']=gen2015('H130GGgluonfusion_14TeV_cfi',Kby(9,100))
679 steps['PhotonJets_Pt_10_UPG2015_14']=gen2015('PhotonJet_Pt_10_14TeV_cfi',Kby(9,150))
680 steps['QQH1352T_Tauola_UPG2015_14']=gen2015('QQH1352T_Tauola_14TeV_cfi',Kby(9,100))
681 
682 steps['MinBias_TuneZ2star_UPG2015_14']=gen2015('MinBias_TuneZ2star_14TeV_pythia6_cff',Kby(9,300))
683 steps['WM_UPG2015_14']=gen2015('WM_14TeV_cfi',Kby(9,200))
684 steps['ZMM_UPG2015_14']=gen2015('ZMM_14TeV_cfi',Kby(18,300))
685 
686 #steps['ADDMonoJet_d3MD3_UPG2015_14']=gen2015('ADDMonoJet_14TeV_d3MD3_cfi',Kby(9,100))
687 #steps['ZpMM_UPG2015_14']=gen2015('ZpMM_14TeV_cfi',Kby(9,200))
688 #steps['WpM_UPG2015_14']=gen2015('WpM_14TeV_cfi',Kby(9,200))
689 
690 
691 
692 step1Up2017Defaults = {'-s' : 'GEN,SIM',
693  '-n' : 10,
694  '--conditions' : 'auto:run2_mc',
695  '--beamspot' : 'Gauss',
696  '--datatier' : 'GEN-SIM',
697  '--eventcontent': 'FEVTDEBUG',
698  '--geometry' : 'Extended2017', #check geo
699  '--customise' : 'SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1,SLHCUpgradeSimulations/Configuration/phase1TkCustoms.customise'
700  }
701 def gen2017(fragment,howMuch):
702  global step1Up2017Defaults
703  return merge([{'cfg':fragment},howMuch,step1Up2017Defaults])
704 
705 steps['FourMuPt1_200_UPG2017']=gen2017('FourMuPt_1_200_cfi',Kby(10,100))
706 steps['SingleElectronPt10_UPG2017']=gen2017('SingleElectronPt10_cfi',Kby(9,3000))
707 steps['SingleElectronPt35_UPG2017']=gen2017('SingleElectronPt35_cfi',Kby(9,500))
708 steps['SingleElectronPt1000_UPG2017']=gen2017('SingleElectronPt1000_cfi',Kby(9,50))
709 steps['SingleGammaPt10_UPG2017']=gen2017('SingleGammaPt10_cfi',Kby(9,3000))
710 steps['SingleGammaPt35_UPG2017']=gen2017('SingleGammaPt35_cfi',Kby(9,500))
711 steps['SingleMuPt1_UPG2017']=gen2017('SingleMuPt1_cfi',Kby(25,1000))
712 steps['SingleMuPt10_UPG2017']=gen2017('SingleMuPt10_cfi',Kby(25,500))
713 steps['SingleMuPt100_UPG2017']=gen2017('SingleMuPt100_cfi',Kby(9,500))
714 steps['SingleMuPt1000_UPG2017']=gen2017('SingleMuPt1000_cfi',Kby(9,500))
715 
716 steps['TTbarLepton_UPG2017_8']=gen2017('TTbarLepton_Tauola_8TeV_cfi',Kby(9,100))
717 steps['Wjet_Pt_80_120_UPG2017_8']=gen2017('Wjet_Pt_80_120_8TeV_cfi',Kby(9,100))
718 steps['Wjet_Pt_3000_3500_UPG2017_8']=gen2017('Wjet_Pt_3000_3500_8TeV_cfi',Kby(9,50))
719 steps['LM1_sfts_UPG2017_8']=gen2017('LM1_sfts_8TeV_cfi',Kby(9,100))
720 
721 steps['QCD_Pt_3000_3500_UPG2017_8']=gen2017('QCD_Pt_3000_3500_8TeV_cfi',Kby(9,25))
722 steps['QCD_Pt_600_800_UPG2017_8']=gen2017('QCD_Pt_600_800_8TeV_cfi',Kby(9,50))
723 steps['QCD_Pt_80_120_UPG2017_8']=gen2017('QCD_Pt_80_120_8TeV_cfi',Kby(9,100))
724 
725 steps['Higgs200ChargedTaus_UPG2017_8']=gen2017('H200ChargedTaus_Tauola_8TeV_cfi',Kby(9,100))
726 steps['JpsiMM_UPG2017_8']=gen2017('JpsiMM_8TeV_cfi',Kby(66,1000))
727 steps['TTbar_UPG2017_8']=gen2017('TTbar_Tauola_8TeV_cfi',Kby(9,100))
728 steps['WE_UPG2017_8']=gen2017('WE_8TeV_cfi',Kby(9,100))
729 steps['ZEE_UPG2017_8']=gen2017('ZEE_8TeV_cfi',Kby(9,100))
730 steps['ZTT_UPG2017_8']=gen2017('ZTT_Tauola_All_hadronic_8TeV_cfi',Kby(9,150))
731 steps['H130GGgluonfusion_UPG2017_8']=gen2017('H130GGgluonfusion_8TeV_cfi',Kby(9,100))
732 steps['PhotonJets_Pt_10_UPG2017_8']=gen2017('PhotonJet_Pt_10_8TeV_cfi',Kby(9,150))
733 steps['QQH1352T_Tauola_UPG2017_8']=gen2017('QQH1352T_Tauola_8TeV_cfi',Kby(9,100))
734 
735 steps['MinBias_TuneZ2star_UPG2017_8']=gen2017('MinBias_TuneZ2star_8TeV_pythia6_cff',Kby(9,300))
736 steps['WM_UPG2017_8']=gen2017('WM_8TeV_cfi',Kby(9,200))
737 steps['ZMM_UPG2017_8']=gen2017('ZMM_8TeV_cfi',Kby(18,300))
738 
739 steps['ADDMonoJet_d3MD3_UPG2017_8']=gen2017('ADDMonoJet_8TeV_d3MD3_cfi',Kby(9,100))
740 steps['ZpMM_UPG2017_8']=gen2017('ZpMM_8TeV_cfi',Kby(9,200))
741 steps['WpM_UPG2017_8']=gen2017('WpM_8TeV_cfi',Kby(9,200))
742 
743 
744 
745 #14TeV
746 #steps['TTbarLepton_UPG2017_14']=gen2017('TTbarLepton_Tauola_14TeV_cfi',Kby(9,100))
747 steps['Wjet_Pt_80_120_UPG2017_14']=gen2017('Wjet_Pt_80_120_14TeV_cfi',Kby(9,100))
748 steps['Wjet_Pt_3000_3500_UPG2017_14']=gen2017('Wjet_Pt_3000_3500_14TeV_cfi',Kby(9,50))
749 steps['LM1_sfts_UPG2017_14']=gen2017('LM1_sfts_14TeV_cfi',Kby(9,100))
750 
751 steps['QCD_Pt_3000_3500_UPG2017_14']=gen2017('QCD_Pt_3000_3500_14TeV_cfi',Kby(9,25))
752 #steps['QCD_Pt_600_800_UPG2017_14']=gen2017('QCD_Pt_600_800_14TeV_cfi',Kby(9,50))
753 steps['QCD_Pt_80_120_UPG2017_14']=gen2017('QCD_Pt_80_120_14TeV_cfi',Kby(9,100))
754 
755 steps['Higgs200ChargedTaus_UPG2017_14']=gen2017('H200ChargedTaus_Tauola_14TeV_cfi',Kby(9,100))
756 steps['JpsiMM_UPG2017_14']=gen2017('JpsiMM_14TeV_cfi',Kby(66,1000))
757 steps['TTbar_UPG2017_14']=gen2017('TTbar_Tauola_14TeV_cfi',Kby(9,100))
758 steps['WE_UPG2017_14']=gen2017('WE_14TeV_cfi',Kby(9,100))
759 steps['ZEE_UPG2017_14']=gen2017('ZEE_14TeV_cfi',Kby(9,100))
760 steps['ZTT_UPG2017_14']=gen2017('ZTT_Tauola_All_hadronic_14TeV_cfi',Kby(9,150))
761 steps['H130GGgluonfusion_UPG2017_14']=gen2017('H130GGgluonfusion_14TeV_cfi',Kby(9,100))
762 steps['PhotonJets_Pt_10_UPG2017_14']=gen2017('PhotonJet_Pt_10_14TeV_cfi',Kby(9,150))
763 steps['QQH1352T_Tauola_UPG2017_14']=gen2017('QQH1352T_Tauola_14TeV_cfi',Kby(9,100))
764 
765 steps['MinBias_TuneZ2star_UPG2017_14']=gen2017('MinBias_TuneZ2star_14TeV_pythia6_cff',Kby(9,300))
766 steps['WM_UPG2017_14']=gen2017('WM_14TeV_cfi',Kby(9,200))
767 steps['ZMM_UPG2017_14']=gen2017('ZMM_14TeV_cfi',Kby(18,300))
768 
769 
770 ## pPb tests
771 step1PPbDefaults={'--beamspot':'Realistic8TeVCollisionPPbBoost'}
772 steps['AMPT_PPb_5020GeV_MinimumBias']=merge([{'-n':10},step1PPbDefaults,genS('AMPT_PPb_5020GeV_MinimumBias_cfi',Kby(9,100))])
773 # GF to be uncommented when GEN-SIM becomes available
774 # steps['AMPT_PPb_5020GeV_MinimumBiasINPUT']={'INPUT':InputInfo(dataSet='/RelValAMPT_PPb_5020GeV_MinimumBias/%s/GEN-SIM'%(baseDataSetRelease[5],),location='STD')}
775 
776 ## heavy ions tests
777 U2000by1={'--relval': '2000,1'}
778 U80by1={'--relval': '80,1'}
779 
780 hiDefaults={'--conditions':'auto:starthi_HIon',
781  '--scenario':'HeavyIons'}
782 
783 steps['HydjetQ_MinBias_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_MinBias_2760GeV_cfi',U2000by1)])
784 steps['HydjetQ_MinBias_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_MinBias_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[1],),location='STD',split=5)}
785 steps['HydjetQ_MinBias_2760GeV_UP15']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_MinBias_2760GeV_cfi',U2000by1)])
786 steps['HydjetQ_MinBias_2760GeV_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_MinBias_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[1],),location='STD',split=5)}
787 steps['HydjetQ_B0_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_B0_2760GeV_cfi',U80by1)])
788 steps['HydjetQ_B0_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B0_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[4],),location='STD')}
789 steps['HydjetQ_B3_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_B3_2760GeV_cfi',U80by1)])
790 steps['HydjetQ_B3_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B3_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[3],),location='STD')}
791 #steps['HydjetQ_B5_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_B5_2760GeV_cfi',U80by1)])
792 #steps['HydjetQ_B5_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B5_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[],),location='STD')}
793 steps['HydjetQ_B8_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_B8_2760GeV_cfi',U80by1)])
794 steps['HydjetQ_B8_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B8_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[7],),location='CAF')}
795 
796 
797 
798 def changeRefRelease(steps,listOfPairs):
799  for s in steps:
800  if ('INPUT' in steps[s]):
801  oldD=steps[s]['INPUT'].dataSet
802  for (ref,newRef) in listOfPairs:
803  if ref in oldD:
804  steps[s]['INPUT'].dataSet=oldD.replace(ref,newRef)
805  if '--pileup_input' in steps[s]:
806  for (ref,newRef) in listOfPairs:
807  if ref in steps[s]['--pileup_input']:
808  steps[s]['--pileup_input']=steps[s]['--pileup_input'].replace(ref,newRef)
809 
810 def addForAll(steps,d):
811  for s in steps:
812  steps[s].update(d)
813 
814 
815 
816 #### fastsim section ####
817 ##no forseen to do things in two steps GEN-SIM then FASTIM->end: maybe later
818 step1FastDefaults =merge([{'-s':'GEN,SIM,RECO,EI,HLT:@relval,VALIDATION',
819  '--fast':'',
820  '--eventcontent':'FEVTDEBUGHLT,DQM',
821  '--datatier':'GEN-SIM-DIGI-RECO,DQMIO',
822  '--relval':'27000,3000'},
823  step1Defaults])
824 step1FastUpg2015Defaults =merge([{'-s':'GEN,SIM,RECO,EI,HLT:@relval,VALIDATION',
825  '--fast':'',
826  '--conditions' :'auto:run2_mc',
827  '--magField' :'38T_PostLS1',
828  '--customise' :'SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1',
829  '--eventcontent':'FEVTDEBUGHLT,DQM',
830  '--datatier':'GEN-SIM-DIGI-RECO,DQMIO',
831  '--relval':'27000,3000'},
832  step1Defaults])
833 step1FastPUNewMixing =merge([{'-s':'GEN,SIM,RECO',
834  '--fast':'',
835  '--conditions' :'auto:run2_mc',
836  '--magField' :'38T_PostLS1',
837  '--customise' :'SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1',
838  '--eventcontent':'FASTPU',
839  '--datatier':'GEN-SIM-RECO',
840  '--relval':'27000,3000'},
841  step1Defaults])
842 
843 
844 #step1FastDefaults
845 steps['TTbarFS']=merge([{'cfg':'TTbar_Tauola_8TeV_cfi'},Kby(100,1000),step1FastDefaults])
846 steps['SingleMuPt1FS']=merge([{'cfg':'SingleMuPt1_cfi'},step1FastDefaults])
847 steps['SingleMuPt10FS']=merge([{'cfg':'SingleMuPt10_cfi'},step1FastDefaults])
848 steps['SingleMuPt100FS']=merge([{'cfg':'SingleMuPt100_cfi'},step1FastDefaults])
849 steps['SinglePiPt1FS']=merge([{'cfg':'SinglePiPt1_cfi'},step1FastDefaults])
850 steps['SinglePiPt10FS']=merge([{'cfg':'SinglePiPt10_cfi'},step1FastDefaults])
851 steps['SinglePiPt100FS']=merge([{'cfg':'SinglePiPt100_cfi'},step1FastDefaults])
852 steps['ZEEFS']=merge([{'cfg':'ZEE_8TeV_cfi'},Kby(100,2000),step1FastDefaults])
853 steps['ZTTFS']=merge([{'cfg':'ZTT_Tauola_OneLepton_OtherHadrons_8TeV_cfi'},Kby(100,2000),step1FastDefaults])
854 steps['QCDFlatPt153000FS']=merge([{'cfg':'QCDForPF_8TeV_cfi'},Kby(27,2000),step1FastDefaults])
855 steps['QCD_Pt_80_120FS']=merge([{'cfg':'QCD_Pt_80_120_8TeV_cfi'},Kby(100,500),stCond,step1FastDefaults])
856 steps['QCD_Pt_3000_3500FS']=merge([{'cfg':'QCD_Pt_3000_3500_8TeV_cfi'},Kby(100,500),stCond,step1FastDefaults])
857 steps['H130GGgluonfusionFS']=merge([{'cfg':'H130GGgluonfusion_8TeV_cfi'},step1FastDefaults])
858 steps['SingleGammaFlatPt10To10FS']=merge([{'cfg':'SingleGammaFlatPt10To100_cfi'},Kby(100,500),step1FastDefaults])
859 
860 #step1FastUpg2015Defaults
861 steps['TTbarFS_13']=merge([{'cfg':'TTbar_Tauola_13TeV_cfi'},Kby(100,1000),step1FastUpg2015Defaults])
862 steps['ZEEFS_13']=merge([{'cfg':'ZEE_13TeV_cfi'},Kby(100,2000),step1FastUpg2015Defaults])
863 steps['ZTTFS_13']=merge([{'cfg':'ZTT_Tauola_OneLepton_OtherHadrons_13TeV_cfi'},Kby(100,2000),step1FastUpg2015Defaults])
864 steps['QCDFlatPt153000FS_13']=merge([{'cfg':'QCDForPF_13TeV_cfi'},Kby(27,2000),step1FastUpg2015Defaults])
865 steps['QCD_Pt_80_120FS_13']=merge([{'cfg':'QCD_Pt_80_120_13TeV_cfi'},Kby(100,500),step1FastUpg2015Defaults])
866 steps['QCD_Pt_3000_3500FS_13']=merge([{'cfg':'QCD_Pt_3000_3500_13TeV_cfi'},Kby(100,500),step1FastUpg2015Defaults])
867 steps['H130GGgluonfusionFS_13']=merge([{'cfg':'H130GGgluonfusion_13TeV_cfi'},step1FastUpg2015Defaults])
868 steps['SingleMuPt10FS_UP15']=merge([{'cfg':'SingleMuPt10_cfi'},step1FastUpg2015Defaults])
869 steps['SingleMuPt100FS_UP15']=merge([{'cfg':'SingleMuPt100_cfi'},step1FastUpg2015Defaults])
870 
871 #step1FastPU
872 steps['MinBiasFS_13_ForMixing']=merge([{'cfg':'MinBias_13TeV_cfi'},Kby(100,1000),step1FastPUNewMixing])
873 
874 steps['TTbarSFS']=merge([{'cfg':'TTbar_Tauola_8TeV_cfi'},
875  {'-s':'GEN,SIM',
876  '--eventcontent':'FEVTDEBUG',
877  '--datatier':'GEN-SIM',
878  '--fast':''},
879  step1Defaults])
880 
881 steps['TTbarSFSA']=merge([{'cfg':'TTbar_Tauola_8TeV_cfi',
882  '-s':'GEN,SIM,RECO,EI,HLT,VALIDATION',
883  '--fast':''},
884  step1FastDefaults])
885 
886 def identityFS(wf):
887  return merge([{'--restoreRND':'HLT','--process':'HLT2','--hltProcess':'HLT2'},wf])
888 
889 steps['SingleMuPt10FS_ID']=identityFS(steps['SingleMuPt10FS'])
890 steps['TTbarFS_ID']=identityFS(steps['TTbarFS'])
891 
892 #### generator test section ####
893 step1GenDefaults=merge([{'-s':'GEN,VALIDATION:genvalid',
894  '--relval':'1000000,20000',
895  '--eventcontent':'RAWSIM',
896  '--datatier':'GEN'},
897  step1Defaults])
898 def genvalid(fragment,d,suffix='all',fi=''):
899  import copy
900  c=copy.copy(d)
901  if suffix:
902  c['-s']=c['-s'].replace('genvalid','genvalid_'+suffix)
903  if fi:
904  c['--filein']='lhe:%d'%(fi,)
905  c['cfg']=fragment
906  return c
907 
908 steps['QCD_Pt-30_8TeV_herwigpp']=genvalid('QCD_Pt_30_8TeV_herwigpp_cff',step1GenDefaults)
909 steps['DYToLL_M-50_TuneZ2star_8TeV_pythia6-tauola']=genvalid('DYToLL_M_50_TuneZ2star_8TeV_pythia6_tauola_cff',step1GenDefaults)
910 steps['QCD_Pt-30_TuneZ2star_8TeV_pythia6']=genvalid('QCD_Pt_30_TuneZ2star_8TeV_pythia6_cff',step1GenDefaults)
911 steps['QCD_Pt-30_8TeV_pythia8']=genvalid('QCD_Pt_30_8TeV_pythia8_cff',step1GenDefaults)
912 steps['GluGluTo2Jets_M-100_8TeV_exhume']=genvalid('GluGluTo2Jets_M_100_8TeV_exhume_cff',step1GenDefaults)
913 steps['TT_TuneZ2star_8TeV_pythia6-evtgen']=genvalid('TT_TuneZ2star_8TeV_pythia6_evtgen_cff',step1GenDefaults)
914 steps['MinBias_TuneZ2star_8TeV_pythia6']=genvalid('MinBias_TuneZ2star_8TeV_pythia6_cff',step1GenDefaults)
915 steps['WToLNu_TuneZ2star_8TeV_pythia6-tauola']=genvalid('WToLNu_TuneZ2star_8TeV_pythia6_tauola_cff',step1GenDefaults)
916 steps['QCD_Pt-30_8TeV_herwig6']=genvalid('QCD_Pt_30_8TeV_herwig6_cff',step1GenDefaults)
917 steps['MinBias_8TeV_pythia8']=genvalid('MinBias_8TeV_pythia8_cff',step1GenDefaults)
918 
919 
920 steps['QCD_Ht-100To250_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,fi=5475)
921 steps['QCD_Ht-250To500_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,fi=5476)
922 steps['QCD_Ht-500To1000_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,fi=5481)
923 steps['TTJets_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,fi=5502)
924 steps['WJetsLNu_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,fi=5607)
925 steps['ZJetsLNu_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,fi=5591)
926 steps['ZJetsLNu_Tune4C_8TeV_madgraph-pythia8']=genvalid('Hadronizer_MgmMatchTune4C_8TeV_madgraph_pythia8_cff',step1GenDefaults,fi=5591)
927 steps['ReggeGribovPartonMC_EposLHC_5TeV_pPb']=genvalid('GeneratorInterface/ReggeGribovPartonMCInterface/ReggeGribovPartonMC_EposLHC_5TeV_pPb_cfi',step1GenDefaults)
928 
929 #PU for FullSim
930 PU={'-n':10,'--pileup':'default','--pileup_input':'das:/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],)}
931 # pu2 can be removed
932 PU2={'-n':10,'--pileup':'default','--pileup_input':'das:/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],)}
933 PU25={'-n':10,'--pileup':'AVE_10_BX_25ns_m8','--pileup_input':'das:/RelValMinBias_13/%s/GEN-SIM'%(baseDataSetRelease[10],)}
934 PU50={'-n':10,'--pileup':'AVE_20_BX_50ns_m8','--pileup_input':'das:/RelValMinBias_13/%s/GEN-SIM'%(baseDataSetRelease[10],)}
935 
936 #PU for FastSim
937 PUFS={'--pileup':'default'}
938 PUFS2={'--pileup':'mix_2012_Startup_inTimeOnly'}
939 PUFSAVE10={'--pileup':'E13TeV_AVE_10_inTimeOnly'}
940 PUFSAVE20={'--pileup':'E13TeV_AVE_20_inTimeOnly'}
941 
942 #
943 steps['TTbarFSPU']=merge([PUFS,Kby(100,500),steps['TTbarFS']] )
944 steps['TTbarFSPU2']=merge([PUFS2,Kby(100,500),steps['TTbarFS']])
945 steps['TTbarFSPU13AVE10']=merge([PUFSAVE10,Kby(100,500),steps['TTbarFS_13']] )
946 steps['TTbarFSPU13AVE20']=merge([PUFSAVE20,Kby(100,500),steps['TTbarFS_13']] )
947 ##########################
948 
949 
950 
951 # step2
952 step2Defaults = { '-s' : 'DIGI:pdigi_valid,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco',
953  '--datatier' : 'GEN-SIM-DIGI-RAW-HLTDEBUG',
954  '--eventcontent': 'FEVTDEBUGHLT',
955  '--conditions' : 'auto:run1_mc',
956  }
957 #for 2015
958 step2Upg2015Defaults = {'-s' :'DIGI:pdigi_valid,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco',
959  '--conditions' :'auto:run2_mc',
960  '--magField' :'38T_PostLS1',
961  '--datatier' :'GEN-SIM-DIGI-RAW-HLTDEBUG',
962  '--eventcontent':'FEVTDEBUGHLT',
963  '--customise' :'SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1',
964  '-n' :'10'
965  }
966 step2Upg2015Defaults50ns = merge([{'--conditions':'auto:run2_mc_50ns'},step2Upg2015Defaults])
967 
968 steps['DIGIUP15']=merge([step2Upg2015Defaults])
969 steps['DIGIUP15PROD1']=merge([{'-s':'DIGI,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco','--eventcontent':'RAWSIM','--datatier':'GEN-SIM-RAW'},step2Upg2015Defaults])
970 steps['DIGIUP15_PU25']=merge([PU25,step2Upg2015Defaults])
971 steps['DIGIUP15_PU50']=merge([PU50,step2Upg2015Defaults50ns])
972 
973 steps['DIGIPROD1']=merge([{'-s':'DIGI,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco','--eventcontent':'RAWSIM','--datatier':'GEN-SIM-RAW'},step2Defaults])
974 steps['DIGI']=merge([step2Defaults])
975 #steps['DIGI2']=merge([stCond,step2Defaults])
976 steps['DIGICOS']=merge([{'--scenario':'cosmics','--eventcontent':'FEVTDEBUG','--datatier':'GEN-SIM-DIGI-RAW'},stCond,step2Defaults])
977 steps['DIGIHAL']=merge([{'--scenario':'cosmics','--eventcontent':'FEVTDEBUG','--datatier':'GEN-SIM-DIGI-RAW'},step2Upg2015Defaults])
978 
979 steps['DIGIPU1']=merge([PU,step2Defaults])
980 steps['DIGIPU2']=merge([PU2,step2Defaults])
981 steps['REDIGIPU']=merge([{'-s':'reGEN,reDIGI,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco'},steps['DIGIPU1']])
982 
983 steps['DIGI_ID']=merge([{'--restoreRND':'HLT','--process':'HLT2'},steps['DIGI']])
984 
985 steps['RESIM']=merge([{'-s':'reGEN,reSIM','-n':10},steps['DIGI']])
986 steps['RESIMDIGI']=merge([{'-s':'reGEN,reSIM,DIGI,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco','-n':10,'--restoreRNDSeeds':'','--process':'HLT'},steps['DIGI']])
987 
988 
989 steps['DIGIHI']=merge([{'--conditions':'auto:starthi_HIon', '-s':'DIGI:pdigi_valid,L1,DIGI2RAW,HLT:HIon,RAW2DIGI,L1Reco', '--inputCommands':'"keep *","drop *_simEcalPreshowerDigis_*_*"', '-n':10}, hiDefaults, step2Defaults])
990 
991 #wmsplit['DIGIHI']=5
992 
993 #for pix phase1
994 step2Upgpixphase1Defaults = {'-s':'DIGI:pdigi_valid,L1,DIGI2RAW',
995  '--conditions':'DESIGN61_V10::All', #to be updtaed with autocond
996  '--datatier':'GEN-SIM-DIGI-RAW',
997  '-n':'10',
998  '--eventcontent':'FEVTDEBUGHLT',
999  '--customise': 'SLHCUpgradeSimulations/Configuration/phase1TkCustoms.customise',
1000  '--geometry' : 'ExtendedPhaseIPixel' #check geo
1001  }
1002 steps['DIGIUP']=merge([step2Upgpixphase1Defaults])
1003 
1004 #for 2017
1005 step2Upg2017Defaults = {'-s':'DIGI:pdigi_valid,L1,DIGI2RAW',
1006  '--conditions':'auto:run2_mc',
1007  '--datatier':'GEN-SIM-DIGI-RAW',
1008  '-n':'10',
1009  '--eventcontent':'FEVTDEBUGHLT',
1010  '--customise': 'SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1,SLHCUpgradeSimulations/Configuration/phase1TkCustoms.customise',
1011  '--geometry' : 'Extended2017' #check geo
1012  }
1013 steps['DIGIUP17']=merge([step2Upg2017Defaults])
1014 #add this line when testing from an input file that is not strictly GEN-SIM
1015 #addForAll(step2,{'--process':'DIGI'})
1016 
1017 
1018 # PRE-MIXING : https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideSimulation#Pre_Mixing_Instructions
1019 premixUp2015Defaults = {
1020  '--evt_type' : 'SingleNuE10_cfi',
1021  '-s' : 'GEN,SIM,DIGIPREMIX,L1,DIGI2RAW',
1022  '-n' : '10',
1023  '--conditions' : 'auto:upgradePLS1', # 25ns GT; dedicated dict for 50ns
1024  '--datatier' : 'GEN-SIM-DIGI-RAW',
1025  '--eventcontent': 'PREMIX',
1026  '--magField' : '38T_PostLS1',
1027  '--geometry' : 'Extended2015',
1028  '--customise' : 'SLHCUpgradeSimulations/Configuration/postLS1CustomsPreMixing.customisePostLS1' # temporary replacement for premix; to be brought back to customisePostLS1
1029 }
1030 premixUp2015Defaults50ns = merge([{'--conditions':'auto:upgradePLS150ns'},premixUp2015Defaults])
1031 
1032 steps['PREMIXUP15_PU25']=merge([PU25,Kby(100,100),premixUp2015Defaults])
1033 steps['PREMIXUP15_PU50']=merge([PU50,Kby(100,100),premixUp2015Defaults50ns])
1034 
1035 digiPremixUp2015Defaults25ns = {
1036  '--conditions' : 'auto:upgradePLS1',
1037  '-s' : 'DIGIPREMIX_S2:pdigi_valid,DATAMIX,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco',
1038  '--pileup_input' : 'das:/RelValPREMIXUP15_PU25/%s/GEN-SIM-DIGI-RAW'%baseDataSetRelease[9],
1039  '--eventcontent' : 'FEVTDEBUGHLT',
1040  '--datatier' : 'GEN-SIM-DIGI-RAW-HLTDEBUG',
1041  '--datamix' : 'PreMix',
1042  '--customise' : 'SLHCUpgradeSimulations/Configuration/postLS1CustomsPreMixing.customisePostLS1', # temporary replacement for premix; to be brought back to customisePostLS1
1043  '--geometry' : 'Extended2015',
1044  '--magField' : '38T_PostLS1',
1045  }
1046 digiPremixUp2015Defaults50ns=merge([{'--conditions':'auto:upgradePLS150ns'},
1047  {'--pileup_input' : 'das:/RelValPREMIXUP15_PU50/%s/GEN-SIM-DIGI-RAW'%baseDataSetRelease[10]},
1048  digiPremixUp2015Defaults25ns])
1049 steps['DIGIPRMXUP15_PU25']=merge([digiPremixUp2015Defaults25ns])
1050 steps['DIGIPRMXUP15_PU50']=merge([digiPremixUp2015Defaults50ns])
1051 premixProd = {'-s' : 'DIGIPREMIX_S2,DATAMIX,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco',
1052  '--eventcontent' : 'PREMIXRAW',
1053  '--datatier' : 'PREMIXRAW'} #GF: check this datatier name
1054 steps['DIGIPRMXUP15_PROD_PU25']=merge([premixProd,digiPremixUp2015Defaults25ns])
1055 steps['DIGIPRMXUP15_PROD_PU50']=merge([premixProd,digiPremixUp2015Defaults50ns])
1056 
1057 
1058 dataReco={'--conditions':'auto:run1_data',
1059  '-s':'RAW2DIGI,L1Reco,RECO,EI,ALCA:SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBias,DQM',
1060  '--datatier':'RECO,DQMIO',
1061  '--eventcontent':'RECO,DQM',
1062  '--data':'',
1063  '--process':'reRECO',
1064  '--scenario':'pp',
1065  }
1066 
1067 hltKey='relval'
1068 from Configuration.HLT.autoHLT import autoHLT
1069 menu = autoHLT[hltKey]
1070 steps['HLTD']=merge([{'--process':'reHLT',
1071  '-s':'L1REPACK,HLT:@%s'%hltKey,
1072  '--conditions':'auto:hltonline_%s'%menu,
1073  '--data':'',
1074  '--output':'\'[{"e":"RAW","t":"RAW","o":["drop FEDRawDataCollection_rawDataCollector__LHC"]}]\'',
1075  },])
1076 #wmsplit['HLTD']=5
1077 
1078 steps['RECOD']=merge([{'--scenario':'pp',},dataReco])
1079 steps['RECODSplit']=steps['RECOD'] # finer job splitting
1080 steps['RECOSKIMALCA']=merge([{'--inputCommands':'"keep *","drop *_*_*_RECO"'
1081  },steps['RECOD']])
1082 steps['RECOSKIM']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,EI,DQM',
1083  },steps['RECOSKIMALCA']])
1084 
1085 steps['REPACKHID']=merge([{'--scenario':'HeavyIons',
1086  '-s':'RAW2DIGI,REPACK',
1087  '--datatier':'RAW',
1088  '--eventcontent':'REPACKRAW'},
1089  steps['RECOD']])
1090 steps['RECOHID10']=merge([{'--scenario':'HeavyIons',
1091  '-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBiasHI+HcalCalMinBias,DQM',
1092  '--datatier':'RECO,DQMIO',
1093  '--eventcontent':'RECO,DQM'},
1094  steps['RECOD']])
1095 steps['RECOHID11']=merge([{'--repacked':''},
1096  steps['RECOHID10']])
1097 steps['RECOHID10']['-s']+=',REPACK'
1098 steps['RECOHID10']['--datatier']+=',RAW'
1099 steps['RECOHID10']['--eventcontent']+=',REPACKRAW'
1100 
1101 steps['TIER0']=merge([{'--customise':'Configuration/DataProcessing/RecoTLR.customisePrompt',
1102  '-s':'RAW2DIGI,L1Reco,RECO,EI,ALCAPRODUCER:@allForPrompt,DQM,ENDJOB',
1103  '--datatier':'RECO,AOD,ALCARECO,DQMIO',
1104  '--eventcontent':'RECO,AOD,ALCARECO,DQM',
1105  '--process':'RECO'
1106  },dataReco])
1107 steps['TIER0EXP']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,EI,ALCAPRODUCER:@allForExpress,DQM,ENDJOB',
1108  '--datatier':'ALCARECO,DQMIO',
1109  '--eventcontent':'ALCARECO,DQM',
1110  '--customise':'Configuration/DataProcessing/RecoTLR.customiseExpress',
1111  },steps['TIER0']])
1112 
1113 steps['RECOCOSD']=merge([{'--scenario':'cosmics',
1114  '-s':'RAW2DIGI,L1Reco,RECO,DQM,ALCA:MuAlCalIsolatedMu+DtCalib',
1115  '--customise':'Configuration/DataProcessing/RecoTLR.customiseCosmicData'
1116  },dataReco])
1117 
1118 step2HImixDefaults=merge([{'-n':'10',
1119  '--himix':'',
1120  '--filein':'file.root',
1121  '--process':'HISIGNAL'
1122  },hiDefaults,step1Defaults])
1123 steps['Pyquen_GammaJet_pt20_2760GeV']=merge([{'cfg':'Pyquen_GammaJet_pt20_2760GeV_cfi'},step2HImixDefaults])
1124 steps['Pyquen_DiJet_pt80to120_2760GeV']=merge([{'cfg':'Pyquen_DiJet_pt80to120_2760GeV_cfi'},step2HImixDefaults])
1125 steps['Pyquen_ZeemumuJets_pt10_2760GeV']=merge([{'cfg':'Pyquen_ZeemumuJets_pt10_2760GeV_cfi'},step2HImixDefaults])
1126 
1127 # step3
1128 step3Defaults = {
1129  '-s' : 'RAW2DIGI,L1Reco,RECO,EI,VALIDATION,DQM',
1130  '--conditions' : 'auto:run1_mc',
1131  '--no_exec' : '',
1132  '--datatier' : 'GEN-SIM-RECO,DQMIO',
1133  '--eventcontent': 'RECOSIM,DQM'
1134  }
1135 
1136 steps['DIGIPU']=merge([{'--process':'REDIGI'},steps['DIGIPU1']])
1137 
1138 #for 2015
1139 step3Up2015Defaults = {'-s':'RAW2DIGI,L1Reco,RECO,EI,VALIDATION,DQM',
1140  '--conditions':'auto:run2_mc',
1141  '--magField' : '38T_PostLS1',
1142  '-n':'10',
1143  '--datatier':'GEN-SIM-RECO,DQMIO',
1144  '--eventcontent':'RECOSIM,DQM',
1145  '--customise' : 'SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1'
1146  }
1147 step3Up2015Defaults50ns = merge([{'--conditions':'auto:run2_mc_50ns'},step3Up2015Defaults])
1148 
1149 step3Up2015Hal = {'-s' :'RAW2DIGI,L1Reco,RECO,EI,VALIDATION,DQM',
1150  '--conditions' :'auto:run2_mc',
1151  '--magField' :'38T_PostLS1',
1152  '--datatier' :'GEN-SIM-RECO,DQMIO',
1153  '--eventcontent':'RECOSIM,DQM',
1154  '-n' :'10',
1155  '--customise' :'SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1'
1156  }
1157 
1158 steps['RECOUP15']=merge([step3Up2015Defaults]) # todo: remove UP from label
1159 steps['RECOUP15PROD1']=merge([{ '-s' : 'RAW2DIGI,L1Reco,RECO,EI', '--datatier' : 'GEN-SIM-RECO,AODSIM', '--eventcontent' : 'RECOSIM,AODSIM'},step3Up2015Defaults])
1160 
1161 steps['RECODreHLT']=merge([{'--hltProcess':'reHLT','--conditions':'auto:com10_%s'%menu},steps['RECOD']])
1162 #wmsplit['RECODreHLT']=2
1163 
1164 steps['RECO']=merge([step3Defaults])
1165 steps['RECODBG']=merge([{'--eventcontent':'RECODEBUG,DQM'},steps['RECO']])
1166 steps['RECOPROD1']=merge([{ '-s' : 'RAW2DIGI,L1Reco,RECO,EI', '--datatier' : 'GEN-SIM-RECO,AODSIM', '--eventcontent' : 'RECOSIM,AODSIM'},step3Defaults])
1167 steps['RECOPRODUP15']=merge([{ '-s' : 'RAW2DIGI,L1Reco,RECO,EI', '--datatier' : 'GEN-SIM-RECO,AODSIM', '--eventcontent' : 'RECOSIM,AODSIM'},step3Up2015Defaults])
1168 steps['RECOCOS']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCA:MuAlCalIsolatedMu,DQM','--scenario':'cosmics'},stCond,step3Defaults])
1169 steps['RECOHAL']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCA:MuAlCalIsolatedMu,DQM','--scenario':'cosmics'},step3Up2015Hal])
1170 steps['RECOMIN']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,EI,ALCA:SiStripCalZeroBias+SiStripCalMinBias+EcalCalPhiSym,VALIDATION,DQM'},stCond,step3Defaults])
1171 steps['RECOMINUP15']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,EI,ALCA:SiStripCalZeroBias+SiStripCalMinBias+EcalCalPhiSym,VALIDATION,DQM'},step3Up2015Defaults])
1172 
1173 steps['RECODDQM']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,EI,DQM:@common+@muon+@hcal+@jetmet+@ecal'},steps['RECOD']])
1174 
1175 steps['RECOPU1']=merge([PU,steps['RECO']])
1176 steps['RECOPU2']=merge([PU2,steps['RECO']])
1177 steps['RECOUP15_PU25']=merge([PU25,step3Up2015Defaults])
1178 steps['RECOUP15_PU50']=merge([PU50,step3Up2015Defaults50ns])
1179 
1180 # for premixing: no --pileup_input for replay; GEN-SIM only available for in-time event, from FEVTDEBUGHLT previous step
1181 steps['RECOPRMXUP15_PU25']=merge([
1182  {'-s':'RAW2DIGI,L1Reco,RECO,EI,VALIDATION,DQM'},
1183  {'--customise':'SLHCUpgradeSimulations/Configuration/postLS1CustomsPreMixing.customisePostLS1'}, # temporary replacement for premix; to be brought back to customisePostLS1
1184  {'--geometry' : 'Extended2015'},
1185  step3Up2015Defaults])
1186 steps['RECOPRMXUP15_PU50']=merge([
1187  {'-s':'RAW2DIGI,L1Reco,RECO,EI,VALIDATION,DQM'},
1188  {'--customise':'SLHCUpgradeSimulations/Configuration/postLS1CustomsPreMixing.customisePostLS1'}, # temporary replacement for premix; to be brought back to customisePostLS1
1189  {'--geometry' : 'Extended2015'},
1190  step3Up2015Defaults50ns])
1191 
1192 recoPremixUp15prod = merge([
1193  {'-s':'RAW2DIGI,L1Reco,RECO,EI'},
1194  {'--datatier' : 'GEN-SIM-RECO,AODSIM'},
1195  {'--eventcontent' : 'RECOSIM,AODSIM'},
1196  {'--customise':'SLHCUpgradeSimulations/Configuration/postLS1CustomsPreMixing.customisePostLS1'}, # temporary replacement for premix; to be brought back to customisePostLS1
1197  {'--geometry' : 'Extended2015'},
1198  step3Up2015Defaults])
1199 
1200 steps['RECOPRMXUP15PROD_PU25']=merge([
1201  recoPremixUp15prod])
1202 steps['RECOPRMXUP15PROD_PU50']=merge([
1203  {'--conditions':'auto:upgradePLS150ns'},
1204  recoPremixUp15prod])
1205 
1206 #wmsplit['RECOPU1']=1
1207 steps['RECOPUDBG']=merge([{'--eventcontent':'RECODEBUG,DQM'},steps['RECOPU1']])
1208 steps['RERECOPU1']=merge([{'--hltProcess':'REDIGI'},steps['RECOPU1']])
1209 
1210 steps['RECO_ID']=merge([{'--hltProcess':'HLT2'},steps['RECO']])
1211 
1212 steps['RECOHI']=merge([hiDefaults,{'-s':'RAW2DIGI,L1Reco,RECO,VALIDATION,DQM'},step3Defaults])
1213 #wmsplit['RECOHI']=5
1214 
1215 steps['DIGIHISt3']=steps['DIGIHI']
1216 
1217 steps['RECOHID11St3']=merge([{
1218  '--process':'ZStoRECO'},
1219  steps['RECOHID11']])
1220 steps['RECOHIR10D11']=merge([{'--filein':'file:step2_inREPACKRAW.root',
1221  '--filtername':'reRECO'},
1222  steps['RECOHID11St3']])
1223 steps['RECOFS']=merge([{'--fast':'',
1224  '-s':'RECO,EI,HLT:@relval,VALIDATION'},
1225  steps['RECO']])
1226 #for phase1
1227 step3Upgpixphase1Defaults = {'-s':'RAW2DIGI,L1Reco,RECO,EI,VALIDATION,DQM',
1228  '--conditions':'DESIGN61_V10::All', #to be updtaed with autocond
1229  '--datatier':'GEN-SIM-RECO,DQMIO',
1230  '-n':'10',
1231  '--eventcontent':'FEVTDEBUGHLT,DQM',
1232  '--customise' : 'SLHCUpgradeSimulations/Configuration/phase1TkCustoms.customise',
1233  '--geometry' : 'ExtendedPhaseIPixel' #check geo
1234  }
1235 
1236 
1237 steps['RECOUP']=merge([step3Upgpixphase1Defaults])
1238 
1239 #for 2017
1240 step3Up2017Defaults = {'-s':'RAW2DIGI,L1Reco,RECO,EI,VALIDATION,DQM',
1241  '--conditions':'auto:run2_mc',
1242  '--datatier':'GEN-SIM-RECO,DQMIO',
1243  '-n':'10',
1244  '--eventcontent':'FEVTDEBUGHLT,DQM',
1245  '--customise' : 'SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1,SLHCUpgradeSimulations/Configuration/phase1TkCustoms.customise',
1246  '--geometry' : 'Extended2017' #check geo
1247  }
1248 
1249 steps['RECOUP17']=merge([step3Up2017Defaults])
1250 
1251 #add this line when testing from an input file that is not strictly GEN-SIM
1252 #addForAll(step3,{'--hltProcess':'DIGI'})
1253 
1254 steps['ALCACOSD']={'--conditions':'auto:run1_data',
1255  '--datatier':'ALCARECO',
1256  '--eventcontent':'ALCARECO',
1257  '--scenario':'cosmics',
1258  '-s':'ALCA:TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DQM'
1259  }
1260 steps['ALCAPROMPT']={'-s':'ALCA:PromptCalibProd',
1261  '--filein':'file:TkAlMinBias.root',
1262  '--conditions':'auto:run1_data',
1263  '--datatier':'ALCARECO',
1264  '--eventcontent':'ALCARECO'}
1265 steps['ALCAEXP']={'-s':'ALCA:PromptCalibProd',
1266  '--conditions':'auto:run1_data',
1267  '--datatier':'ALCARECO',
1268  '--eventcontent':'ALCARECO'}
1269 
1270 # step4
1271 step4Defaults = {
1272  '-s' : 'ALCA:TkAlMuonIsolated+TkAlMinBias+EcalCalElectron+HcalCalIsoTrk+MuAlOverlaps',
1273  '-n' : 1000,
1274  '--conditions' : 'auto:run1_mc',
1275  '--datatier' : 'ALCARECO',
1276  '--eventcontent': 'ALCARECO',
1277  }
1278 step4Up2015Defaults = {
1279  '-s' : 'ALCA:TkAlMuonIsolated+TkAlMinBias+EcalCalElectron+HcalCalIsoTrk+MuAlOverlaps',
1280  '-n' : 1000,
1281  '--conditions' : 'auto:run2_mc',
1282  '--datatier' : 'ALCARECO',
1283  '--eventcontent': 'ALCARECO',
1284  }
1285 
1286 steps['RERECOPU']=steps['RERECOPU1']
1287 
1288 steps['ALCATT']=merge([{'--filein':'file:step3.root'},step4Defaults])
1289 steps['ALCAMIN']=merge([{'-s':'ALCA:TkAlMinBias','--filein':'file:step3.root'},stCond,step4Defaults])
1290 steps['ALCACOS']=merge([{'-s':'ALCA:TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics'},stCond,step4Defaults])
1291 steps['ALCABH']=merge([{'-s':'ALCA:TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo'},stCond,step4Defaults])
1292 steps['ALCAHAL']=merge([{'-s':'ALCA:TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo'},step4Up2015Defaults])
1293 steps['ALCAELE']=merge([{'-s':'ALCA:EcalCalElectron','--filein':'file:step3.root'},stCond,step4Defaults])
1294 
1295 steps['ALCAHARVD']={'-s':'ALCAHARVEST:BeamSpotByRun+BeamSpotByLumi+SiStripQuality',
1296  '--conditions':'auto:run1_data',
1297  '--scenario':'pp',
1298  '--data':'',
1299  '--filein':'file:PromptCalibProd.root'}
1300 
1301 steps['RECOHISt4']=steps['RECOHI']
1302 
1303 steps['ALCANZS']=merge([{'-s':'ALCA:HcalCalMinBias','--mc':''},step4Defaults])
1304 steps['HARVGEN']={'-s':'HARVESTING:genHarvesting',
1305  '--harvesting':'AtJobEnd',
1306  '--conditions':'auto:run1_mc',
1307  '--mc':'',
1308  '--filein':'file:step1.root'
1309  }
1310 
1311 #data
1312 steps['HARVESTD']={'-s':'HARVESTING:dqmHarvesting',
1313  '--conditions':'auto:run1_data',
1314  '--data':'',
1315  '--filetype':'DQM',
1316  '--scenario':'pp'}
1317 
1318 steps['HARVESTDreHLT'] = merge([ {'--conditions':'auto:com10_%s'%menu}, steps['HARVESTD'] ])
1319 
1320 steps['HARVESTDDQM']=merge([{'-s':'HARVESTING:@common+@muon+@hcal+@jetmet+@ecal'},steps['HARVESTD']])
1321 
1322 steps['HARVESTDfst2']=merge([{'--filein':'file:step2_inDQM.root'},steps['HARVESTD']])
1323 
1324 steps['HARVESTDC']={'-s':'HARVESTING:dqmHarvesting',
1325  '--conditions':'auto:run1_data',
1326  '--filetype':'DQM',
1327  '--data':'',
1328  '--filein':'file:step2_inDQM.root',
1329  '--scenario':'cosmics'}
1330 steps['HARVESTDHI']={'-s':'HARVESTING:dqmHarvesting',
1331  '--conditions':'auto:run1_data',
1332  '--filetype':'DQM',
1333  '--data':'',
1334  '--scenario':'HeavyIons'}
1335 
1336 #MC
1337 steps['HARVEST']={'-s':'HARVESTING:validationHarvesting+dqmHarvesting',
1338  '--conditions':'auto:run1_mc',
1339  '--mc':'',
1340  '--filetype':'DQM',
1341  '--scenario':'pp'}
1342 steps['HARVESTCOS']={'-s':'HARVESTING:dqmHarvesting',
1343  '--conditions':'auto:run1_mc',
1344  '--mc':'',
1345  '--filein':'file:step3_inDQM.root',
1346  '--filetype':'DQM',
1347  '--scenario':'cosmics'}
1348 steps['HARVESTHAL']={'-s' :'HARVESTING:dqmHarvesting',
1349  '--conditions':'auto:run2_mc',
1350  '--magField' :'38T_PostLS1',
1351  '--mc' :'',
1352  '--filein' :'file:step3_inDQM.root',
1353  '--scenario' :'cosmics',
1354  '--filein':'file:step3_inDQM.root', # unnnecessary
1355  '--filetype':'DQM',
1356  '--customise' : 'SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1',
1357  }
1358 steps['HARVESTFS']={'-s':'HARVESTING:validationHarvestingFS',
1359  '--conditions':'auto:run1_mc',
1360  '--mc':'',
1361  '--filetype':'DQM',
1362  '--scenario':'pp'}
1363 steps['HARVESTHI']={'-s':'HARVESTING:validationHarvesting+dqmHarvesting',
1364  '--conditions':'auto:starthi_HIon',
1365  '--mc':'',
1366  '--filetype':'DQM',
1367  '--scenario':'HeavyIons'}
1368 
1369 #for phase1
1370 steps['HARVESTUP']={'-s':'HARVESTING:validationHarvesting+dqmHarvesting',
1371  '--conditions':'DESIGN61_V10::All', #to be updtaed with autocond
1372  '--mc':'',
1373  '--customise' : 'SLHCUpgradeSimulations/Configuration/phase1TkCustoms.customise',
1374  '--geometry' : 'ExtendedPhaseIPixel', #check geo
1375  '--filetype':'DQM'
1376  }
1377 
1378 steps['HARVESTUP15']={'-s':'HARVESTING:validationHarvesting+dqmHarvesting', # todo: remove UP from label
1379  '--conditions':'auto:run2_mc',
1380  '--magField' : '38T_PostLS1',
1381  '--mc':'',
1382  '--customise' : 'SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1',
1383  '--filetype':'DQM',
1384  }
1385 
1386 steps['HARVESTUP15FS']={'-s':'HARVESTING:validationHarvestingFS',
1387  '--conditions':'auto:run2_mc',
1388  '--mc':'',
1389  '--filetype':'DQM',
1390  '--scenario':'pp'}
1391 
1392 steps['HARVESTUP17']={'-s':'HARVESTING:validationHarvesting+dqmHarvesting',
1393  '--conditions':'auto:run2_mc',
1394  '--mc':'',
1395  '--customise' : 'SLHCUpgradeSimulations/Configuration/phase1TkCustoms.customise',
1396  '--filetype':'DQM',
1397  '--geometry' : 'Extended2017' #check geo
1398  }
1399 steps['ALCASPLIT']={'-s':'ALCAOUTPUT:@allForPrompt',
1400  '--conditions':'auto:run1_data',
1401  '--scenario':'pp',
1402  '--data':'',
1403  '--triggerResultsProcess':'RECO',
1404  '--filein':'file:step2_inALCARECO.root'}
1405 
1406 steps['SKIMD']={'-s':'SKIM:all',
1407  '--conditions':'auto:run1_data',
1408  '--data':'',
1409  '--scenario':'pp',
1410  '--filein':'file:step2.root',
1411  '--secondfilein':'filelist:step1_dasquery.log'}
1412 
1413 steps['SKIMDreHLT'] = merge([ {'--conditions':'auto:com10_%s'%menu,'--filein':'file:step3.root'}, steps['SKIMD'] ])
1414 
1415 steps['SKIMCOSD']={'-s':'SKIM:all',
1416  '--conditions':'auto:run1_data',
1417  '--data':'',
1418  '--scenario':'cosmics',
1419  '--filein':'file:step2.root',
1420  '--secondfilein':'filelist:step1_dasquery.log'}
1421 
1422 steps['RECOFROMRECO']=merge([{'-s':'RECO,EI',
1423  '--filtername':'RECOfromRECO',
1424  '--process':'reRECO',
1425  '--datatier':'AODSIM',
1426  '--eventcontent':'AODSIM',
1427  },
1428  stCond,step3Defaults])
1429 
1430 
1431 steps['RECOFROMRECOSt2']=steps['RECOFROMRECO']
1432 
1433 steps['RECODFROMRAWRECO']=merge([{'-s':'RAW2DIGI:RawToDigi_noTk,L1Reco,RECO:reconstruction_noTracking,EI',
1434  '--filtername':'RECOfromRAWRECO',
1435  '--process':'rereRECO',
1436  '--datatier':'AOD',
1437  '--eventcontent':'AOD',
1438  '--secondfilein':'filelist:step1_dasquery.log',
1439  },
1440  steps['RECOD']])
1441 
1442 
1443 steps['COPYPASTE']={'-s':'NONE',
1444  '--conditions':'auto:run1_mc',
1445  '--output':'\'[{"t":"RAW","e":"ALL"}]\'',
1446  '--customise_commands':'"process.ALLRAWoutput.fastCloning=cms.untracked.bool(False)"'}
1447 
1448 #miniaod
1449 stepMiniAODDefaults = { '-s' : 'PAT',
1450  '--runUnscheduled': '',
1451  '-n' : '100'
1452  }
1453 stepMiniAODData = merge([{'--conditions' : 'auto:run1_data',
1454  '--data' : '',
1455  '--datatier' : 'MINIAOD',
1456  '--eventcontent' : 'MINIAOD'
1457  },stepMiniAODDefaults])
1458 stepMiniAODMC = merge([{'--conditions' : 'auto:run2_mc',
1459  '--mc' : '',
1460  '--datatier' : 'MINIAODSIM',
1461  '--eventcontent' : 'MINIAODSIM'
1462  },stepMiniAODDefaults])
1463 stepMiniAODMC50ns = merge([{'--conditions' : 'auto:run2_mc_50ns',
1464  '--mc' : '',
1465  '--datatier' : 'MINIAODSIM',
1466  '--eventcontent' : 'MINIAODSIM'
1467  },stepMiniAODDefaults])
1468 stepMiniAODMCFS = merge([{'--conditions' : 'auto:run2_mc',
1469  '--mc' : '',
1470  '--fast' : '',
1471  '--datatier' : 'MINIAODSIM',
1472  '--eventcontent' : 'MINIAODSIM'
1473  },stepMiniAODDefaults])
1474 stepMiniAODMCFS50ns = merge([{'--conditions' : 'auto:run2_mc_50ns',
1475  '--mc' : '',
1476  '--fast' : '',
1477  '--datatier' : 'MINIAODSIM',
1478  '--eventcontent' : 'MINIAODSIM'
1479  },stepMiniAODDefaults])
1480 
1481 steps['MINIAODDATA']=merge([{'--filein':'file:step3.root'},stepMiniAODData])
1482 steps['MINIAODMC']=merge([{'--filein':'file:step3.root'},stepMiniAODMC])
1483 steps['MINIAODMC50']=merge([{'--filein':'file:step3.root'},stepMiniAODMC50ns])
1484 steps['MINIAODMCFS']=merge([{'--filein':'file:step1.root'},stepMiniAODMCFS])
1485 steps['MINIAODMCFS50']=merge([{'--filein':'file:step1.root'},stepMiniAODMCFS50ns])
Definition: merge.py:1
def changeRefRelease
def identitySim
Production test: 13 TeV equivalents.
const T & max(const T &a, const T &b)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
list object
Definition: dbtoconf.py:77
#define update(a, b)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run