00001
00002 InputInfoNDefault=2000000
00003 class InputInfo(object):
00004 def __init__(self,dataSet,label='',run=0,files=1000,events=InputInfoNDefault,location='CAF') :
00005 self.run = run
00006 self.files = files
00007 self.events = events
00008 self.location = location
00009 self.label = label
00010 self.dataSet = dataSet
00011
00012
00013 def merge(dictlist,TELL=False):
00014 import copy
00015 last=len(dictlist)-1
00016 if TELL: print last,dictlist
00017 if last==0:
00018
00019 return copy.copy(dictlist[0])
00020 else:
00021 reducedlist=dictlist[0:max(0,last-1)]
00022 if TELL: print reducedlist
00023
00024 d=copy.copy(dictlist[last])
00025
00026 d.update(dictlist[last-1])
00027
00028 reducedlist.append(d)
00029 return merge(reducedlist,TELL)
00030
00031
00032
00033 step1Defaults = {'--relval' : None,
00034 '-s' : 'GEN,SIM',
00035 '-n' : 10,
00036 '--conditions' : 'auto:startup',
00037 '--datatier' : 'GEN-SIM',
00038 '--eventcontent': 'RAWSIM',
00039 }
00040
00041 step1 = {}
00042
00043
00044 step1['ProdMinBias']=merge([{'cfg':'MinBias_7TeV_cfi','--relval':'9000,100'},step1Defaults])
00045 step1['ProdTTbar']=merge([{'cfg':'TTbar_Tauola_7TeV_cfi','--relval':'9000,50'},step1Defaults])
00046 step1['ProdQCD_Pt_3000_3500']=merge([{'cfg':'QCD_Pt_3000_3500_7TeV_cfi','--relval':'9000,25'},step1Defaults])
00047
00048
00049
00050
00051
00052
00053
00054
00055 step1['MinimumBias2010A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2010A-valskim-v6/RAW-RECO',label='run2010A',location='STD')}
00056 step1['MinimumBias2010B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2010B-valskim-v2/RAW-RECO',label='run2010B')}
00057 step1['WZMuSkim2010A']={'INPUT':InputInfo(dataSet='/Mu/Run2010A-WZMu-Nov4Skim_v1/RAW-RECO',label='wzMu2010A')}
00058 step1['WZMuSkim2010B']={'INPUT':InputInfo(dataSet='/Mu/Run2010B-WZMu-Nov4Skim_v1/RAW-RECO',label='wzMu2010B')}
00059 step1['WZEGSkim2010A']={'INPUT':InputInfo(dataSet='/EG/Run2010A-WZEG-Nov4Skim_v1/RAW-RECO',label='wzEG2010A')}
00060 step1['WZEGSkim2010B']={'INPUT':InputInfo(dataSet='/Electron/Run2010B-WZEG-Nov4Skim_v1/RAW-RECO',label='wzEG2010B')}
00061
00062 step1['RunCosmicsA']={'INPUT':InputInfo(dataSet='/Cosmics/Run2010A-v1/RAW',label='cos2010A',run=142089,events=100000)}
00063 Run2010B=149011
00064 step1['RunMinBias2010B']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2010B-RelValRawSkim-v1/RAW',label='mb2010B',run=Run2010B,events=100000)}
00065 step1['RunMu2010B']={'INPUT':InputInfo(dataSet='/Mu/Run2010B-RelValRawSkim-v1/RAW',label='mu2010B',run=Run2010B,events=100000)}
00066 step1['RunElectron2010B']={'INPUT':InputInfo(dataSet='/Electron/Run2010B-RelValRawSkim-v1/RAW',label='electron2010B',run=Run2010B,events=100000)}
00067 step1['RunPhoton2010B']={'INPUT':InputInfo(dataSet='/Photon/Run2010B-RelValRawSkim-v1/RAW',label='photon2010B',run=Run2010B,events=100000)}
00068 step1['RunJet2010B']={'INPUT':InputInfo(dataSet='/Jet/Run2010B-RelValRawSkim-v1/RAW',label='jet2010B',run=Run2010B,events=100000)}
00069
00070 step1['ValSkim2011A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2011A-ValSkim-PromptSkim-v6/RAW-RECO',label='run2011A',location='STD')}
00071 step1['WMuSkim2011A']={'INPUT':InputInfo(dataSet='/SingleMu/Run2011A-WMu-PromptSkim-v6/RAW-RECO',label='wMu2011A',location='STD')}
00072 step1['WElSkim2011A']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2011A-WElectron-PromptSkim-v6/RAW-RECO',label='wEl2011A',location='STD')}
00073 step1['ZMuSkim2011A']={'INPUT':InputInfo(dataSet='/DoubleMu/Run2011A-ZMu-PromptSkim-v6/RAW-RECO',label='zMu2011A',location='STD')}
00074 step1['ZElSkim2011A']={'INPUT':InputInfo(dataSet='/DoubleElectron/Run2011A-ZElectron-PromptSkim-v6/RAW-RECO',label='zEl2011A',location='STD')}
00075 step1['HighMet2011A']={'INPUT':InputInfo(dataSet='/Jet/Run2011A-HighMET-PromptSkim-v6/RAW-RECO',label='hMet2011A',location='STD')}
00076
00077 step1['RunCosmics2011A']={'INPUT':InputInfo(dataSet='/Cosmics/Run2011A-v1/RAW',label='cos2011A',run=160960,events=100000,location='STD')}
00078 Run2011A=165121
00079 step1['RunMinBias2011A']={'INPUT':InputInfo(dataSet='/MinimumBias/Run2011A-v1/RAW',label='mb2011A',run=Run2011A,events=100000,location='STD')}
00080 step1['RunMu2011A']={'INPUT':InputInfo(dataSet='/SingleMu/Run2011A-v1/RAW',label='mu2011A',run=Run2011A,events=100000)}
00081 step1['RunElectron2011A']={'INPUT':InputInfo(dataSet='/SingleElectron/Run2011A-v1/RAW',label='electron2011A',run=Run2011A,events=100000)}
00082 step1['RunPhoton2011A']={'INPUT':InputInfo(dataSet='/Photon/Run2011A-v1/RAW',label='photon2011A',run=Run2011A,events=100000)}
00083 step1['RunJet2011A']={'INPUT':InputInfo(dataSet='/Jet/Run2011A-v1/RAW',label='jet2011A',run=Run2011A,events=100000)}
00084
00085 step1['RunHI2010']={'INPUT':InputInfo(dataSet='/HIAllPhysics/HIRun2010-v1/RAW',label='hi2010',run=152957,events=100000,location='STD')}
00086 step1['RunHI2011']={'INPUT':InputInfo(dataSet='/HIAllPhysics/HIRun2011A-v1/RAW',label='hi2011',run=174773,events=100000,location='STD')}
00087
00088
00089
00090 stCond={'--conditions':'auto:startup'}
00091 K9by25={'--relval':'9000,25'}
00092 K9by50={'--relval':'9000,50'}
00093 K9by100={'--relval':'9000,100'}
00094 K9by250={'--relval':'9000,250'}
00095 K25by250={'--relval':'25000,250'}
00096
00097 def gen(fragment,howMuch):
00098 global step1Defaults
00099 return merge([{'cfg':fragment},howMuch,step1Defaults])
00100
00101 step1['MinBias']=gen('MinBias_7TeV_cfi',K9by100)
00102 step1['QCD_Pt_3000_3500']=gen('QCD_Pt_3000_3500_7TeV_cfi',K9by25)
00103 step1['QCD_Pt_80_120']=gen('QCD_Pt_80_120_7TeV_cfi',K9by50)
00104 step1['SingleElectronPt10']=gen('SingleElectronPt10_cfi',K9by250)
00105 step1['SingleElectronPt35']=gen('SingleElectronPt35_cfi',K9by250)
00106 step1['SingleGammaPt10']=gen('SingleGammaPt10_cfi',K9by100)
00107 step1['SingleGammaPt35']=gen('SingleGammaPt35_cfi',K9by100)
00108 step1['SingleMuPt10']=gen('SingleMuPt10_cfi',K25by250)
00109 step1['SingleMuPt100']=gen('SingleMuPt100_cfi',K9by250)
00110 step1['SingleMuPt1000']=gen('SingleMuPt1000_cfi',K9by100)
00111 step1['TTbar']=gen('TTbar_Tauola_7TeV_cfi',K9by50)
00112 step1['ZEE']=gen('ZEE_7TeV_cfi',K9by100)
00113 step1['Wjet_Pt_80_120']=gen('Wjet_Pt_80_120_7TeV_cfi',K9by100)
00114 step1['Wjet_Pt_3000_3500']=gen('Wjet_Pt_3000_3500_7TeV_cfi',K9by100)
00115 step1['LM1_sfts']=gen('LM1_sfts_7TeV_cfi',K9by100)
00116 step1['QCD_FlatPt_15_3000']=gen('QCDForPF_7TeV_cfi',K9by100)
00117
00118 step1['MinBiasINPUT']={'INPUT':InputInfo(dataSet='/RelValMinBias/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00119 step1['QCD_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_3000_3500/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00120 step1['QCD_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_80_120/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00121 step1['SingleElectronPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt10/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00122 step1['SingleElectronPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt35/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00123 step1['SingleGammaPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt10/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00124 step1['SingleGammaPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt35/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00125 step1['SingleMuPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt10/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00126 step1['SingleMuPt100INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt100/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00127 step1['SingleMuPt1000INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt1000/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00128 step1['TTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00129 step1['OldTTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/CMSSW_4_2_6-START42_V12-v1/GEN-SIM-RECO',location='STD')}
00130 step1['ZEEINPUT']={'INPUT':InputInfo(dataSet='/RelValZEE/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00131 step1['Wjet_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_80_120/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00132 step1['Wjet_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_3000_3500/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00133 step1['LM1_sftsINPUT']={'INPUT':InputInfo(dataSet='/RelValLM1_sfts/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00134 step1['QCD_FlatPt_15_3000INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_FlatPt_15_3000/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00135
00136
00137 K700by280={'--relval': '70000,280'}
00138 K250by100={'--relval': '25000,100'}
00139 K3250000by1300000={'--relval': '325000000,1300000'}
00140 K250by250={'--relval': '25000,250'}
00141 K110000by45000={'--relval': '11000000,45000'}
00142 K562by225={'--relval': '56250,225'}
00143
00144 ecalHcal={
00145 '-s':'GEN,SIM,DIGI,DIGI2RAW,RAW2DIGI,L1Reco,RECO',
00146 '--datatier':'GEN-SIM-DIGI-RAW-RECO',
00147
00148 '--eventcontent':'FEVTDEBUG',
00149 '--customise':'Validation/Configuration/ECALHCAL.customise',
00150 '--beamspot':'NoSmear'}
00151 step1['SingleElectronE120EHCAL']=merge([{'cfg':'SingleElectronE120EHCAL_cfi'},ecalHcal,K25by250,step1Defaults])
00152 step1['SinglePiE50HCAL']=merge([{'cfg':'SinglePiE50HCAL_cfi'},ecalHcal,K25by250,step1Defaults])
00153
00154 step1['MinBiasHS']=gen('MinBias_7TeV_cfi',K25by250)
00155 step1['InclusiveppMuX']=gen('InclusiveppMuX_7TeV_cfi',K110000by45000)
00156 step1['SingleElectronFlatPt5To100']=gen('SingleElectronFlatPt5To100_cfi',K250by250)
00157 step1['SinglePiPt1']=gen('SinglePiPt1_cfi',K250by250)
00158 step1['SingleMuPt1']=gen('SingleMuPt1_cfi',K250by250)
00159 step1['ZPrime5000Dijet']=gen('ZPrime5000JJ_7TeV_cfi',K250by100)
00160 step1['SinglePi0E10']=gen('SinglePi0E10_cfi',K250by100)
00161 step1['SinglePiPt10']=gen('SinglePiPt10_cfi',K250by250)
00162 step1['SingleGammaFlatPt10To100']=gen('SingleGammaFlatPt10To100_cfi',K250by250)
00163 step1['SingleTauPt50Pythia']=gen('SingleTaupt_50_cfi',K250by100)
00164 step1['SinglePiPt100']=gen('SinglePiPt100_cfi',K250by250)
00165
00166
00167 def genS(fragment,howMuch):
00168 global step1Defaults,stCond
00169 return merge([{'cfg':fragment},stCond,howMuch,step1Defaults])
00170
00171
00172 step1['Higgs200ChargedTaus']=genS('H200ChargedTaus_Tauola_7TeV_cfi',K9by100)
00173
00174
00175 step1['JpsiMM']=genS('JpsiMM_7TeV_cfi',{'--relval':'65250,725'})
00176
00177 step1['WE']=genS('WE_7TeV_cfi',K9by100)
00178 step1['WM']=genS('WM_7TeV_cfi',K9by100)
00179
00180 step1['ZMM']=genS('ZMM_7TeV_cfi',{'--relval':'18000,200'})
00181 step1['ZTT']=genS('ZTT_Tauola_All_hadronic_7TeV_cfi',K9by100)
00182 step1['H130GGgluonfusion']=genS('H130GGgluonfusion_7TeV_cfi',K9by100)
00183 step1['PhotonJets_Pt_10']=genS('PhotonJet_Pt_10_7TeV_cfi',K9by100)
00184 step1['QQH1352T_Tauola']=genS('QQH1352T_Tauola_7TeV_cfi',K9by100)
00185
00186 step1['MinBias2INPUT']={'INPUT':InputInfo(dataSet='/RelValMinBias/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00187 step1['Higgs200ChargedTausINPUT']={'INPUT':InputInfo(dataSet='/RelValHiggs200ChargedTaus/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00188 step1['QCD_Pt_3000_3500_2INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_3000_3500/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00189 step1['QCD_Pt_80_120_2INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_80_120/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00190 step1['JpsiMMINPUT']={'INPUT':InputInfo(dataSet='/RelValJpsiMM/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00191 step1['TTbar2INPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00192 step1['WEINPUT']={'INPUT':InputInfo(dataSet='/RelValWE/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00193 step1['WMINPUT']={'INPUT':InputInfo(dataSet='/RelValWM/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00194 step1['ZEE2INPUT']={'INPUT':InputInfo(dataSet='/RelValZEE/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00195 step1['ZMMINPUT']={'INPUT':InputInfo(dataSet='/RelValZMM/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00196 step1['ZTTINPUT']={'INPUT':InputInfo(dataSet='/RelValZTT/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00197 step1['H130GGgluonfusionINPUT']={'INPUT':InputInfo(dataSet='/RelValH130GGgluonfusion/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00198 step1['PhotonJets_Pt_10INPUT']={'INPUT':InputInfo(dataSet='/RelValPhotonJets_Pt_10/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00199 step1['QQH1352T_TauolaINPUT']={'INPUT':InputInfo(dataSet='/RelValQQH1352T_Tauola/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00200
00201 step1['Cosmics']=merge([{'cfg':'UndergroundCosmicMu_cfi.py','--relval':'666000,7400','--scenario':'cosmics'},step1Defaults])
00202 step1['BeamHalo']=merge([{'cfg':'BeamHalo_cfi.py','--scenario':'cosmics'},K9by100,step1Defaults])
00203
00204 step1['CosmicsINPUT']={'INPUT':InputInfo(dataSet='/RelValCosmics/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00205 step1['BeamHaloINPUT']={'INPUT':InputInfo(dataSet='/RelValBeamHalo/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM',location='STD')}
00206
00207 step1['QCD_Pt_50_80']=genS('QCD_Pt_50_80_7TeV_cfi',K250by100)
00208 step1['QCD_Pt_15_20']=genS('QCD_Pt_15_20_7TeV_cfi',K250by100)
00209 step1['ZTTHS']=merge([K250by100,step1['ZTT']])
00210 step1['QQH120Inv']=genS('QQH120Inv_7TeV_cfi',K250by100)
00211 step1['TTbar2HS']=merge([K250by100,step1['TTbar']])
00212 step1['JpsiMM_Pt_20_inf']=genS('JpsiMM_Pt_20_inf_7TeV_cfi',K700by280)
00213 step1['QCD_Pt_120_170']=genS('QCD_Pt_120_170_7TeV_cfi',K250by100)
00214 step1['H165WW2L']=genS('H165WW2L_Tauola_7TeV_cfi',K250by100)
00215 step1['UpsMM']=genS('UpsMM_7TeV_cfi',K562by225)
00216 step1['RSGrav']=genS('RS750_quarks_and_leptons_7TeV_cff',K250by100)
00217 step1['QCD_Pt_80_120_2HS']=merge([K250by100,step1['QCD_Pt_80_120']])
00218 step1['bJpsiX']=genS('bJpsiX_7TeV_cfi',K3250000by1300000)
00219 step1['QCD_Pt_30_50']=genS('QCD_Pt_30_50_7TeV_cfi',K250by100)
00220 step1['H200ZZ4L']=genS('H200ZZ4L_Tauola_7TeV_cfi',K250by100)
00221 step1['LM9p']=genS('LM9p_7TeV_cff',K250by100)
00222 step1['QCD_Pt_20_30']=genS('QCD_Pt_20_30_7TeV_cfi',K250by100)
00223 step1['QCD_Pt_170_230']=genS('QCD_Pt_170_230_7TeV_cfi',K250by100)
00224
00225
00226 U500by5={'--relval': '500,5'}
00227 U80by2={'--relval': '80,2'}
00228 hiDefaults={'--conditions':'auto:starthi',
00229 '--scenario':'HeavyIons'}
00230
00231 step1['HydjetQ_MinBias_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_MinBias_2760GeV_cfi',U500by5)])
00232 step1['HydjetQ_MinBias_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_MinBias_2760GeV/CMSSW_4_4_2_patch10-STARTHI44_V6_special_120119-v1/GEN-SIM',location='STD')}
00233 step1['HydjetQ_B0_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_B0_2760GeV_cfi',U80by2)])
00234 step1['HydjetQ_B0_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B0_2760GeV/CMSSW_4_4_2_patch10-STARTHI44_V6_special_120119-v1/GEN-SIM')}
00235 step1['HydjetQ_B0_2760GeVPUINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B0_2760GeV/CMSSW_4_4_2_patch10-STARTHI44_V6_special_120119-v1/GEN-SIM')}
00236 step1['HydjetQ_B8_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_B8_2760GeV_cfi',U80by2)])
00237 step1['HydjetQ_B8_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B8_2760GeV/CMSSW_4_4_2_patch10-STARTHI44_V6_special_120119-v1/GEN-SIM',location='STD')}
00238
00239
00240
00241
00242 def changeRefRelease(step1s,listOfPairs):
00243 for s in step1s:
00244 if ('INPUT' in step1s[s]):
00245 oldD=step1[s]['INPUT'].dataSet
00246 for ref,newRef in listOfPairs:
00247 if ref in oldD:
00248 step1[s]['INPUT'].dataSet=oldD.replace(ref,newRef)
00249
00250 def addForAll(steps,d):
00251 for s in steps:
00252 steps[s].update(d)
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262 step1FastDefaults =merge([{'-s':'GEN,FASTSIM,HLT:GRun,VALIDATION',
00263 '--eventcontent':'FEVTDEBUGHLT',
00264 '--datatier':'GEN-SIM-DIGI-RECO',
00265 '--relval':'27000,1000'},
00266 step1Defaults])
00267 K100byK1={'--relval':'100000,1000'}
00268 step1['TTbarFS']=merge([{'cfg':'TTbar_Tauola_7TeV_cfi'},K100byK1,step1FastDefaults])
00269
00270 step1['SingleMuPt1FS']=merge([{'cfg':'SingleMuPt1_cfi'},step1FastDefaults])
00271 step1['SingleMuPt10FS']=merge([{'cfg':'SingleMuPt10_cfi'},step1FastDefaults])
00272 step1['SingleMuPt100FS']=merge([{'cfg':'SingleMuPt100_cfi'},step1FastDefaults])
00273 step1['SinglePiPt1FS']=merge([{'cfg':'SinglePiPt1_cfi'},step1FastDefaults])
00274 step1['SinglePiPt10FS']=merge([{'cfg':'SinglePiPt10_cfi'},step1FastDefaults])
00275 step1['SinglePiPt100FS']=merge([{'cfg':'SinglePiPt100_cfi'},step1FastDefaults])
00276 step1['ZEEFS']=merge([{'cfg':'ZEE_7TeV_cfi'},K100byK1,step1FastDefaults])
00277
00278 step1['ZTTFS']=merge([{'cfg':'ZTT_Tauola_OneLepton_OtherHadrons_7TeV_cfi'},K100byK1,step1FastDefaults])
00279
00280 step1['QCDFlatPt153000FS']=merge([{'cfg':'QCDForPF_7TeV_cfi'},step1FastDefaults])
00281 step1['QCD_Pt_80_120FS']=merge([{'cfg':'QCD_Pt_80_120_7TeV_cfi'},K100byK1,stCond,step1FastDefaults])
00282 step1['QCD_Pt_3000_3500FS']=merge([{'cfg':'QCD_Pt_3000_3500_7TeV_cfi'},K100byK1,stCond,step1FastDefaults])
00283 step1['H130GGgluonfusionFS']=merge([{'cfg':'H130GGgluonfusion_7TeV_cfi'},step1FastDefaults])
00284 step1['SingleGammaFlatPt10To10FS']=merge([{'cfg':'SingleGammaFlatPt10To100_cfi'},K100byK1,step1FastDefaults])
00285
00286
00287 step1GenDefaults=merge([{'-s':'GEN,VALIDATION:genvalid',
00288 '--relval':'1000000,20000',
00289 '--eventcontent':'RAWSIM',
00290 '--datatier':'GEN'},
00291 step1Defaults])
00292 def genvalid(fragment,d,suffix='',fi=''):
00293 import copy
00294 c=copy.copy(d)
00295 if suffix:
00296 c['-s']=c['-s'].replace('genvalid','genvalid_'+suffix)
00297 if fi:
00298 c['--filein']='lhe:%d'%(fi,)
00299 c['cfg']=fragment
00300 return c
00301
00302 step1['QCD_Pt-30_7TeV_herwigpp']=genvalid('QCD_Pt_30_7TeV_herwigpp_cff',step1GenDefaults,'qcd')
00303 step1['DYToLL_M-50_TuneZ2_7TeV_pythia6-tauola']=genvalid('DYToLL_M_50_TuneZ2_7TeV_pythia6_tauola_cff',step1GenDefaults,'dy')
00304 step1['QCD_Pt-30_TuneZ2_7TeV_pythia6']=genvalid('QCD_Pt_30_TuneZ2_7TeV_pythia6_cff',step1GenDefaults,'qcd')
00305 step1['QCD_Pt-30_7TeV_pythia8']=genvalid('QCD_Pt_30_7TeV_pythia8_cff',step1GenDefaults,'qcd')
00306 step1['GluGluTo2Jets_M-100_7TeV_exhume']=genvalid('GluGluTo2Jets_M_100_7TeV_exhume_cff',step1GenDefaults,'qcd')
00307 step1['TT_TuneZ2_7TeV_pythia6-evtgen']=genvalid('TT_TuneZ2_7TeV_pythia6_evtgen_cff',step1GenDefaults)
00308 step1['MinBias_TuneZ2_7TeV_pythia6']=genvalid('MinBias_TuneZ2_7TeV_pythia6_cff',step1GenDefaults,'qcd')
00309 step1['WToLNu_TuneZ2_7TeV_pythia6-tauola']=genvalid('WToLNu_TuneZ2_7TeV_pythia6_tauola_cff',step1GenDefaults,'w')
00310 step1['QCD_Pt-30_7TeV_herwig6']=genvalid('QCD_Pt_30_7TeV_herwig6_cff',step1GenDefaults,'qcd')
00311 step1['MinBias_7TeV_pythia8']=genvalid('MinBias_7TeV_pythia8_cff',step1GenDefaults,'qcd')
00312
00313 step1['DYToMuMu_M-20_7TeV_mcatnlo']=genvalid('DYToMuMu_M_20_7TeV_mcatnlo_cff',step1GenDefaults,'dy',664)
00314 step1['TT_7TeV_mcatnlo']=genvalid('TT_7TeV_mcatnlo_cff',step1GenDefaults,'',346)
00315 step1['WminusToENu_7TeV_mcatnlo']=genvalid('WminusToENu_7TeV_mcatnlo_cff',step1GenDefaults,'w',666)
00316 step1['WminusToMuNu_7TeV_mcatnlo']=genvalid('WminusToMuNu_7TeV_mcatnlo_cff',step1GenDefaults,'w',668)
00317 step1['WplusToENu_7TeV_mcatnlo']=genvalid('WplusToENu_7TeV_mcatnlo_cff',step1GenDefaults,'w',665)
00318 step1['WplusToMuNu_7TeV_mcatnlo']=genvalid('WplusToMuNu_7TeV_mcatnlo_cff',step1GenDefaults,'w',667)
00319 step1['QCD_Ht-100To250_TuneD6T_7TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneD6T_7TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',546)
00320 step1['QCD_Ht-250To500_TuneD6T_7TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneD6T_7TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',592)
00321 step1['QCD_Ht-500To1000_TuneD6T_7TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneD6T_7TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',594)
00322 step1['TTJets_TuneD6T_7TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneD6T_7TeV_madgraph_tauola_cff',step1GenDefaults,'',846)
00323 step1['WJetsLNu_TuneD6T_7TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneD6T_7TeV_madgraph_tauola_cff',step1GenDefaults,'w',882)
00324 step1['ZJetsLNu_TuneD6T_7TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneD6T_7TeV_madgraph_tauola_cff',step1GenDefaults,'dy',851)
00325 step1['QCD2Jets_Pt-40To120_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'qcd',785)
00326 step1['QCD3Jets_Pt-40To120_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'qcd',786)
00327 step1['QCD4Jets_Pt-40To120_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'qcd',787)
00328 step1['QCD5Jets_Pt-40To120_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'qcd',832)
00329 step1['TT0Jets_Et-40_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et48ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'',472)
00330 step1['TT1Jets_Et-40_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et48ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'',475)
00331 step1['TT2Jets_Et-40_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et48ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'',478)
00332 step1['TT3Jets_Et-40_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et48ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'',481)
00333 step1['W0Jets_Pt-0To100_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'w',397)
00334 step1['W1Jets_Pt-0To100_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'w',398)
00335 step1['W2Jets_Pt-0To100_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'w',399)
00336 step1['W3Jets_Pt-0To100_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'w',400)
00337 step1['Z0Jets_Pt-0To100_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'dy',440)
00338 step1['Z1Jets_Pt-0To100_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'dy',441)
00339 step1['Z2Jets_Pt-0To100_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'dy',442)
00340 step1['Z3Jets-Pt_0To100_TuneZ2_7TeV_alpgen_tauola']=genvalid('Hadronizer_Et20ExclTuneZ2_7TeV_alpgen_tauola_cff',step1GenDefaults,'dy',443)
00341
00342
00343 PU1={'--pileup':'E7TeV_FlatDist10_2011EarlyData_50ns_PoissonOOT','--pileup_input':'dbs:/RelValProdMinBias/CMSSW_4_4_2_patch10-START44_V7_special_120119-v1/GEN-SIM-RAW'}
00344 step1['ZmumuJets_Pt_20_300PU1']=merge([gen('ZmumuJets_Pt_20_300_GEN_7TeV_cfg',K250by100),PU1])
00345 step1['TTbarPU2']=merge([step1['TTbar'],PU1])
00346
00347 step1['TTbarFSPU']=merge([{'--pileup':'FlatDist10_2011EarlyData_50ns'},step1['TTbarFS']])
00348
00349
00350
00351
00352
00353 step2Defaults = { 'cfg' : 'step2',
00354 '-s' : 'DIGI,L1,DIGI2RAW,HLT,RAW2DIGI,L1Reco',
00355 '--datatier' : 'GEN-SIM-DIGI-RAW-HLTDEBUG',
00356 '--eventcontent': 'FEVTDEBUGHLT',
00357 '--conditions' : 'auto:startup',
00358 }
00359
00360 step2 = {}
00361
00362 step2['DIGIPROD1']=merge([{'--eventcontent':'RAWSIM','--datatier':'GEN-SIM-RAW'},step2Defaults])
00363 step2['DIGI']=merge([step2Defaults])
00364
00365 step2['DIGICOS']=merge([{'--scenario':'cosmics','--eventcontent':'FEVTDEBUG','--datatier':'GEN-SIM-DIGI-RAW'},stCond,step2Defaults])
00366
00367 step2['DIGIPU1']=merge([step2['DIGI'],PU1])
00368
00369 step2['DIGIHI']=merge([{'--inputCommands':'"keep *","drop *_simEcalPreshowerDigis_*_*"','-n':10},hiDefaults,step2Defaults])
00370
00371
00372
00373
00374 dataReco={'--conditions':'auto:com10',
00375 '-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBias,DQM',
00376 '--datatier':'RECO,DQMROOT',
00377 '--eventcontent':'RECO,DQMROOT',
00378 '--data':'',
00379 '--magField':'AutoFromDBCurrent',
00380 '--customise':'Configuration/DataProcessing/RecoTLR.customisePPData',
00381 '--process':'reRECO',
00382 '--scenario':'pp',
00383 }
00384 step2['RECOD']=merge([{'--scenario':'pp',},dataReco])
00385 step2['RECOSKIMALCA']=merge([{'--inputCommands':'"keep *","drop *_*_*_RECO"'
00386 },step2['RECOD']])
00387 step2['RECOSKIM']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,DQM',
00388 },step2['RECOSKIMALCA']])
00389
00390 step2['REPACKHID']=merge([{'--scenario':'HeavyIons',
00391 '-s':'RAW2DIGI,REPACK',
00392 '--datatier':'RAW',
00393 '--eventcontent':'REPACKRAW'},
00394 step2['RECOD']])
00395 step2['REPACKHID'].pop('--customise')
00396 step2['RECOHID10']=merge([{'--scenario':'HeavyIons',
00397 '-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBiasHI+HcalCalMinBias+DtCalibHI,DQM',
00398 '--customise':'Configuration/DataProcessing/RecoTLR.customiseCommonHI',
00399 '--datatier':'RECO,DQMROOT',
00400 '--eventcontent':'RECO,DQMROOT'},
00401 step2['RECOD']])
00402 step2['RECOHID11']=merge([{'--repacked':''},
00403 step2['RECOHID10']])
00404 step2['RECOHID10']['-s']+=',REPACK'
00405 step2['RECOHID10']['--datatier']+=',RAW'
00406 step2['RECOHID10']['--eventcontent']+=',REPACKRAW'
00407
00408 step2['TIER0']=merge([{'--customise':'Configuration/DataProcessing/RecoTLR.customisePrompt',
00409 '-s':'RAW2DIGI,L1Reco,RECO,ALCAPRODUCER:@AllForPrompt,L1HwVal,DQM,ENDJOB',
00410 '--datatier':'RECO,AOD,ALCARECO,DQMROOT',
00411 '--eventcontent':'RECO,AOD,ALCARECO,DQMROOT',
00412 '--process':'RECO'
00413 },dataReco])
00414
00415 step2['TIER0EXP']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCAPRODUCER:@StreamExpress,L1HwVal,DQM,ENDJOB',
00416 '--datatier':'ALCARECO,DQM',
00417 '--eventcontent':'ALCARECO,DQM',
00418 '--customise':'Configuration/DataProcessing/RecoTLR.customiseExpress',
00419 },step2['TIER0']])
00420
00421 step2['RECOCOSD']=merge([{'--scenario':'cosmics',
00422 '-s':'RAW2DIGI,L1Reco,RECO,L1HwVal,DQM,ALCA:MuAlCalIsolatedMu+DtCalib',
00423 '--customise':'Configuration/DataProcessing/RecoTLR.customiseCosmicData'
00424 },dataReco])
00425
00426 step2HImixDefaults=merge([{'-n':'10',
00427 '--himix':'',
00428 '--filein':'file.root',
00429 '--process':'HISIGNAL'
00430 },hiDefaults,step1Defaults])
00431 step2['Pyquen_GammaJet_pt20_2760GeV']=merge([{'cfg':'Pyquen_GammaJet_pt20_2760GeV_cfi'},step2HImixDefaults])
00432 step2['Pyquen_DiJet_pt80to120_2760GeV']=merge([{'cfg':'Pyquen_DiJet_pt80to120_2760GeV_cfi'},step2HImixDefaults])
00433 step2['Pyquen_ZeemumuJets_pt10_2760GeV']=merge([{'cfg':'Pyquen_ZeemumuJets_pt10_2760GeV_cfi'},step2HImixDefaults])
00434
00435
00436 step3Defaults = { 'cfg' : 'step3',
00437 '-s' : 'RAW2DIGI,L1Reco,RECO,VALIDATION,DQM',
00438
00439 '--conditions' : 'auto:startup',
00440 '--no_exec' : '',
00441 '--datatier' : 'GEN-SIM-RECO,DQM',
00442 '--eventcontent': 'RECOSIM,DQM'
00443 }
00444
00445 step3 = {}
00446
00447 step3['RECO']=merge([step3Defaults])
00448
00449 step3['RECOPROD1']=merge([{ '-s' : 'RAW2DIGI,L1Reco,RECO', '--datatier' : 'GEN-SIM-RECO,AODSIM', '--eventcontent' : 'RECOSIM,AODSIM'},step3Defaults])
00450 step3['RECOMU']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCA:@Mu','--datatier':'GEN-SIM-RECO','--eventcontent':'RECOSIM'},stCond,step3Defaults])
00451 step3['RECOCOS']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCA:MuAlCalIsolatedMu,DQM','--datatier':'GEN-SIM-RECO','--eventcontent':'RECOSIM','--scenario':'cosmics'},stCond,step3Defaults])
00452 step3['RECOMIN']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiStripCalMinBias+EcalCalPhiSym+EcalCalPi0Calib+EcalCalEtaCalib,VALIDATION,DQM'},stCond,step3Defaults])
00453 step3['RECOQCD']=merge([{'-s':'RAW2DIGI,L1Reco,RECO,ALCA:@QCD,VALIDATION,DQM'},stCond,step3Defaults])
00454
00455 step3['RECOPU1']=merge([step3['RECO'],PU1])
00456
00457 step3['RECOHI']=merge([hiDefaults,step3Defaults])
00458 step3['DIGIHISt3']=step2['DIGIHI']
00459
00460 step3['RECOHID11St3']=merge([{'cfg':'step3',
00461 '--process':'ZStoRECO'},
00462 step2['RECOHID11']])
00463 step3['RECOHIR10D11']=merge([{'--filein':'file:step2_inREPACKRAW.root',
00464 '--filtername':'reRECO'},
00465 step3['RECOHID11St3']])
00466
00467
00468
00469
00470 step3['ALCACOSD']={'--conditions':'auto:com10',
00471 '--datatier':'ALCARECO',
00472 '--eventcontent':'ALCARECO',
00473 '--scenario':'cosmics',
00474 '-s':'ALCA:TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DQM'
00475 }
00476 step3['ALCAPROMPT']={'-s':'ALCA:PromptCalibProd',
00477 '--filein':'file:TkAlMinBias.root',
00478 '--conditions':'auto:com10',
00479 '--datatier':'ALCARECO',
00480 '--eventcontent':'ALCARECO'}
00481
00482 step3['HARVESTD']={'-s':'HARVESTING:dqmHarvesting',
00483 '--conditions':'auto:com10',
00484 '--filein':'file:step2_inDQM.root',
00485 '--filetype':'DQM',
00486 '--data':'',
00487 '--scenario':'pp'}
00488
00489
00490 step4Defaults = { 'cfg' : 'step4',
00491 '-s' : 'ALCA:TkAlMuonIsolated+TkAlMinBias+EcalCalElectron+HcalCalIsoTrk+MuAlOverlaps',
00492 '-n' : 1000,
00493
00494 '--conditions' : 'auto:startup',
00495 '--datatier' : 'ALCARECO',
00496 '--eventcontent': 'ALCARECO',
00497 }
00498 step4 = {}
00499
00500 step4['ALCATT1']=merge([step4Defaults])
00501 step4['ALCATT2']=merge([stCond,step4Defaults])
00502 step4['ALCAMIN']=merge([{'-s':'ALCA:TkAlMinBias'},stCond,step4Defaults])
00503
00504
00505 step4['ALCACOS']=merge([{'-s':'ALCA:TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics'},stCond,step4Defaults])
00506 step4['ALCABH']=merge([{'-s':'ALCA:TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo'},stCond,step4Defaults])
00507 step4['ALCAELE']=merge([{'-s':'ALCA:EcalCalElectron'},stCond,step4Defaults])
00508
00509 step4['ALCAHARVD']={'-s':'ALCAHARVEST:BeamSpotByRun+BeamSpotByLumi',
00510 '--conditions':'auto:com10',
00511 '--scenario':'pp',
00512 '--data':'',
00513 '--filein':'file:PromptCalibProd.root'}
00514
00515 step4['RECOHISt4']=step3['RECOHI']
00516
00517 step3['ALCANZS']=merge([{'-s':'ALCA:HcalCalMinBias','cfg':'step3','--mc':''},step4Defaults])
00518 step2['HARVGEN']={'-s':'HARVESTING:genHarvesting',
00519 '--harvesting':'AtJobEnd',
00520 '--conditions':'auto:startup',
00521 '--mc':'',
00522 '--filein':'file:step1.root'
00523 }
00524
00525 step4['HARVEST']={'-s':'HARVESTING:validationHarvesting+dqmHarvesting',
00526 '--conditions':'auto:startup',
00527 '--mc':'',
00528 '--scenario':'pp'}
00529 step4['ALCASPLIT']={'-s':'ALCAOUTPUT:@AllForPrompt',
00530 '--conditions':'auto:com10',
00531 '--scenario':'pp',
00532 '--data':'',
00533 '--triggerResultsProcess':'RECO',
00534 '--filein':'file:step2_inALCARECO.root'}
00535
00536 step4['SKIMD']={'-s':'SKIM:all',
00537 '--conditions':'auto:com10',
00538 '--data':'',
00539 '--scenario':'pp',
00540 '--filein':'file:step2.root',
00541 '--secondfilein':'filelist:step1_dbsquery.log'}
00542
00543
00544 step4['SKIMCOSD']={'-s':'SKIM:all',
00545 '--conditions':'auto:com10',
00546 '--data':'',
00547 '--scenario':'cosmics',
00548 '--filein':'file:step2.root',
00549 '--secondfilein':'filelist:step1_dbsquery.log'}
00550
00551
00552
00553
00554
00555
00556
00557
00558
00559
00560
00561
00562
00563
00564
00565 step4['RECOFROMRECO']=merge([{'-s':'RECO',
00566 '--filtername':'RECOfromRECO',
00567 '--process':'reRECO',
00568 '--datatier':'AODSIM',
00569 '--eventcontent':'AODSIM',
00570 'cfg':'step4'},
00571 stCond,step3Defaults])
00572 step2['RECOFROMRECOSt2']=merge([{'cfg':'step2'},step4['RECOFROMRECO']])
00573 step3['RECODFROMRAWRECO']=merge([{'-s':'RAW2DIGI:RawToDigi_noTk,L1Reco,RECO:reconstruction_noTracking',
00574 '--filtername':'RECOfromRAWRECO',
00575 '--process':'rereRECO',
00576 '--datatier':'AOD',
00577 '--eventcontent':'AOD',
00578 '--secondfilein':'filelist:step1_dbsquery.log',
00579 'cfg':'step3'},
00580 step2['RECOD']])
00581
00582
00583
00584 stepList = [step1, step2, step3, step4]
00585
00586