CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/Configuration/PyReleaseValidation/python/relval_steps.py

Go to the documentation of this file.
00001 
00002 
00003 class Matrix(dict):
00004     def __setitem__(self,key,value):
00005         if key in self:
00006             print "ERROR in Matrix"
00007             print "overwritting",key,"not allowed"
00008             import sys
00009             sys.exit(-9)
00010         else:
00011             self.update({float(key):WF(float(key),value)})
00012 
00013             
00014 #the class to collect all possible steps
00015 class Steps(dict):
00016     def __setitem__(self,key,value):
00017         if key in self:
00018             print "ERROR in Step"
00019             print "overwritting",key,"not allowed"
00020             import sys
00021             sys.exit(-9) 
00022         else:
00023             self.update({key:value})
00024             # make the python file named <step>.py
00025             #if not '--python' in value:                self[key].update({'--python':'%s.py'%(key,)})
00026 
00027     def overwrite(self,keypair):
00028         value=self[keypair[1]]
00029         print "overwritting step",keypair[0],"with",keypair[1],str(value)
00030         self.update({keypair[0]:value})
00031         
00032 class WF(list):
00033     def __init__(self,n,l):
00034         self.extend(l)
00035         self.num=n
00036         #the actual steps of this WF
00037         self.steps=[]
00038 
00039         
00040     def interpret(self,stepsDict):
00041         for s in self:
00042             steps.append(stepsDict[s])
00043     
00044 InputInfoNDefault=2000000    
00045 class InputInfo(object):
00046     def __init__(self,dataSet,label='',run=[],files=1000,events=InputInfoNDefault,split=8,location='CAF') :
00047         self.run = run
00048         self.files = files
00049         self.events = events
00050         self.location = location
00051         self.label = label
00052         self.dataSet = dataSet
00053         self.split=split
00054 
00055     def dbs(self):
00056         command='dbs search --noheader --query "find file where dataset like '+self.dataSet
00057         def requ(r):
00058             return 'run=%d'%(r,)
00059         if len(self.run)!=0:
00060             command+=' and ('+' or '.join(map(requ,self.run))+' )'
00061         command+='"'
00062         return command
00063     def __str__(self):
00064         return 'input from: %s with run: %s'%(self.dataSet,str(self.run))
00065     
00066 # merge dictionaries, with prioty on the [0] index
00067 def merge(dictlist,TELL=False):
00068     import copy
00069     last=len(dictlist)-1
00070     if TELL: print last,dictlist
00071     if last==0:
00072         # ONLY ONE ITEM LEFT
00073         return copy.copy(dictlist[0])
00074     else:
00075         reducedlist=dictlist[0:max(0,last-1)]
00076         if TELL: print reducedlist
00077         # make a copy of the last item
00078         d=copy.copy(dictlist[last])
00079         # update with the last but one item
00080         d.update(dictlist[last-1])
00081         # and recursively do the rest
00082         reducedlist.append(d)
00083         return merge(reducedlist,TELL)
00084 
00085 
00086 # step1 gensim
00087 step1Defaults = {'--relval'      : None, # need to be explicitly set
00088                  '-s'            : 'GEN,SIM',
00089                  '-n'            : 10,
00090                  '--conditions'  : 'auto:startup',
00091                  '--datatier'    : 'GEN-SIM',
00092                  '--eventcontent': 'RAWSIM',
00093                  }
00094 
00095 steps = Steps()
00096 
00097 #### Production test section ####
00098 steps['ProdMinBias']=merge([{'cfg':'MinBias_8TeV_cfi','--relval':'9000,300'},step1Defaults])
00099 steps['ProdTTbar']=merge([{'cfg':'TTbar_Tauola_8TeV_cfi','--relval':'9000,100'},step1Defaults])
00100 steps['ProdQCD_Pt_3000_3500']=merge([{'cfg':'QCD_Pt_3000_3500_8TeV_cfi','--relval':'9000,25'},step1Defaults])
00101 
00102 #steps['ProdMinBiasINPUT']={'INPUT':InputInfo(dataSet='/RelValProdMinBias/CMSSW_4_3_0_pre2-MC_42_V9-v1/GEN-SIM',label='prodmbrv',location='STD')}
00103 #steps['ProdTTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValProdTTbar/CMSSW_4_3_0_pre2-MC_42_V9-v1/GEN-SIM',label='prodttbrv',location='STD')}
00104 #steps['ProdQCD_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValProdQCD_Pt_3000_3500/CMSSW_4_3_0_pre2-MC_42_V9-v1/GEN-SIM',label='qcd335',location='STD')}
00105 
00106 
00107 
00108 #### data ####
00109 #list of run to harvest for 2010A: 144086,144085,144084,144083,144011,139790,139789,139788,139787,138937,138934,138924,138923
00110 #list of run to harvest for 2010B: 149442,149291,149181,149011,148822,147929,147115,146644
00111 Run2010ASk=[138937,138934,138924,138923,139790,139789,139788,139787,144086,144085,144084,144083,144011]
00112 Run2010BSk=[146644,147115,147929,148822,149011,149181,149182,149291,149294,149442]
00113 steps['MinimumBias2010A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2010A-valskim-v6/RAW-RECO',label='run2010A',location='STD',run=Run2010ASk)}
00114 steps['MinimumBias2010B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2010B-valskim-v2/RAW-RECO',label='run2010B',run=Run2010BSk)}
00115 steps['WZMuSkim2010A']={'INPUT':InputInfo(dataSet='/Mu/Run2010A-WZMu-Nov4Skim_v1/RAW-RECO',label='wzMu2010A',run=Run2010ASk)}
00116 steps['WZMuSkim2010B']={'INPUT':InputInfo(dataSet='/Mu/Run2010B-WZMu-Nov4Skim_v1/RAW-RECO',label='wzMu2010B',run=Run2010BSk)}
00117 steps['WZEGSkim2010A']={'INPUT':InputInfo(dataSet='/EG/Run2010A-WZEG-Nov4Skim_v1/RAW-RECO',label='wzEG2010A',run=Run2010ASk)}
00118 steps['WZEGSkim2010B']={'INPUT':InputInfo(dataSet='/Electron/Run2010B-WZEG-Nov4Skim_v1/RAW-RECO',label='wzEG2010B',run=Run2010BSk)}
00119 
00120 steps['RunCosmicsA']={'INPUT':InputInfo(dataSet='/Cosmics/Run2010A-v1/RAW',label='cos2010A',run=[142089],events=100000)}
00121 Run2010B=[149011]
00122 steps['RunMinBias2010B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2010B-RelValRawSkim-v1/RAW',label='mb2010B',run=Run2010B,events=100000)}
00123 steps['RunMu2010B']={'INPUT':InputInfo(dataSet='/Mu/Run2010B-RelValRawSkim-v1/RAW',label='mu2010B',run=Run2010B,events=100000)}
00124 steps['RunElectron2010B']={'INPUT':InputInfo(dataSet='/Electron/Run2010B-RelValRawSkim-v1/RAW',label='electron2010B',run=Run2010B,events=100000)}
00125 steps['RunPhoton2010B']={'INPUT':InputInfo(dataSet='/Photon/Run2010B-RelValRawSkim-v1/RAW',label='photon2010B',run=Run2010B,events=100000)}
00126 steps['RunJet2010B']={'INPUT':InputInfo(dataSet='/Jet/Run2010B-RelValRawSkim-v1/RAW',label='jet2010B',run=Run2010B,events=100000)}
00127 
00128 #list of run to harvest 2011A: 165121, 172802,
00129 Run2011ASk=[165121,172802]
00130 steps['ValSkim2011A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2011A-ValSkim-PromptSkim-v6/RAW-RECO',label='run2011A',location='STD',run=Run2011ASk)}
00131 steps['WMuSkim2011A']={'INPUT':InputInfo(dataSet='/SingleMu/Run2011A-WMu-PromptSkim-v6/RAW-RECO',label='wMu2011A',location='STD',run=Run2011ASk)}
00132 steps['WElSkim2011A']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2011A-WElectron-PromptSkim-v6/RAW-RECO',label='wEl2011A',location='STD',run=Run2011ASk)}
00133 steps['ZMuSkim2011A']={'INPUT':InputInfo(dataSet='/DoubleMu/Run2011A-ZMu-PromptSkim-v6/RAW-RECO',label='zMu2011A',location='STD',run=Run2011ASk)}
00134 steps['ZElSkim2011A']={'INPUT':InputInfo(dataSet='/DoubleElectron/Run2011A-ZElectron-PromptSkim-v6/RAW-RECO',label='zEl2011A',location='STD',run=Run2011ASk)}
00135 steps['HighMet2011A']={'INPUT':InputInfo(dataSet='/Jet/Run2011A-HighMET-PromptSkim-v6/RAW-RECO',label='hMet2011A',location='STD',run=Run2011ASk)}
00136 
00137 steps['RunCosmics2011A']={'INPUT':InputInfo(dataSet='/Cosmics/Run2011A-v1/RAW',label='cos2011A',run=[160960],events=100000,location='STD')}
00138 Run2011A=[165121]
00139 steps['RunMinBias2011A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2011A-v1/RAW',label='mb2011A',run=Run2011A,events=100000,location='STD')}
00140 steps['RunMu2011A']={'INPUT':InputInfo(dataSet='/SingleMu/Run2011A-v1/RAW',label='mu2011A',run=Run2011A,events=100000)}
00141 steps['RunElectron2011A']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2011A-v1/RAW',label='electron2011A',run=Run2011A,events=100000)}
00142 steps['RunPhoton2011A']={'INPUT':InputInfo(dataSet='/Photon/Run2011A-v1/RAW',label='photon2011A',run=Run2011A,events=100000)}
00143 steps['RunJet2011A']={'INPUT':InputInfo(dataSet='/Jet/Run2011A-v1/RAW',label='jet2011A',run=Run2011A,events=100000)}
00144 
00145 Run2011B=[177719]
00146 Run2011BSk=[177719,177790,177096,175874]
00147 steps['RunMinBias2011B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2011B-v1/RAW',label='mb2011B',run=Run2011B,events=100000,location='STD')}
00148 steps['RunMu2011B']={'INPUT':InputInfo(dataSet='/SingleMu/Run2011B-v1/RAW',label='mu2011B',run=Run2011B,events=100000)}
00149 steps['RunElectron2011B']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2011B-v1/RAW',label='electron2011B',run=Run2011B,events=100000)}
00150 steps['RunPhoton2011B']={'INPUT':InputInfo(dataSet='/Photon/Run2011B-v1/RAW',label='photon2011B',run=Run2011B,events=100000)}
00151 steps['RunJet2011B']={'INPUT':InputInfo(dataSet='/Jet/Run2011B-v1/RAW',label='jet2011B',run=Run2011B,events=100000)}
00152 
00153 steps['ValSkim2011B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2011B-ValSkim-PromptSkim-v1/RAW-RECO',label='run2011B',location='STD',run=Run2011BSk)}
00154 steps['WMuSkim2011B']={'INPUT':InputInfo(dataSet='/SingleMu/Run2011B-WMu-PromptSkim-v1/RAW-RECO',label='wMu2011B',location='STD',run=Run2011BSk)}
00155 steps['WElSkim2011B']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2011B-WElectron-PromptSkim-v1/RAW-RECO',label='wEl2011B',location='STD',run=Run2011BSk)}
00156 steps['ZMuSkim2011B']={'INPUT':InputInfo(dataSet='/DoubleMu/Run2011B-ZMu-PromptSkim-v1/RAW-RECO',label='zMu2011B',location='STD',run=Run2011BSk)}
00157 steps['ZElSkim2011B']={'INPUT':InputInfo(dataSet='/DoubleElectron/Run2011B-ZElectron-PromptSkim-v1/RAW-RECO',label='zEl2011B',run=Run2011BSk)}
00158 steps['HighMet2011B']={'INPUT':InputInfo(dataSet='/Jet/Run2011B-HighMET-PromptSkim-v1/RAW-RECO',label='hMet2011B',run=Run2011BSk)}
00159 
00160 steps['RunHI2010']={'INPUT':InputInfo(dataSet='/HIAllPhysics/HIRun2010-v1/RAW',label='hi2010',run=[152698],events=10000,location='STD')}
00161 steps['RunHI2011']={'INPUT':InputInfo(dataSet='/HIAllPhysics/HIRun2011A-v1/RAW',label='hi2011',run=[174773],events=10000,location='STD')}
00162 
00163 
00164 Run2012A=[191226]
00165 steps['RunMinBias2012A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2012A-v1/RAW',label='mb2012A',run=Run2012A, events=100000,location='STD')}
00166 steps['RunTau2012A']={'INPUT':InputInfo(dataSet='/Tau/Run2012A-v1/RAW',label='tau2012A', run=Run2012A, events=100000,location='STD')}
00167 steps['RunMET2012A']={'INPUT':InputInfo(dataSet='/MET/Run2012A-v1/RAW',label='met2012A', run=Run2012A, events=100000,location='STD')}
00168 steps['RunMu2012A']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012A-v1/RAW',label='mu2012A', run=Run2012A, events=100000,location='STD')}
00169 steps['RunElectron2012A']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012A-v1/RAW',label='electron2012A', run=Run2012A, events=100000,location='STD')}
00170 steps['RunJet2012A']={'INPUT':InputInfo(dataSet='/Jet/Run2012A-v1/RAW',label='jet2012A', run=Run2012A, events=100000,location='STD')}
00171 
00172 
00173 Run2012B=[194533]
00174 Run2012Bsk=Run2012B+[194912,195016]
00175 steps['RunMinBias2012B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2012B-v1/RAW',label='mb2012B',run=Run2012B, events=100000,location='STD')}
00176 steps['RunMu2012B']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012B-v1/RAW',label='mu2012B',location='STD',run=Run2012B)}
00177 steps['RunPhoton2012B']={'INPUT':InputInfo(dataSet='/SinglePhoton/Run2012B-v1/RAW',label='photon2012B',location='STD',run=Run2012B)}
00178 steps['RunEl2012B']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012B-v1/RAW',label='electron2012B',location='STD',run=Run2012B)}
00179 steps['RunJet2012B']={'INPUT':InputInfo(dataSet='/JetHT/Run2012B-v1/RAW',label='jet2012B',location='STD',run=Run2012B)}
00180 steps['ZMuSkim2012B']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012B-ZMu-PromptSkim-v1/RAW-RECO',label='zMu2012B',location='CAF',run=Run2012Bsk)}
00181 steps['WElSkim2012B']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012B-WElectron-PromptSkim-v1/USER',label='wEl2012B',location='STD',run=Run2012Bsk)}
00182 steps['ZElSkim2012B']={'INPUT':InputInfo(dataSet='/DoubleElectron/Run2012B-ZElectron-PromptSkim-v1/RAW-RECO',label='zEl2012B',location='STD',run=Run2012Bsk)}
00183 
00184 
00185 #### Standard release validation samples ####
00186 
00187 stCond={'--conditions':'auto:startup'}
00188 K9by25={'--relval':'9000,25'}
00189 K9by50={'--relval':'9000,50'}
00190 K9by500={'--relval':'9000,500'}
00191 K9by100={'--relval':'9000,100'}
00192 K50by100={'--relval':'50000,100'}
00193 K9by250={'--relval':'9000,250'}
00194 K25by250={'--relval':'25000,250'}
00195 
00196 def gen(fragment,howMuch):
00197     global step1Defaults
00198     return merge([{'cfg':fragment},howMuch,step1Defaults])
00199 
00200 steps['MinBias']=gen('MinBias_8TeV_cfi',K9by100)
00201 steps['QCD_Pt_3000_3500']=gen('QCD_Pt_3000_3500_8TeV_cfi',K9by25)
00202 steps['QCD_Pt_80_120']=gen('QCD_Pt_80_120_8TeV_cfi',K9by50)
00203 steps['SingleElectronPt10']=gen('SingleElectronPt10_cfi',K9by250)
00204 steps['SingleElectronPt1000']=gen('SingleElectronPt1000_cfi',K9by250)
00205 steps['SingleElectronPt35']=gen('SingleElectronPt35_cfi',K9by250)
00206 steps['SingleGammaPt10']=gen('SingleGammaPt10_cfi',K9by100)
00207 steps['SingleGammaPt35']=gen('SingleGammaPt35_cfi',K9by100)
00208 steps['SingleMuPt10']=gen('SingleMuPt10_cfi',K25by250)
00209 steps['SingleMuPt100']=gen('SingleMuPt100_cfi',K9by250)
00210 steps['SingleMuPt1000']=gen('SingleMuPt1000_cfi',K9by100)
00211 steps['TTbar']=gen('TTbar_Tauola_8TeV_cfi',K9by50)
00212 steps['TTbarLepton']=gen('TTbarLepton_Tauola_8TeV_cfi',K9by100)
00213 steps['ZEE']=gen('ZEE_8TeV_cfi',K9by100)
00214 steps['Wjet_Pt_80_120']=gen('Wjet_Pt_80_120_8TeV_cfi',K9by100)
00215 steps['Wjet_Pt_3000_3500']=gen('Wjet_Pt_3000_3500_8TeV_cfi',K9by100)
00216 steps['LM1_sfts']=gen('LM1_sfts_8TeV_cfi',K9by100)
00217 steps['QCD_FlatPt_15_3000']=gen('QCDForPF_8TeV_cfi',K9by100)
00218 steps['QCD_FlatPt_15_3000HS']=gen('QCDForPF_8TeV_cfi',K50by100)
00219 
00220 baseDataSetRelease=[
00221     'CMSSW_5_2_1-START52_V4-v1',
00222     'CMSSW_5_2_1-STARTHI52_V4-v1',
00223     'CMSSW_5_2_1-PU_START52_V4-v1'
00224     ]
00225 
00226 steps['MinBiasINPUT']={'INPUT':InputInfo(dataSet='/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00227 steps['QCD_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00228 steps['QCD_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00229 steps['SingleElectronPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00230 steps['SingleElectronPt1000INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt1000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00231 steps['SingleElectronPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt35/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00232 steps['SingleGammaPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00233 steps['SingleGammaPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt35/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00234 steps['SingleMuPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00235 steps['SingleMuPt100INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt100/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00236 steps['SingleMuPt1000INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt1000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00237 steps['TTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00238 steps['TTbarLeptonINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbarLepton/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00239 steps['OldTTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValProdTTbar/CMSSW_5_0_0_pre6-START50_V5-v1/GEN-SIM-RECO',location='STD')}
00240 steps['OldGenSimINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/CMSSW_4_4_2-START44_V7-v1/GEN-SIM-DIGI-RAW-HLTDEBUG',location='STD')}
00241 steps['Wjet_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00242 steps['Wjet_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00243 steps['LM1_sftsINPUT']={'INPUT':InputInfo(dataSet='/RelValLM1_sfts/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00244 steps['QCD_FlatPt_15_3000INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_FlatPt_15_3000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00245 
00246 steps['QCD_FlatPt_15_3000HSINPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_FlatPt_15_3000/CMSSW_5_2_2-PU_START52_V4_special_120326-v1/GEN-SIM',location='STD')}
00247 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')}
00248 steps['TTbar__DIGIPU1INPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/CMSSW_5_2_2-PU_START52_V4_special_120326-v1/GEN-SIM-DIGI-RAW-HLTDEBUG',location='STD')}
00249 
00250 ## high stat step1
00251 K700by280={'--relval': '70000,280'}
00252 K250by100={'--relval': '25000,100'}
00253 K3250000by1300000={'--relval': '325000000,1300000'}
00254 K250by250={'--relval': '25000,250'}
00255 K110000by45000={'--relval': '11000000,45000'}
00256 K562by225={'--relval': '56250,225'}
00257 
00258 ecalHcal={
00259     '-s':'GEN,SIM,DIGI,DIGI2RAW,RAW2DIGI,L1Reco,RECO',
00260     '--datatier':'GEN-SIM-DIGI-RAW-RECO',
00261     #'--geometry':'ECALHCAL',
00262     '--eventcontent':'FEVTDEBUG',
00263     '--customise':'Validation/Configuration/ECALHCAL.customise',
00264     '--beamspot':'NoSmear'}
00265 steps['SingleElectronE120EHCAL']=merge([{'cfg':'SingleElectronE120EHCAL_cfi'},ecalHcal,K25by250,step1Defaults])
00266 steps['SinglePiE50HCAL']=merge([{'cfg':'SinglePiE50HCAL_cfi'},ecalHcal,K25by250,step1Defaults])
00267 
00268 steps['MinBiasHS']=gen('MinBias_8TeV_cfi',K25by250)
00269 steps['InclusiveppMuX']=gen('InclusiveppMuX_8TeV_cfi',K110000by45000)
00270 steps['SingleElectronFlatPt5To100']=gen('SingleElectronFlatPt5To100_cfi',K250by250)
00271 steps['SinglePiPt1']=gen('SinglePiPt1_cfi',K250by250)
00272 steps['SingleMuPt1']=gen('SingleMuPt1_cfi',K250by250)
00273 steps['ZPrime5000Dijet']=gen('ZPrime5000JJ_8TeV_cfi',K250by100)
00274 steps['SinglePi0E10']=gen('SinglePi0E10_cfi',K250by100)
00275 steps['SinglePiPt10']=gen('SinglePiPt10_cfi',K250by250)
00276 steps['SingleGammaFlatPt10To100']=gen('SingleGammaFlatPt10To100_cfi',K250by250)
00277 steps['SingleTauPt50Pythia']=gen('SingleTaupt_50_cfi',K250by100)
00278 steps['SinglePiPt100']=gen('SinglePiPt100_cfi',K250by250)
00279 
00280 
00281 def genS(fragment,howMuch):
00282     global step1Defaults,stCond
00283     return merge([{'cfg':fragment},stCond,howMuch,step1Defaults])
00284 
00285 ##steps['MinBias2']=genS('MinBias_8TeV_cfi',K9by100)
00286 steps['Higgs200ChargedTaus']=genS('H200ChargedTaus_Tauola_8TeV_cfi',K9by100)
00287 ##steps['QCD_Pt_3000_3500_2']=genS('QCD_Pt_3000_3500_8TeV_cfi',K9by25)
00288 ##steps['QCD_Pt_80_120_2']=genS('QCD_Pt_80_120_8TeV_cfi',K9by50)
00289 steps['JpsiMM']=genS('JpsiMM_8TeV_cfi',{'--relval':'65250,725'})
00290 ##steps['TTbar2']=genS('TTbar_Tauola_8TeV_cfi',K9by50)
00291 steps['WE']=genS('WE_8TeV_cfi',K9by100)
00292 steps['WM']=genS('WM_8TeV_cfi',K9by100)
00293 ##steps['ZEE2']=genS('ZEE_8TeV_cfi',K9by100)
00294 steps['ZMM']=genS('ZMM_8TeV_cfi',{'--relval':'18000,200'})
00295 steps['ZTT']=genS('ZTT_Tauola_All_hadronic_8TeV_cfi',K9by100)
00296 steps['H130GGgluonfusion']=genS('H130GGgluonfusion_8TeV_cfi',K9by100)
00297 steps['PhotonJets_Pt_10']=genS('PhotonJet_Pt_10_8TeV_cfi',K9by100)
00298 steps['QQH1352T_Tauola']=genS('QQH1352T_Tauola_8TeV_cfi',K9by100)
00299 steps['ZmumuJets_Pt_20_300']=gen('ZmumuJets_Pt_20_300_GEN_8TeV_cfg',K250by100)
00300 
00301 steps['MinBias2INPUT']={'INPUT':InputInfo(dataSet='/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00302 steps['Higgs200ChargedTausINPUT']={'INPUT':InputInfo(dataSet='/RelValHiggs200ChargedTaus/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00303 steps['QCD_Pt_3000_3500_2INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00304 steps['QCD_Pt_80_120_2INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00305 steps['JpsiMMINPUT']={'INPUT':InputInfo(dataSet='/RelValJpsiMM/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00306 steps['TTbar2INPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00307 steps['WEINPUT']={'INPUT':InputInfo(dataSet='/RelValWE/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00308 steps['WMINPUT']={'INPUT':InputInfo(dataSet='/RelValWM/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00309 steps['ZEEINPUT']={'INPUT':InputInfo(dataSet='/RelValZEE/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00310 steps['ZMMINPUT']={'INPUT':InputInfo(dataSet='/RelValZMM/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00311 steps['ZTTINPUT']={'INPUT':InputInfo(dataSet='/RelValZTT/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00312 steps['H130GGgluonfusionINPUT']={'INPUT':InputInfo(dataSet='/RelValH130GGgluonfusion/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00313 steps['PhotonJets_Pt_10INPUT']={'INPUT':InputInfo(dataSet='/RelValPhotonJets_Pt_10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00314 steps['QQH1352T_TauolaINPUT']={'INPUT':InputInfo(dataSet='/RelValQQH1352T_Tauola/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00315 
00316 steps['ZmumuJets_Pt_20_300INPUT']={'INPUT':InputInfo(dataSet='/RelValZmumuJets_Pt_20_300/%s/GEN-SIM'%(baseDataSetRelease[2],),location='STD')}
00317 
00318 steps['Cosmics']=merge([{'cfg':'UndergroundCosmicMu_cfi.py','--relval':'666000,3000','--scenario':'cosmics'},step1Defaults])
00319 steps['BeamHalo']=merge([{'cfg':'BeamHalo_cfi.py','--scenario':'cosmics'},K9by100,step1Defaults])
00320 
00321 steps['CosmicsINPUT']={'INPUT':InputInfo(dataSet='/RelValCosmics/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00322 steps['BeamHaloINPUT']={'INPUT':InputInfo(dataSet='/RelValBeamHalo/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00323 
00324 steps['QCD_Pt_50_80']=genS('QCD_Pt_50_80_8TeV_cfi',K250by100)
00325 steps['QCD_Pt_15_20']=genS('QCD_Pt_15_20_8TeV_cfi',K250by100)
00326 steps['ZTTHS']=merge([K250by100,steps['ZTT']])
00327 steps['QQH120Inv']=genS('QQH120Inv_8TeV_cfi',K250by100)
00328 steps['TTbar2HS']=merge([K250by100,steps['TTbar']])
00329 steps['JpsiMM_Pt_20_inf']=genS('JpsiMM_Pt_20_inf_8TeV_cfi',K700by280)
00330 steps['QCD_Pt_120_170']=genS('QCD_Pt_120_170_8TeV_cfi',K250by100)
00331 steps['H165WW2L']=genS('H165WW2L_Tauola_8TeV_cfi',K250by100)
00332 steps['UpsMM']=genS('UpsMM_8TeV_cfi',K562by225)
00333 steps['RSGrav']=genS('RS750_quarks_and_leptons_8TeV_cff',K250by100)
00334 steps['QCD_Pt_80_120_2HS']=merge([K250by100,steps['QCD_Pt_80_120']])
00335 steps['bJpsiX']=genS('bJpsiX_8TeV_cfi',K3250000by1300000)
00336 steps['QCD_Pt_30_50']=genS('QCD_Pt_30_50_8TeV_cfi',K250by100)
00337 steps['H200ZZ4L']=genS('H200ZZ4L_Tauola_8TeV_cfi',K250by100)
00338 steps['LM9p']=genS('LM9p_8TeV_cff',K250by100)
00339 steps['QCD_Pt_20_30']=genS('QCD_Pt_20_30_8TeV_cfi',K250by100)
00340 steps['QCD_Pt_170_230']=genS('QCD_Pt_170_230_8TeV_cfi',K250by100)
00341 
00342 ## heavy ions tests
00343 U500by5={'--relval': '500,5'}
00344 U80by2={'--relval': '80,2'}
00345 hiDefaults={'--conditions':'auto:starthi',
00346            '--scenario':'HeavyIons'}
00347 
00348 steps['HydjetQ_MinBias_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_MinBias_2760GeV_cfi',U500by5)])
00349 steps['HydjetQ_MinBias_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_MinBias_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[1],),location='STD')}
00350 steps['HydjetQ_B0_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_B0_2760GeV_cfi',U80by2)])
00351 steps['HydjetQ_B0_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B0_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[1],),location='STD')}
00352 steps['HydjetQ_B8_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_B8_2760GeV_cfi',U80by2)])
00353 steps['HydjetQ_B8_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B8_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[1],),location='CAF')}
00354 
00355 
00356 
00357 def changeRefRelease(step1s,listOfPairs):
00358     for s in step1s:
00359         if ('INPUT' in step1s[s]):
00360             oldD=steps[s]['INPUT'].dataSet
00361             for (ref,newRef) in listOfPairs:
00362                 if  ref in oldD:
00363                     steps[s]['INPUT'].dataSet=oldD.replace(ref,newRef)
00364                                         
00365 def addForAll(steps,d):
00366     for s in steps:
00367         steps[s].update(d)
00368 
00369 
00370 
00371 #### fastsim section ####
00372 ##no forseen to do things in two steps GEN-SIM then FASTIM->end: maybe later
00373 step1FastDefaults =merge([{'-s':'GEN,FASTSIM,HLT:7E33v2,VALIDATION',
00374                            '--eventcontent':'FEVTDEBUGHLT,DQM',
00375                            '--datatier':'GEN-SIM-DIGI-RECO,DQM',
00376                            '--relval':'27000,3000'},
00377                           step1Defaults])
00378 K100by500={'--relval':'100000,500'}
00379 K100byK2={'--relval':'100000,2000'}
00380 steps['TTbarFS']=merge([{'cfg':'TTbar_Tauola_8TeV_cfi'},K100byK2,step1FastDefaults])
00381 steps['SingleMuPt1FS']=merge([{'cfg':'SingleMuPt1_cfi'},step1FastDefaults])
00382 steps['SingleMuPt10FS']=merge([{'cfg':'SingleMuPt10_cfi'},step1FastDefaults])
00383 steps['SingleMuPt100FS']=merge([{'cfg':'SingleMuPt100_cfi'},step1FastDefaults])
00384 steps['SinglePiPt1FS']=merge([{'cfg':'SinglePiPt1_cfi'},step1FastDefaults])
00385 steps['SinglePiPt10FS']=merge([{'cfg':'SinglePiPt10_cfi'},step1FastDefaults])
00386 steps['SinglePiPt100FS']=merge([{'cfg':'SinglePiPt100_cfi'},step1FastDefaults])
00387 steps['ZEEFS']=merge([{'cfg':'ZEE_8TeV_cfi'},K100byK2,step1FastDefaults])
00388 steps['ZTTFS']=merge([{'cfg':'ZTT_Tauola_OneLepton_OtherHadrons_8TeV_cfi'},K100byK2,step1FastDefaults])
00389 steps['QCDFlatPt153000FS']=merge([{'cfg':'QCDForPF_8TeV_cfi'},step1FastDefaults])
00390 steps['QCD_Pt_80_120FS']=merge([{'cfg':'QCD_Pt_80_120_8TeV_cfi'},K100by500,stCond,step1FastDefaults])
00391 steps['QCD_Pt_3000_3500FS']=merge([{'cfg':'QCD_Pt_3000_3500_8TeV_cfi'},K100by500,stCond,step1FastDefaults])
00392 steps['H130GGgluonfusionFS']=merge([{'cfg':'H130GGgluonfusion_8TeV_cfi'},step1FastDefaults])
00393 steps['SingleGammaFlatPt10To10FS']=merge([{'cfg':'SingleGammaFlatPt10To100_cfi'},K100by500,step1FastDefaults])
00394 
00395 #### generator test section ####
00396 step1GenDefaults=merge([{'-s':'GEN,VALIDATION:genvalid',
00397                          '--relval':'1000000,20000',
00398                          '--eventcontent':'RAWSIM',
00399                          '--datatier':'GEN'},
00400                         step1Defaults])
00401 def genvalid(fragment,d,suffix='',fi=''):
00402     import copy
00403     c=copy.copy(d)
00404     if suffix:
00405         c['-s']=c['-s'].replace('genvalid','genvalid_'+suffix)
00406     if fi:
00407         c['--filein']='lhe:%d'%(fi,)
00408     c['cfg']=fragment
00409     return c
00410     
00411 steps['QCD_Pt-30_8TeV_herwigpp']=genvalid('QCD_Pt_30_8TeV_herwigpp_cff',step1GenDefaults,'qcd')
00412 steps['DYToLL_M-50_TuneZ2star_8TeV_pythia6-tauola']=genvalid('DYToLL_M_50_TuneZ2star_8TeV_pythia6_tauola_cff',step1GenDefaults,'dy')
00413 steps['QCD_Pt-30_TuneZ2star_8TeV_pythia6']=genvalid('QCD_Pt_30_TuneZ2star_8TeV_pythia6_cff',step1GenDefaults,'qcd')
00414 steps['QCD_Pt-30_8TeV_pythia8']=genvalid('QCD_Pt_30_8TeV_pythia8_cff',step1GenDefaults,'qcd')
00415 steps['GluGluTo2Jets_M-100_8TeV_exhume']=genvalid('GluGluTo2Jets_M_100_8TeV_exhume_cff',step1GenDefaults,'qcd')
00416 steps['TT_TuneZ2star_8TeV_pythia6-evtgen']=genvalid('TT_TuneZ2star_8TeV_pythia6_evtgen_cff',step1GenDefaults)
00417 steps['MinBias_TuneZ2star_8TeV_pythia6']=genvalid('MinBias_TuneZ2star_8TeV_pythia6_cff',step1GenDefaults,'qcd')
00418 steps['WToLNu_TuneZ2star_8TeV_pythia6-tauola']=genvalid('WToLNu_TuneZ2star_8TeV_pythia6_tauola_cff',step1GenDefaults,'w')
00419 steps['QCD_Pt-30_8TeV_herwig6']=genvalid('QCD_Pt_30_8TeV_herwig6_cff',step1GenDefaults,'qcd')
00420 steps['MinBias_8TeV_pythia8']=genvalid('MinBias_8TeV_pythia8_cff',step1GenDefaults,'qcd')
00421 
00422 
00423 steps['QCD_Ht-100To250_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',5475)
00424 steps['QCD_Ht-250To500_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',5476)
00425 steps['QCD_Ht-500To1000_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',5481)
00426 steps['TTJets_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'',5502)
00427 steps['WJetsLNu_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'w',5607)
00428 steps['ZJetsLNu_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'dy',5591)
00429 steps['ZJetsLNu_Tune4C_8TeV_madgraph-pythia8']=genvalid('Hadronizer_MgmMatchTune4C_8TeV_madgraph_pythia8_cff',step1GenDefaults,'dy',5591)
00430 
00431 PU={'-n':10,'--pileup':'default','--pileup_input':'dbs:/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],)}
00432 PUFS={'--pileup':'default'}
00433 PUFS2={'--pileup':'mix_2012_Startup_inTimeOnly'}
00434 steps['TTbarFSPU']=merge([PUFS,steps['TTbarFS']])
00435 steps['TTbarFSPU2']=merge([PUFS2,steps['TTbarFS']])
00436 ##########################
00437 
00438 
00439 
00440 # step2 
00441 step2Defaults = { 
00442                   '-s'            : 'DIGI,L1,DIGI2RAW,HLT:7E33v2,RAW2DIGI,L1Reco',
00443                   '--datatier'    : 'GEN-SIM-DIGI-RAW-HLTDEBUG',
00444                   '--eventcontent': 'FEVTDEBUGHLT',
00445                   '--conditions'  : 'auto:startup',
00446                   }
00447 
00448 
00449 steps['DIGIPROD1']=merge([{'--eventcontent':'RAWSIM','--datatier':'GEN-SIM-RAW'},step2Defaults])
00450 steps['DIGI']=merge([step2Defaults])
00451 #steps['DIGI2']=merge([stCond,step2Defaults])
00452 steps['DIGICOS']=merge([{'--scenario':'cosmics','--eventcontent':'FEVTDEBUG','--datatier':'GEN-SIM-DIGI-RAW'},stCond,step2Defaults])
00453 
00454 steps['DIGIPU1']=merge([PU,step2Defaults])
00455 steps['REDIGIPU']=merge([{'-s':'reGEN,reDIGI,L1,DIGI2RAW,HLT:7E33v2,RAW2DIGI,L1Reco'},steps['DIGIPU1']])
00456 
00457 
00458 steps['RESIM']=merge([{'-s':'reGEN,reSIM','-n':10},steps['DIGI']])
00459 steps['RESIMDIGI']=merge([{'-s':'reGEN,reSIM,DIGI,L1,DIGI2RAW,HLT:7E33v2,RAW2DIGI,L1Reco','-n':10,'--restoreRNDSeeds':'','--process':'HLT'},steps['DIGI']])
00460 
00461     
00462 steps['DIGIHI']=merge([{'--conditions':'auto:starthi_HIon', '-s':'DIGI,L1,DIGI2RAW,HLT:HIon,RAW2DIGI,L1Reco', '--inputCommands':'"keep *","drop *_simEcalPreshowerDigis_*_*"', '-n':10}, hiDefaults, step2Defaults])
00463 
00464 #add this line when testing from an input file that is not strictly GEN-SIM
00465 #addForAll(step2,{'--process':'DIGI'})
00466 
00467 dataReco={'--conditions':'auto:com10',
00468           '-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBias,DQM',
00469           '--datatier':'RECO,DQMROOT',
00470           '--eventcontent':'RECO,DQMROOT',
00471           '--data':'',
00472           '--process':'reRECO',
00473           '--scenario':'pp',
00474           }
00475 
00476 steps['HLTD']=merge([{'--process':'reHLT',
00477                       '-s':'L1REPACK,HLT:7E33v2',
00478                       '--condition':'auto:hltonline_7E33v2',
00479                       '--data':'',
00480                       '--output':'\'[{"e":"RAW","t":"RAW","o":["drop FEDRawDataCollection_rawDataCollector__LHC"]}]\'',
00481                       },])
00482 steps['RECOD']=merge([{'--scenario':'pp',},dataReco])
00483 steps['RECOSKIMALCA']=merge([{'--inputCommands':'"keep *","drop *_*_*_RECO"'
00484                               },steps['RECOD']])
00485 steps['RECOSKIM']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,DQM',
00486                           },steps['RECOSKIMALCA']])
00487 
00488 steps['REPACKHID']=merge([{'--scenario':'HeavyIons',
00489                          '-s':'RAW2DIGI,REPACK',
00490                          '--datatier':'RAW',
00491                          '--eventcontent':'REPACKRAW'},
00492                         steps['RECOD']])
00493 steps['RECOHID10']=merge([{'--scenario':'HeavyIons',
00494                          '-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBiasHI+HcalCalMinBias,DQM',
00495                          '--datatier':'RECO,DQMROOT',
00496                          '--eventcontent':'RECO,DQMROOT'},
00497                         steps['RECOD']])
00498 steps['RECOHID11']=merge([{'--repacked':''},
00499                           steps['RECOHID10']])
00500 steps['RECOHID10']['-s']+=',REPACK'
00501 steps['RECOHID10']['--datatier']+=',RAW'
00502 steps['RECOHID10']['--eventcontent']+=',REPACKRAW'
00503 
00504 steps['TIER0']=merge([{'--customise':'Configuration/DataProcessing/RecoTLR.customisePrompt',
00505                        '-s':'RAW2DIGI,L1Reco,RECO,ALCAPRODUCER:@allForPrompt,DQM,ENDJOB',
00506                        '--datatier':'RECO,AOD,ALCARECO,DQMROOT',
00507                        '--eventcontent':'RECO,AOD,ALCARECO,DQMROOT',
00508                        '--process':'RECO'
00509                        },dataReco])
00510 steps['TIER0EXP']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCAPRODUCER:@allForExpress,DQM,ENDJOB',
00511                           '--datatier':'ALCARECO,DQM',
00512                           '--eventcontent':'ALCARECO,DQM',
00513                           '--customise':'Configuration/DataProcessing/RecoTLR.customiseExpress',
00514                           },steps['TIER0']])
00515 
00516 steps['RECOCOSD']=merge([{'--scenario':'cosmics',
00517                           '-s':'RAW2DIGI,L1Reco,RECO,DQM,ALCA:MuAlCalIsolatedMu+DtCalib',
00518                           '--customise':'Configuration/DataProcessing/RecoTLR.customiseCosmicData'
00519                           },dataReco])
00520 
00521 step2HImixDefaults=merge([{'-n':'10',
00522                            '--himix':'',
00523                            '--filein':'file.root',
00524                            '--process':'HISIGNAL'
00525                            },hiDefaults,step1Defaults])
00526 steps['Pyquen_GammaJet_pt20_2760GeV']=merge([{'cfg':'Pyquen_GammaJet_pt20_2760GeV_cfi'},step2HImixDefaults])
00527 steps['Pyquen_DiJet_pt80to120_2760GeV']=merge([{'cfg':'Pyquen_DiJet_pt80to120_2760GeV_cfi'},step2HImixDefaults])
00528 steps['Pyquen_ZeemumuJets_pt10_2760GeV']=merge([{'cfg':'Pyquen_ZeemumuJets_pt10_2760GeV_cfi'},step2HImixDefaults])
00529 
00530 # step3 
00531 step3Defaults = {
00532                   '-s'            : 'RAW2DIGI,L1Reco,RECO,VALIDATION,DQM',
00533                   '--conditions'  : 'auto:startup',
00534                   '--no_exec'     : '',
00535                   '--datatier'    : 'GEN-SIM-RECO,DQM',
00536                   '--eventcontent': 'RECOSIM,DQM'
00537                   }
00538 
00539 steps['DIGIPU']=merge([{'--process':'REDIGI'},steps['DIGIPU1']])
00540 
00541 steps['RECODst3']=merge([{'--hltProcess':'reHLT'},steps['RECOD']])
00542 steps['RECO']=merge([step3Defaults])
00543 steps['RECODBG']=merge([{'--eventcontent':'RECODEBUG,DQM'},steps['RECO']])
00544 steps['RECOPROD1']=merge([{ '-s' : 'RAW2DIGI,L1Reco,RECO', '--datatier' : 'GEN-SIM-RECO,AODSIM', '--eventcontent' : 'RECOSIM,AODSIM'},step3Defaults])
00545 steps['RECOCOS']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCA:MuAlCalIsolatedMu,DQM','--scenario':'cosmics'},stCond,step3Defaults])
00546 steps['RECOMIN']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiStripCalMinBias+EcalCalPhiSym+EcalCalPi0Calib+EcalCalEtaCalib,VALIDATION,DQM'},stCond,step3Defaults])
00547 steps['RECODDQM']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,DQM:@common+@muon+@hcal+@jetmet+@ecal'},steps['RECOD']])
00548 
00549 steps['RECOPU1']=merge([PU,steps['RECO']])
00550 steps['RECOPUDBG']=merge([{'--eventcontent':'RECODEBUG,DQM'},steps['RECOPU1']])
00551 steps['RERECOPU1']=merge([{'--hltProcess':'REDIGI'},steps['RECOPU1']])
00552 
00553 
00554 steps['RECOHI']=merge([hiDefaults,step3Defaults])
00555 steps['DIGIHISt3']=steps['DIGIHI']
00556 
00557 steps['RECOHID11St3']=merge([{
00558                               '--process':'ZStoRECO'},
00559                              steps['RECOHID11']])
00560 steps['RECOHIR10D11']=merge([{'--filein':'file:step2_inREPACKRAW.root',
00561                               '--filtername':'reRECO'},
00562                              steps['RECOHID11St3']])
00563 
00564 #add this line when testing from an input file that is not strictly GEN-SIM
00565 #addForAll(step3,{'--hltProcess':'DIGI'})
00566 
00567 steps['ALCACOSD']={'--conditions':'auto:com10',
00568                    '--datatier':'ALCARECO',
00569                    '--eventcontent':'ALCARECO',
00570                    '--scenario':'cosmics',
00571                    '-s':'ALCA:TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DQM'
00572                    }
00573 steps['ALCAPROMPT']={'-s':'ALCA:PromptCalibProd',
00574                      '--filein':'file:TkAlMinBias.root',
00575                      '--conditions':'auto:com10',
00576                      '--datatier':'ALCARECO',
00577                      '--eventcontent':'ALCARECO'}
00578 steps['ALCAEXP']={'-s':'ALCA:PromptCalibProd',
00579                   '--conditions':'auto:com10',
00580                   '--datatier':'ALCARECO',
00581                   '--eventcontent':'ALCARECO'}
00582 
00583 # step4
00584 step4Defaults = { 
00585                   '-s'            : 'ALCA:TkAlMuonIsolated+TkAlMinBias+EcalCalElectron+HcalCalIsoTrk+MuAlOverlaps',
00586                   '-n'            : 1000,
00587                   '--conditions'  : 'auto:startup',
00588                   '--datatier'    : 'ALCARECO',
00589                   '--eventcontent': 'ALCARECO',
00590                   }
00591 
00592 steps['RERECOPU']=steps['RERECOPU1']
00593 
00594 steps['ALCATT']=merge([step4Defaults])
00595 steps['ALCAMIN']=merge([{'-s':'ALCA:TkAlMinBias'},stCond,step4Defaults])
00596 #steps['ALCAQCD']=merge([{'-s':'ALCA:HcalCalIsoTrk+HcalCalDijets'},stCond,step4Defaults])
00597 #steps['ALCAMU']=merge([{'-s':'ALCA:@Mu'},stCond,step4Defaults])
00598 steps['ALCACOS']=merge([{'-s':'ALCA:TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics'},stCond,step4Defaults])
00599 steps['ALCABH']=merge([{'-s':'ALCA:TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo'},stCond,step4Defaults])
00600 steps['ALCAELE']=merge([{'-s':'ALCA:EcalCalElectron'},stCond,step4Defaults])
00601 
00602 steps['ALCAHARVD']={'-s':'ALCAHARVEST:BeamSpotByRun+BeamSpotByLumi+SiStripQuality',
00603                     '--conditions':'auto:com10',
00604                     '--scenario':'pp',
00605                     '--data':'',
00606                     '--filein':'file:PromptCalibProd.root'}
00607 
00608 steps['RECOHISt4']=steps['RECOHI']
00609 
00610 steps['ALCANZS']=merge([{'-s':'ALCA:HcalCalMinBias','--mc':''},step4Defaults])
00611 steps['HARVGEN']={'-s':'HARVESTING:genHarvesting',
00612                   '--harvesting':'AtJobEnd',
00613                   '--conditions':'auto:startup',
00614                   '--mc':'',
00615                   '--filein':'file:step1.root'
00616                   }
00617 
00618 #data
00619 steps['HARVESTD']={'-s':'HARVESTING:dqmHarvesting',
00620                    '--conditions':'auto:com10',
00621                    '--filetype':'DQM',
00622                    '--data':'',
00623                    '--scenario':'pp'}
00624 
00625 steps['HARVESTDDQM']=merge([{'-s':'HARVESTING:@common+@muon+@hcal+@jetmet+@ecal'},steps['HARVESTD']])
00626 
00627 steps['HARVESTDfst2']=merge([{'--filein':'file:step2_inDQM.root'},steps['HARVESTD']])
00628 
00629 steps['HARVESTDC']={'-s':'HARVESTING:dqmHarvesting',
00630                    '--conditions':'auto:com10',
00631                    '--filetype':'DQM',
00632                    '--data':'',
00633                     '--filein':'file:step2_inDQM.root',
00634                    '--scenario':'cosmics'}
00635 steps['HARVESTDHI']={'-s':'HARVESTING:dqmHarvesting',
00636                    '--conditions':'auto:com10',
00637                    '--filetype':'DQM',
00638                    '--data':'',
00639                    '--scenario':'HeavyIons'}
00640 
00641 #MC
00642 steps['HARVEST']={'-s':'HARVESTING:validationHarvesting+dqmHarvesting',
00643                    '--conditions':'auto:startup',
00644                    '--mc':'',
00645                    '--scenario':'pp'}
00646 steps['HARVESTCOS']={'-s':'HARVESTING:dqmHarvesting',
00647                      '--conditions':'auto:startup',
00648                      '--mc':'',
00649                      '--filein':'file:step3_inDQM.root',
00650                    '--scenario':'cosmics'}
00651 steps['HARVESTFS']={'-s':'HARVESTING:validationHarvestingFS',
00652                    '--conditions':'auto:startup',
00653                    '--mc':'',
00654                    '--scenario':'pp'}
00655 steps['HARVESTHI']={'-s':'HARVESTING:validationHarvesting+dqmHarvesting',
00656                    '--conditions':'auto:startup',
00657                    '--mc':'',
00658                    '--scenario':'HeavyIons'}
00659 
00660 steps['ALCASPLIT']={'-s':'ALCAOUTPUT:@allForPrompt',
00661                     '--conditions':'auto:com10',
00662                     '--scenario':'pp',
00663                     '--data':'',
00664                     '--triggerResultsProcess':'RECO',
00665                     '--filein':'file:step2_inALCARECO.root'}
00666 
00667 steps['SKIMD']={'-s':'SKIM:all',
00668                 '--conditions':'auto:com10',
00669                 '--data':'',
00670                 '--scenario':'pp',
00671                 '--filein':'file:step2.root',
00672                 '--secondfilein':'filelist:step1_dbsquery.log'}
00673 
00674 steps['SKIMD3']=merge([{'--filein':'file:step3.root'},steps['SKIMD']])
00675 
00676 steps['SKIMCOSD']={'-s':'SKIM:all',
00677                    '--conditions':'auto:com10',
00678                    '--data':'',
00679                    '--scenario':'cosmics',
00680                    '--filein':'file:step2.root',
00681                    '--secondfilein':'filelist:step1_dbsquery.log'}
00682                  
00683 
00684 #### for special wfs ###
00685 #steps['TTbar_REDIGI_RERECO']=merge([{'cfg':'TTbar_Tauola_8TeV_cfi',
00686 #                                     '-s':'GEN,SIM,DIGI,L1,DIGI2RAW,HLT:7E33v2,RAW2DIGI,L1Reco,RECO,ALCA:MuAlCalIsolatedMu+DtCalib,VALIDATION,DQM',
00687 #                                     '--datatier':'GEN-SIM-DIGI-RAW-HLTDEBUG-RECO,DQM',
00688 #                                     '--eventcontent':'FEVTDEBUGHLT,DQM'},
00689 #                                    K9by50,stCond,step1Defaults])
00690 #steps['DIGI2RECO']=merge([{'-s':'DIGI,L1,DIGI2RAW,HLT:7E33v2,RAW2DIGI,L1Reco,RECO,VALIDATION,DQM',
00691 #                           '--filtername':'DIGItoRECO',
00692 #                           '--process':'RECO',
00693 #                           '--eventcontent':'RECOSIM,DQM',
00694 #                           '--datatier':'GEN-SIM-RECO,DQM',
00695 #                           },
00696 #                            stCond,step3Defaults])
00697 steps['RECOFROMRECO']=merge([{'-s':'RECO',
00698                               '--filtername':'RECOfromRECO',
00699                               '--process':'reRECO',
00700                               '--datatier':'AODSIM',
00701                               '--eventcontent':'AODSIM',
00702                               },
00703                              stCond,step3Defaults])
00704 
00705 
00706 steps['RECOFROMRECOSt2']=steps['RECOFROMRECO']
00707 
00708 steps['RECODFROMRAWRECO']=merge([{'-s':'RAW2DIGI:RawToDigi_noTk,L1Reco,RECO:reconstruction_noTracking',
00709                                   '--filtername':'RECOfromRAWRECO',
00710                                   '--process':'rereRECO',
00711                                   '--datatier':'AOD',
00712                                   '--eventcontent':'AOD',
00713                                   '--secondfilein':'filelist:step1_dbsquery.log',
00714                                   },
00715                                  steps['RECOD']])
00716 
00717 steps['COPYPASTE']={'-s':'NONE',
00718                     '--conditions':'auto:startup',
00719                     '--output':'\'[{"t":"RAW","e":"ALL"}]\'',
00720                     '--customise_commands':'"process.ALLRAWoutput.fastCloning=cms.untracked.bool(False)"'}