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