CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/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 Run2012A=[191226]
00164 steps['RunMinBias2012A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2012A-v1/RAW',label='mb2012A',run=Run2012A, events=100000,location='STD')}
00165 steps['RunTau2012A']={'INPUT':InputInfo(dataSet='/Tau/Run2012A-v1/RAW',label='tau2012A', run=Run2012A, events=100000,location='STD')}
00166 steps['RunMET2012A']={'INPUT':InputInfo(dataSet='/MET/Run2012A-v1/RAW',label='met2012A', run=Run2012A, events=100000,location='STD')}
00167 steps['RunMu2012A']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012A-v1/RAW',label='mu2012A', run=Run2012A, events=100000,location='STD')}
00168 steps['RunElectron2012A']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012A-v1/RAW',label='electron2012A', run=Run2012A, events=100000,location='STD')}
00169 steps['RunJet2012A']={'INPUT':InputInfo(dataSet='/Jet/Run2012A-v1/RAW',label='jet2012A', run=Run2012A, events=100000,location='STD')}
00170 
00171 
00172 Run2012B=[194533]
00173 Run2012Bsk=Run2012B+[194912,195016]
00174 steps['RunMinBias2012B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2012B-v1/RAW',label='mb2012B',run=Run2012B, events=100000,location='STD')}
00175 steps['RunMu2012B']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012B-v1/RAW',label='mu2012B',location='STD',run=Run2012B)}
00176 steps['RunPhoton2012B']={'INPUT':InputInfo(dataSet='/SinglePhoton/Run2012B-v1/RAW',label='photon2012B',location='STD',run=Run2012B)}
00177 steps['RunEl2012B']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012B-v1/RAW',label='electron2012B',location='STD',run=Run2012B)}
00178 steps['RunJet2012B']={'INPUT':InputInfo(dataSet='/JetHT/Run2012B-v1/RAW',label='jet2012B',location='STD',run=Run2012B)}
00179 steps['ZMuSkim2012B']={'INPUT':InputInfo(dataSet='/SingleMu/Run2012B-ZMu-PromptSkim-v1/RAW-RECO',label='zMu2012B',location='CAF',run=Run2012Bsk)}
00180 steps['WElSkim2012B']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2012B-WElectron-PromptSkim-v1/USER',label='wEl2012B',location='STD',run=Run2012Bsk)}
00181 steps['ZElSkim2012B']={'INPUT':InputInfo(dataSet='/DoubleElectron/Run2012B-ZElectron-PromptSkim-v1/RAW-RECO',label='zEl2012B',location='STD',run=Run2012Bsk)}
00182 
00183 #### Standard release validation samples ####
00184 
00185 stCond={'--conditions':'auto:startup'}
00186 K9by25={'--relval':'9000,25'}
00187 K9by50={'--relval':'9000,50'}
00188 K9by500={'--relval':'9000,500'}
00189 K9by100={'--relval':'9000,100'}
00190 K9by250={'--relval':'9000,250'}
00191 K25by250={'--relval':'25000,250'}
00192 
00193 def gen(fragment,howMuch):
00194     global step1Defaults
00195     return merge([{'cfg':fragment},howMuch,step1Defaults])
00196 
00197 steps['MinBias']=gen('MinBias_8TeV_cfi',K9by100)
00198 steps['QCD_Pt_3000_3500']=gen('QCD_Pt_3000_3500_8TeV_cfi',K9by25)
00199 steps['QCD_Pt_80_120']=gen('QCD_Pt_80_120_8TeV_cfi',K9by50)
00200 steps['SingleElectronPt10']=gen('SingleElectronPt10_cfi',K9by250)
00201 steps['SingleElectronPt1000']=gen('SingleElectronPt1000_cfi',K9by250)
00202 steps['SingleElectronPt35']=gen('SingleElectronPt35_cfi',K9by250)
00203 steps['SingleGammaPt10']=gen('SingleGammaPt10_cfi',K9by100)
00204 steps['SingleGammaPt35']=gen('SingleGammaPt35_cfi',K9by100)
00205 steps['SingleMuPt10']=gen('SingleMuPt10_cfi',K25by250)
00206 steps['SingleMuPt100']=gen('SingleMuPt100_cfi',K9by250)
00207 steps['SingleMuPt1000']=gen('SingleMuPt1000_cfi',K9by100)
00208 steps['TTbar']=gen('TTbar_Tauola_8TeV_cfi',K9by50)
00209 steps['TTbarLepton']=gen('TTbarLepton_Tauola_8TeV_cfi',K9by100)
00210 steps['ZEE']=gen('ZEE_8TeV_cfi',K9by100)
00211 steps['Wjet_Pt_80_120']=gen('Wjet_Pt_80_120_8TeV_cfi',K9by100)
00212 steps['Wjet_Pt_3000_3500']=gen('Wjet_Pt_3000_3500_8TeV_cfi',K9by100)
00213 steps['LM1_sfts']=gen('LM1_sfts_8TeV_cfi',K9by100)
00214 steps['QCD_FlatPt_15_3000']=gen('QCDForPF_8TeV_cfi',K9by100)
00215 
00216 baseDataSetRelease=[
00217     'CMSSW_5_2_1-START52_V4-v1',
00218     'CMSSW_5_2_1-STARTHI52_V4-v1',
00219     'CMSSW_5_2_1-PU_START52_V4-v1'
00220     ]
00221 
00222 steps['MinBiasINPUT']={'INPUT':InputInfo(dataSet='/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00223 steps['QCD_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00224 steps['QCD_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00225 steps['SingleElectronPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00226 steps['SingleElectronPt1000INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt1000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00227 steps['SingleElectronPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt35/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00228 steps['SingleGammaPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00229 steps['SingleGammaPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt35/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00230 steps['SingleMuPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00231 steps['SingleMuPt100INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt100/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00232 steps['SingleMuPt1000INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt1000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00233 steps['TTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00234 steps['TTbarLeptonINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbarLepton/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00235 steps['OldTTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValProdTTbar/CMSSW_5_0_0_pre6-START50_V5-v1/GEN-SIM-RECO',location='STD')}
00236 steps['OldGenSimINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/CMSSW_4_4_2-START44_V7-v1/GEN-SIM-DIGI-RAW-HLTDEBUG',location='STD')}
00237 steps['Wjet_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00238 steps['Wjet_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00239 steps['LM1_sftsINPUT']={'INPUT':InputInfo(dataSet='/RelValLM1_sfts/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00240 steps['QCD_FlatPt_15_3000INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_FlatPt_15_3000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00241 
00242 ## high stat step1
00243 K700by280={'--relval': '70000,280'}
00244 K250by100={'--relval': '25000,100'}
00245 K3250000by1300000={'--relval': '325000000,1300000'}
00246 K250by250={'--relval': '25000,250'}
00247 K110000by45000={'--relval': '11000000,45000'}
00248 K562by225={'--relval': '56250,225'}
00249 
00250 ecalHcal={
00251     '-s':'GEN,SIM,DIGI,DIGI2RAW,RAW2DIGI,L1Reco,RECO',
00252     '--datatier':'GEN-SIM-DIGI-RAW-RECO',
00253     #'--geometry':'ECALHCAL',
00254     '--eventcontent':'FEVTDEBUG',
00255     '--customise':'Validation/Configuration/ECALHCAL.customise',
00256     '--beamspot':'NoSmear'}
00257 steps['SingleElectronE120EHCAL']=merge([{'cfg':'SingleElectronE120EHCAL_cfi'},ecalHcal,K25by250,step1Defaults])
00258 steps['SinglePiE50HCAL']=merge([{'cfg':'SinglePiE50HCAL_cfi'},ecalHcal,K25by250,step1Defaults])
00259 
00260 steps['MinBiasHS']=gen('MinBias_8TeV_cfi',K25by250)
00261 steps['InclusiveppMuX']=gen('InclusiveppMuX_8TeV_cfi',K110000by45000)
00262 steps['SingleElectronFlatPt5To100']=gen('SingleElectronFlatPt5To100_cfi',K250by250)
00263 steps['SinglePiPt1']=gen('SinglePiPt1_cfi',K250by250)
00264 steps['SingleMuPt1']=gen('SingleMuPt1_cfi',K250by250)
00265 steps['ZPrime5000Dijet']=gen('ZPrime5000JJ_8TeV_cfi',K250by100)
00266 steps['SinglePi0E10']=gen('SinglePi0E10_cfi',K250by100)
00267 steps['SinglePiPt10']=gen('SinglePiPt10_cfi',K250by250)
00268 steps['SingleGammaFlatPt10To100']=gen('SingleGammaFlatPt10To100_cfi',K250by250)
00269 steps['SingleTauPt50Pythia']=gen('SingleTaupt_50_cfi',K250by100)
00270 steps['SinglePiPt100']=gen('SinglePiPt100_cfi',K250by250)
00271 
00272 
00273 def genS(fragment,howMuch):
00274     global step1Defaults,stCond
00275     return merge([{'cfg':fragment},stCond,howMuch,step1Defaults])
00276 
00277 ##steps['MinBias2']=genS('MinBias_8TeV_cfi',K9by100)
00278 steps['Higgs200ChargedTaus']=genS('H200ChargedTaus_Tauola_8TeV_cfi',K9by100)
00279 ##steps['QCD_Pt_3000_3500_2']=genS('QCD_Pt_3000_3500_8TeV_cfi',K9by25)
00280 ##steps['QCD_Pt_80_120_2']=genS('QCD_Pt_80_120_8TeV_cfi',K9by50)
00281 steps['JpsiMM']=genS('JpsiMM_8TeV_cfi',{'--relval':'65250,725'})
00282 ##steps['TTbar2']=genS('TTbar_Tauola_8TeV_cfi',K9by50)
00283 steps['WE']=genS('WE_8TeV_cfi',K9by100)
00284 steps['WM']=genS('WM_8TeV_cfi',K9by100)
00285 ##steps['ZEE2']=genS('ZEE_8TeV_cfi',K9by100)
00286 steps['ZMM']=genS('ZMM_8TeV_cfi',{'--relval':'18000,200'})
00287 steps['ZTT']=genS('ZTT_Tauola_All_hadronic_8TeV_cfi',K9by100)
00288 steps['H130GGgluonfusion']=genS('H130GGgluonfusion_8TeV_cfi',K9by100)
00289 steps['PhotonJets_Pt_10']=genS('PhotonJet_Pt_10_8TeV_cfi',K9by100)
00290 steps['QQH1352T_Tauola']=genS('QQH1352T_Tauola_8TeV_cfi',K9by100)
00291 steps['ZmumuJets_Pt_20_300']=gen('ZmumuJets_Pt_20_300_GEN_8TeV_cfg',K250by100)
00292 
00293 steps['MinBias2INPUT']={'INPUT':InputInfo(dataSet='/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00294 steps['Higgs200ChargedTausINPUT']={'INPUT':InputInfo(dataSet='/RelValHiggs200ChargedTaus/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00295 steps['QCD_Pt_3000_3500_2INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00296 steps['QCD_Pt_80_120_2INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00297 steps['JpsiMMINPUT']={'INPUT':InputInfo(dataSet='/RelValJpsiMM/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00298 steps['TTbar2INPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00299 steps['WEINPUT']={'INPUT':InputInfo(dataSet='/RelValWE/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00300 steps['WMINPUT']={'INPUT':InputInfo(dataSet='/RelValWM/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00301 steps['ZEEINPUT']={'INPUT':InputInfo(dataSet='/RelValZEE/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00302 steps['ZMMINPUT']={'INPUT':InputInfo(dataSet='/RelValZMM/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00303 steps['ZTTINPUT']={'INPUT':InputInfo(dataSet='/RelValZTT/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00304 steps['H130GGgluonfusionINPUT']={'INPUT':InputInfo(dataSet='/RelValH130GGgluonfusion/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00305 steps['PhotonJets_Pt_10INPUT']={'INPUT':InputInfo(dataSet='/RelValPhotonJets_Pt_10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00306 steps['QQH1352T_TauolaINPUT']={'INPUT':InputInfo(dataSet='/RelValQQH1352T_Tauola/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00307 
00308 steps['ZmumuJets_Pt_20_300INPUT']={'INPUT':InputInfo(dataSet='/RelValZmumuJets_Pt_20_300/%s/GEN-SIM'%(baseDataSetRelease[2],),location='STD')}
00309 
00310 steps['Cosmics']=merge([{'cfg':'UndergroundCosmicMu_cfi.py','--relval':'666000,3000','--scenario':'cosmics'},step1Defaults])
00311 steps['BeamHalo']=merge([{'cfg':'BeamHalo_cfi.py','--scenario':'cosmics'},K9by100,step1Defaults])
00312 
00313 steps['CosmicsINPUT']={'INPUT':InputInfo(dataSet='/RelValCosmics/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00314 steps['BeamHaloINPUT']={'INPUT':InputInfo(dataSet='/RelValBeamHalo/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00315 
00316 steps['QCD_Pt_50_80']=genS('QCD_Pt_50_80_8TeV_cfi',K250by100)
00317 steps['QCD_Pt_15_20']=genS('QCD_Pt_15_20_8TeV_cfi',K250by100)
00318 steps['ZTTHS']=merge([K250by100,steps['ZTT']])
00319 steps['QQH120Inv']=genS('QQH120Inv_8TeV_cfi',K250by100)
00320 steps['TTbar2HS']=merge([K250by100,steps['TTbar']])
00321 steps['JpsiMM_Pt_20_inf']=genS('JpsiMM_Pt_20_inf_8TeV_cfi',K700by280)
00322 steps['QCD_Pt_120_170']=genS('QCD_Pt_120_170_8TeV_cfi',K250by100)
00323 steps['H165WW2L']=genS('H165WW2L_Tauola_8TeV_cfi',K250by100)
00324 steps['UpsMM']=genS('UpsMM_8TeV_cfi',K562by225)
00325 steps['RSGrav']=genS('RS750_quarks_and_leptons_8TeV_cff',K250by100)
00326 steps['QCD_Pt_80_120_2HS']=merge([K250by100,steps['QCD_Pt_80_120']])
00327 steps['bJpsiX']=genS('bJpsiX_8TeV_cfi',K3250000by1300000)
00328 steps['QCD_Pt_30_50']=genS('QCD_Pt_30_50_8TeV_cfi',K250by100)
00329 steps['H200ZZ4L']=genS('H200ZZ4L_Tauola_8TeV_cfi',K250by100)
00330 steps['LM9p']=genS('LM9p_8TeV_cff',K250by100)
00331 steps['QCD_Pt_20_30']=genS('QCD_Pt_20_30_8TeV_cfi',K250by100)
00332 steps['QCD_Pt_170_230']=genS('QCD_Pt_170_230_8TeV_cfi',K250by100)
00333 
00334 ## heavy ions tests
00335 U500by5={'--relval': '500,5'}
00336 U80by2={'--relval': '80,2'}
00337 hiDefaults={'--conditions':'auto:starthi_HIon',
00338            '--scenario':'HeavyIons'}
00339 
00340 steps['HydjetQ_MinBias_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_MinBias_2760GeV_cfi',U500by5)])
00341 steps['HydjetQ_MinBias_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_MinBias_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[1],),location='STD')}
00342 steps['HydjetQ_B0_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_B0_2760GeV_cfi',U80by2)])
00343 steps['HydjetQ_B0_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B0_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[1],),location='STD')}
00344 steps['HydjetQ_B8_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_B8_2760GeV_cfi',U80by2)])
00345 steps['HydjetQ_B8_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B8_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[1],),location='CAF')}
00346 
00347 
00348 
00349 def changeRefRelease(step1s,listOfPairs):
00350     for s in step1s:
00351         if ('INPUT' in step1s[s]):
00352             oldD=steps[s]['INPUT'].dataSet
00353             for (ref,newRef) in listOfPairs:
00354                 if  ref in oldD:
00355                     steps[s]['INPUT'].dataSet=oldD.replace(ref,newRef)
00356                                         
00357 def addForAll(steps,d):
00358     for s in steps:
00359         steps[s].update(d)
00360 
00361 
00362 #### fastsim section ####
00363 ##no forseen to do things in two steps GEN-SIM then FASTIM->end: maybe later
00364 step1FastDefaults =merge([{'-s':'GEN,FASTSIM,HLT:@relval,VALIDATION',
00365                            '--eventcontent':'FEVTDEBUGHLT,DQM',
00366                            '--datatier':'GEN-SIM-DIGI-RECO,DQM',
00367                            '--relval':'27000,3000'},
00368                           step1Defaults])
00369 K100by500={'--relval':'100000,500'}
00370 K100byK2={'--relval':'100000,2000'}
00371 steps['TTbarFS']=merge([{'cfg':'TTbar_Tauola_8TeV_cfi'},K100byK2,step1FastDefaults])
00372 steps['SingleMuPt1FS']=merge([{'cfg':'SingleMuPt1_cfi'},step1FastDefaults])
00373 steps['SingleMuPt10FS']=merge([{'cfg':'SingleMuPt10_cfi'},step1FastDefaults])
00374 steps['SingleMuPt100FS']=merge([{'cfg':'SingleMuPt100_cfi'},step1FastDefaults])
00375 steps['SinglePiPt1FS']=merge([{'cfg':'SinglePiPt1_cfi'},step1FastDefaults])
00376 steps['SinglePiPt10FS']=merge([{'cfg':'SinglePiPt10_cfi'},step1FastDefaults])
00377 steps['SinglePiPt100FS']=merge([{'cfg':'SinglePiPt100_cfi'},step1FastDefaults])
00378 steps['ZEEFS']=merge([{'cfg':'ZEE_8TeV_cfi'},K100byK2,step1FastDefaults])
00379 steps['ZTTFS']=merge([{'cfg':'ZTT_Tauola_OneLepton_OtherHadrons_8TeV_cfi'},K100byK2,step1FastDefaults])
00380 steps['QCDFlatPt153000FS']=merge([{'cfg':'QCDForPF_8TeV_cfi'},step1FastDefaults])
00381 steps['QCD_Pt_80_120FS']=merge([{'cfg':'QCD_Pt_80_120_8TeV_cfi'},K100by500,stCond,step1FastDefaults])
00382 steps['QCD_Pt_3000_3500FS']=merge([{'cfg':'QCD_Pt_3000_3500_8TeV_cfi'},K100by500,stCond,step1FastDefaults])
00383 steps['H130GGgluonfusionFS']=merge([{'cfg':'H130GGgluonfusion_8TeV_cfi'},step1FastDefaults])
00384 steps['SingleGammaFlatPt10To10FS']=merge([{'cfg':'SingleGammaFlatPt10To100_cfi'},K100by500,step1FastDefaults])
00385 
00386 #### generator test section ####
00387 step1GenDefaults=merge([{'-s':'GEN,VALIDATION:genvalid',
00388                          '--relval':'1000000,20000',
00389                          '--eventcontent':'RAWSIM',
00390                          '--datatier':'GEN'},
00391                         step1Defaults])
00392 def genvalid(fragment,d,suffix='',fi=''):
00393     import copy
00394     c=copy.copy(d)
00395     if suffix:
00396         c['-s']=c['-s'].replace('genvalid','genvalid_'+suffix)
00397     if fi:
00398         c['--filein']='lhe:%d'%(fi,)
00399     c['cfg']=fragment
00400     return c
00401     
00402 steps['QCD_Pt-30_8TeV_herwigpp']=genvalid('QCD_Pt_30_8TeV_herwigpp_cff',step1GenDefaults,'qcd')
00403 steps['DYToLL_M-50_TuneZ2star_8TeV_pythia6-tauola']=genvalid('DYToLL_M_50_TuneZ2star_8TeV_pythia6_tauola_cff',step1GenDefaults,'dy')
00404 steps['QCD_Pt-30_TuneZ2star_8TeV_pythia6']=genvalid('QCD_Pt_30_TuneZ2star_8TeV_pythia6_cff',step1GenDefaults,'qcd')
00405 steps['QCD_Pt-30_8TeV_pythia8']=genvalid('QCD_Pt_30_8TeV_pythia8_cff',step1GenDefaults,'qcd')
00406 steps['GluGluTo2Jets_M-100_8TeV_exhume']=genvalid('GluGluTo2Jets_M_100_8TeV_exhume_cff',step1GenDefaults,'qcd')
00407 steps['TT_TuneZ2star_8TeV_pythia6-evtgen']=genvalid('TT_TuneZ2star_8TeV_pythia6_evtgen_cff',step1GenDefaults)
00408 steps['MinBias_TuneZ2star_8TeV_pythia6']=genvalid('MinBias_TuneZ2star_8TeV_pythia6_cff',step1GenDefaults,'qcd')
00409 steps['WToLNu_TuneZ2star_8TeV_pythia6-tauola']=genvalid('WToLNu_TuneZ2star_8TeV_pythia6_tauola_cff',step1GenDefaults,'w')
00410 steps['QCD_Pt-30_8TeV_herwig6']=genvalid('QCD_Pt_30_8TeV_herwig6_cff',step1GenDefaults,'qcd')
00411 steps['MinBias_8TeV_pythia8']=genvalid('MinBias_8TeV_pythia8_cff',step1GenDefaults,'qcd')
00412 
00413 steps['DYToMuMu_M-20_8TeV_mcatnlo']=genvalid('DYToMuMu_M_20_8TeV_mcatnlo_cff',step1GenDefaults,'dy',664)
00414 steps['TT_8TeV_mcatnlo']=genvalid('TT_8TeV_mcatnlo_cff',step1GenDefaults,'',346)
00415 steps['WminusToENu_8TeV_mcatnlo']=genvalid('WminusToENu_8TeV_mcatnlo_cff',step1GenDefaults,'w',666)
00416 steps['WminusToMuNu_8TeV_mcatnlo']=genvalid('WminusToMuNu_8TeV_mcatnlo_cff',step1GenDefaults,'w',668)
00417 steps['WplusToENu_8TeV_mcatnlo']=genvalid('WplusToENu_8TeV_mcatnlo_cff',step1GenDefaults,'w',665)
00418 steps['WplusToMuNu_8TeV_mcatnlo']=genvalid('WplusToMuNu_8TeV_mcatnlo_cff',step1GenDefaults,'w',667)
00419 steps['QCD_Ht-100To250_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',3358)
00420 steps['QCD_Ht-250To500_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',3356)
00421 steps['QCD_Ht-500To1000_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',3306)
00422 steps['TTJets_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'',5226)
00423 steps['WJetsLNu_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'w',2924)
00424 steps['ZJetsLNu_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'dy',2925)
00425 steps['QCD2Jets_Pt-40To120_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'qcd',785)
00426 steps['QCD3Jets_Pt-40To120_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'qcd',786)
00427 steps['QCD4Jets_Pt-40To120_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'qcd',787)
00428 steps['QCD5Jets_Pt-40To120_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'qcd',832)
00429 steps['TT0Jets_Et-40_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et48ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'',472)
00430 steps['TT1Jets_Et-40_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et48ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'',475)
00431 steps['TT2Jets_Et-40_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et48ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'',478)
00432 steps['TT3Jets_Et-40_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et48ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'',481)
00433 steps['W0Jets_Pt-0To100_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'w',397)
00434 steps['W1Jets_Pt-0To100_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'w',398)
00435 steps['W2Jets_Pt-0To100_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'w',399)
00436 steps['W3Jets_Pt-0To100_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'w',400)
00437 steps['Z0Jets_Pt-0To100_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'dy',440)
00438 steps['Z1Jets_Pt-0To100_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'dy',441)
00439 steps['Z2Jets_Pt-0To100_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'dy',442)
00440 steps['Z3Jets-Pt_0To100_TuneZ2star_8TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2star_8TeV_alpgen_tauola_cff',step1GenDefaults,'dy',443)
00441 steps['ZJetsLNu_Tune4C_8TeV_madgraph-pythia8']=genvalid('Hadronizer_MgmMatchTune4C_8TeV_madgraph_pythia8_cff',step1GenDefaults,'dy',2925)
00442 
00443 PU={'-n':10,'--pileup':'2012_Startup_50ns_PoissonOOTPU','--pileup_input':'dbs:/RelValProdMinBias/%s/GEN-SIM-RAW'%(baseDataSetRelease[0],)}
00444 PUFS={'--pileup':'2012_Startup_inTimeOnly'}
00445 
00446 steps['TTbarFSPU']=merge([PUFS,steps['TTbarFS']])
00447 ##########################
00448 
00449 
00450 
00451 # step2 
00452 step2Defaults = { 
00453                   '-s'            : 'DIGI,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco',
00454                   '--datatier'    : 'GEN-SIM-DIGI-RAW-HLTDEBUG',
00455                   '--eventcontent': 'FEVTDEBUGHLT',
00456                   '--conditions'  : 'auto:startup',
00457                   }
00458 
00459 
00460 steps['DIGIPROD1']=merge([{'--eventcontent':'RAWSIM','--datatier':'GEN-SIM-RAW'},step2Defaults])
00461 steps['DIGI']=merge([step2Defaults])
00462 #steps['DIGI2']=merge([stCond,step2Defaults])
00463 steps['DIGICOS']=merge([{'--scenario':'cosmics','--eventcontent':'FEVTDEBUG','--datatier':'GEN-SIM-DIGI-RAW'},stCond,step2Defaults])
00464 
00465 steps['DIGIPU1']=merge([PU,step2Defaults])
00466 steps['REDIGIPU']=merge([{'-s':'reGEN,reDIGI,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco'},steps['DIGIPU1']])
00467 
00468 steps['RESIM']=merge([{'-s':'reGEN,reSIM','-n':10},steps['DIGI']])
00469 steps['RESIMDIGI']=merge([{'-s':'reGEN,reSIM,DIGI,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco','-n':10,'--restoreRNDSeeds':'','--process':'HLT'},steps['DIGI']]) 
00470     
00471 steps['DIGIHI']=merge([{'--conditions':'auto:starthi_HIon', '-s':'DIGI,L1,DIGI2RAW,HLT:HIon,RAW2DIGI,L1Reco', '--inputCommands':'"keep *","drop *_simEcalPreshowerDigis_*_*"', '-n':10}, hiDefaults, step2Defaults])
00472 
00473 #add this line when testing from an input file that is not strictly GEN-SIM
00474 #addForAll(step2,{'--process':'DIGI'})
00475 
00476 dataReco={'--conditions':'auto:com10',
00477           '-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBias,DQM',
00478           '--datatier':'RECO,DQMROOT',
00479           '--eventcontent':'RECO,DQMROOT',
00480           '--data':'',
00481           '--process':'reRECO',
00482           '--scenario':'pp',
00483           }
00484 
00485 steps['HLTD']=merge([{'--process':'reHLT',
00486                       '-s':'L1REPACK,HLT:5E33v4',                   # keep the HLT menu and conditions explicit
00487                       '--condition':'auto:hltonline_5E33v4',
00488                       '--data':'',
00489                       '--output':'\'[{"e":"RAW","t":"RAW","o":["drop FEDRawDataCollection_rawDataCollector__LHC"]}]\'',
00490 #                      '--datatier':'RAW',
00491 #                      '--eventcontent':'RAW',
00492 #                      '--customise_commands':'\'process.RAWoutput.outputCommands.append("drop FEDRawDataCollection_rawDataCollector__LHC")\''
00493                       },])
00494 steps['RECOD']=merge([{'--scenario':'pp',},dataReco])
00495 steps['RECOSKIMALCA']=merge([{'--inputCommands':'"keep *","drop *_*_*_RECO"'
00496                               },steps['RECOD']])
00497 steps['RECOSKIM']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,DQM',
00498                           },steps['RECOSKIMALCA']])
00499 
00500 steps['REPACKHID']=merge([{'--scenario':'HeavyIons',
00501                          '-s':'RAW2DIGI,REPACK',
00502                          '--datatier':'RAW',
00503                          '--eventcontent':'REPACKRAW'},
00504                         steps['RECOD']])
00505 steps['RECOHID10']=merge([{'--scenario':'HeavyIons',
00506                          '-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBiasHI+HcalCalMinBias,DQM',
00507                          '--datatier':'RECO,DQMROOT',
00508                          '--eventcontent':'RECO,DQMROOT'},
00509                         steps['RECOD']])
00510 steps['RECOHID11']=merge([{'--repacked':''},
00511                           steps['RECOHID10']])
00512 steps['RECOHID10']['-s']+=',REPACK'
00513 steps['RECOHID10']['--datatier']+=',RAW'
00514 steps['RECOHID10']['--eventcontent']+=',REPACKRAW'
00515 
00516 steps['TIER0']=merge([{'--customise':'Configuration/DataProcessing/RecoTLR.customisePrompt',
00517                        '-s':'RAW2DIGI,L1Reco,RECO,ALCAPRODUCER:@allForPrompt,DQM,ENDJOB',
00518                        '--datatier':'RECO,AOD,ALCARECO,DQMROOT',
00519                        '--eventcontent':'RECO,AOD,ALCARECO,DQMROOT',
00520                        '--process':'RECO'
00521                        },dataReco])
00522 steps['TIER0EXP']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCAPRODUCER:@allForExpress,DQM,ENDJOB',
00523                           '--datatier':'ALCARECO,DQM',
00524                           '--eventcontent':'ALCARECO,DQM',
00525                           '--customise':'Configuration/DataProcessing/RecoTLR.customiseExpress',
00526                           },steps['TIER0']])
00527 
00528 steps['RECOCOSD']=merge([{'--scenario':'cosmics',
00529                           '-s':'RAW2DIGI,L1Reco,RECO,DQM,ALCA:MuAlCalIsolatedMu+DtCalib',
00530                           '--customise':'Configuration/DataProcessing/RecoTLR.customiseCosmicData'
00531                           },dataReco])
00532 
00533 step2HImixDefaults=merge([{'-n':'10',
00534                            '--himix':'',
00535                            '--filein':'file.root',
00536                            '--process':'HISIGNAL'
00537                            },hiDefaults,step1Defaults])
00538 steps['Pyquen_GammaJet_pt20_2760GeV']=merge([{'cfg':'Pyquen_GammaJet_pt20_2760GeV_cfi'},step2HImixDefaults])
00539 steps['Pyquen_DiJet_pt80to120_2760GeV']=merge([{'cfg':'Pyquen_DiJet_pt80to120_2760GeV_cfi'},step2HImixDefaults])
00540 steps['Pyquen_ZeemumuJets_pt10_2760GeV']=merge([{'cfg':'Pyquen_ZeemumuJets_pt10_2760GeV_cfi'},step2HImixDefaults])
00541 
00542 # step3 
00543 step3Defaults = {
00544                   '-s'            : 'RAW2DIGI,L1Reco,RECO,VALIDATION,DQM',
00545                   '--conditions'  : 'auto:startup',
00546                   '--no_exec'     : '',
00547                   '--datatier'    : 'GEN-SIM-RECO,DQM',
00548                   '--eventcontent': 'RECOSIM,DQM'
00549                   }
00550 
00551 steps['DIGIPU']=merge([{'--process':'REDIGI'},steps['DIGIPU1']])
00552 
00553 steps['RECODst3']=merge([{'--hltProcess':'reHLT','--conditions':'auto:com10_5E33v4'},steps['RECOD']])
00554 steps['RECO']=merge([step3Defaults])
00555 steps['RECODBG']=merge([{'--eventcontent':'RECODEBUG,DQM'},steps['RECO']])
00556 steps['RECOPROD1']=merge([{ '-s' : 'RAW2DIGI,L1Reco,RECO', '--datatier' : 'GEN-SIM-RECO,AODSIM', '--eventcontent' : 'RECOSIM,AODSIM'},step3Defaults])
00557 steps['RECOCOS']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCA:MuAlCalIsolatedMu,DQM','--scenario':'cosmics'},stCond,step3Defaults])
00558 steps['RECOMIN']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiStripCalMinBias+EcalCalPhiSym+EcalCalPi0Calib+EcalCalEtaCalib,VALIDATION,DQM'},stCond,step3Defaults])
00559 
00560 steps['RECOPU1']=merge([PU,steps['RECO']])
00561 steps['RERECOPU1']=merge([{'--hltProcess':'REDIGI'},steps['RECOPU1']])
00562 
00563 
00564 steps['RECOHI']=merge([hiDefaults,step3Defaults])
00565 steps['DIGIHISt3']=steps['DIGIHI']
00566 
00567 steps['RECOHID11St3']=merge([{
00568                               '--process':'ZStoRECO'},
00569                              steps['RECOHID11']])
00570 steps['RECOHIR10D11']=merge([{'--filein':'file:step2_inREPACKRAW.root',
00571                               '--filtername':'reRECO'},
00572                              steps['RECOHID11St3']])
00573 
00574 #add this line when testing from an input file that is not strictly GEN-SIM
00575 #addForAll(step3,{'--hltProcess':'DIGI'})
00576 
00577 steps['ALCACOSD']={'--conditions':'auto:com10',
00578                    '--datatier':'ALCARECO',
00579                    '--eventcontent':'ALCARECO',
00580                    '--scenario':'cosmics',
00581                    '-s':'ALCA:TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DQM'
00582                    }
00583 steps['ALCAPROMPT']={'-s':'ALCA:PromptCalibProd',
00584                      '--filein':'file:TkAlMinBias.root',
00585                      '--conditions':'auto:com10',
00586                      '--datatier':'ALCARECO',
00587                      '--eventcontent':'ALCARECO'}
00588 steps['ALCAEXP']={'-s':'ALCA:PromptCalibProd',
00589                   '--conditions':'auto:com10',
00590                   '--datatier':'ALCARECO',
00591                   '--eventcontent':'ALCARECO'}
00592 
00593 steps['HARVESTD']={'-s':'HARVESTING:dqmHarvesting',
00594                    '--conditions':'auto:com10',
00595                    '--filein':'file:step2_inDQM.root',
00596                    '--filetype':'DQM',
00597                    '--data':'',
00598                    '--scenario':'pp'}
00599 
00600 # run RECO+DQM in step 3 and harvesting in step4, for HLT + RECO workflow
00601 steps['HARVESTDst4'] = merge([ {'--conditions':'auto:com10_5E33v4', '--filein':'file:step3_inDQM.root'}, steps['HARVESTD'] ])
00602 
00603 # step4
00604 step4Defaults = { 
00605                   '-s'            : 'ALCA:TkAlMuonIsolated+TkAlMinBias+EcalCalElectron+HcalCalIsoTrk+MuAlOverlaps',
00606                   '-n'            : 1000,
00607                   '--conditions'  : 'auto:startup',
00608                   '--datatier'    : 'ALCARECO',
00609                   '--eventcontent': 'ALCARECO',
00610                   }
00611 
00612 steps['RERECOPU']=steps['RERECOPU1']
00613 
00614 steps['ALCATT']=merge([step4Defaults])
00615 steps['ALCAMIN']=merge([{'-s':'ALCA:TkAlMinBias'},stCond,step4Defaults])
00616 #steps['ALCAQCD']=merge([{'-s':'ALCA:HcalCalIsoTrk+HcalCalDijets'},stCond,step4Defaults])
00617 #steps['ALCAMU']=merge([{'-s':'ALCA:@Mu'},stCond,step4Defaults])
00618 steps['ALCACOS']=merge([{'-s':'ALCA:TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics'},stCond,step4Defaults])
00619 steps['ALCABH']=merge([{'-s':'ALCA:TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo'},stCond,step4Defaults])
00620 steps['ALCAELE']=merge([{'-s':'ALCA:EcalCalElectron'},stCond,step4Defaults])
00621 
00622 steps['ALCAHARVD']={'-s':'ALCAHARVEST:BeamSpotByRun+BeamSpotByLumi+SiStripQuality',
00623                     '--conditions':'auto:com10',
00624                     '--scenario':'pp',
00625                     '--data':'',
00626                     '--filein':'file:PromptCalibProd.root'}
00627 
00628 steps['RECOHISt4']=steps['RECOHI']
00629 
00630 steps['ALCANZS']=merge([{'-s':'ALCA:HcalCalMinBias','--mc':''},step4Defaults])
00631 steps['HARVGEN']={'-s':'HARVESTING:genHarvesting',
00632                   '--harvesting':'AtJobEnd',
00633                   '--conditions':'auto:startup',
00634                   '--mc':'',
00635                   '--filein':'file:step1.root'
00636                   }
00637 
00638 steps['HARVEST']={'-s':'HARVESTING:validationHarvesting+dqmHarvesting',
00639                    '--conditions':'auto:startup',
00640                    '--mc':'',
00641                    '--scenario':'pp'}
00642 steps['ALCASPLIT']={'-s':'ALCAOUTPUT:@allForPrompt',
00643                     '--conditions':'auto:com10',
00644                     '--scenario':'pp',
00645                     '--data':'',
00646                     '--triggerResultsProcess':'RECO',
00647                     '--filein':'file:step2_inALCARECO.root'}
00648 
00649 steps['SKIMD']={'-s':'SKIM:all',
00650                 '--conditions':'auto:com10',
00651                 '--data':'',
00652                 '--scenario':'pp',
00653                 '--filein':'file:step2.root',
00654                 '--secondfilein':'filelist:step1_dbsquery.log'}
00655 
00656 steps['SKIMCOSD']={'-s':'SKIM:all',
00657                    '--conditions':'auto:com10',
00658                    '--data':'',
00659                    '--scenario':'cosmics',
00660                    '--filein':'file:step2.root',
00661                    '--secondfilein':'filelist:step1_dbsquery.log'}
00662                  
00663 
00664 #### for special wfs ###
00665 #steps['TTbar_REDIGI_RERECO']=merge([{'cfg':'TTbar_Tauola_8TeV_cfi',
00666 #                                     '-s':'GEN,SIM,DIGI,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco,RECO,ALCA:MuAlCalIsolatedMu+DtCalib,VALIDATION,DQM',
00667 #                                     '--datatier':'GEN-SIM-DIGI-RAW-HLTDEBUG-RECO,DQM',
00668 #                                     '--eventcontent':'FEVTDEBUGHLT,DQM'},
00669 #                                    K9by50,stCond,step1Defaults])
00670 #steps['DIGI2RECO']=merge([{'-s':'DIGI,L1,DIGI2RAW,HLT:@relval,RAW2DIGI,L1Reco,RECO,VALIDATION,DQM',
00671 #                           '--filtername':'DIGItoRECO',
00672 #                           '--process':'RECO',
00673 #                           '--eventcontent':'RECOSIM,DQM',
00674 #                           '--datatier':'GEN-SIM-RECO,DQM',
00675 #                           },
00676 #                            stCond,step3Defaults])
00677 steps['RECOFROMRECO']=merge([{'-s':'RECO',
00678                               '--filtername':'RECOfromRECO',
00679                               '--process':'reRECO',
00680                               '--datatier':'AODSIM',
00681                               '--eventcontent':'AODSIM',
00682                               },
00683                              stCond,step3Defaults])
00684 
00685 
00686 steps['RECOFROMRECOSt2']=steps['RECOFROMRECO']
00687 
00688 steps['RECODFROMRAWRECO']=merge([{'-s':'RAW2DIGI:RawToDigi_noTk,L1Reco,RECO:reconstruction_noTracking',
00689                                   '--filtername':'RECOfromRAWRECO',
00690                                   '--process':'rereRECO',
00691                                   '--datatier':'AOD',
00692                                   '--eventcontent':'AOD',
00693                                   '--secondfilein':'filelist:step1_dbsquery.log',
00694                                   },
00695                                  steps['RECOD']])
00696 
00697 
00698 ### over write a few things to add PU to every sample in the standard set
00699 #steps.overwrite('DIGI',steps['DIGIPU1'])
00700 #steps.overwrite('RECO',steps['RECOPU1'])
00701