CMS 3D CMS Logo

Classes | Functions | Variables

relval_steps Namespace Reference

Classes

class  InputInfo
class  Matrix
class  Steps
class  WF

Functions

def addForAll
def changeRefRelease
def gen
def genS
def genvalid
def merge

Variables

dictionary dataReco
dictionary ecalHcal
dictionary hiDefaults
dictionary K100by500 = {'--relval':'100000,500'}
dictionary K100byK2 = {'--relval':'100000,2000'}
dictionary K110000by45000 = {'--relval': '11000000,45000'}
dictionary K250by100 = {'--relval': '25000,100'}
dictionary K250by250 = {'--relval': '25000,250'}
dictionary K25by250 = {'--relval':'25000,250'}
dictionary K3250000by1300000 = {'--relval': '325000000,1300000'}
dictionary K50by100 = {'--relval':'50000,100'}
dictionary K562by225 = {'--relval': '56250,225'}
dictionary K700by280 = {'--relval': '70000,280'}
 high stat step1
dictionary K9by100 = {'--relval':'9000,100'}
dictionary K9by25 = {'--relval':'9000,25'}
dictionary K9by250 = {'--relval':'9000,250'}
dictionary K9by50 = {'--relval':'9000,50'}
dictionary K9by500 = {'--relval':'9000,500'}
list Run2010ASk = [138937,138934,138924,138923,139790,139789,139788,139787,144086,144085,144084,144083,144011]
 Production test section ####.
list Run2010B = [149011]
list Run2010BSk = [146644,147115,147929,148822,149011,149181,149182,149291,149294,149442]
list Run2011A = [165121]
list Run2011ASk = [165121,172802]
list Run2011B = [177719]
list Run2011BSk = [177719,177790,177096,175874]
list Run2012A = [191226]
list Run2012B = [194533]
list Run2012Bsk = Run2012B+[194912,195016]
dictionary stCond = {'--conditions':'auto:startup'}
 Standard release validation samples ####.
dictionary step1Defaults
tuple step1FastDefaults
 fastsim section #### no forseen to do things in two steps GEN-SIM then FASTIM->end: maybe later
tuple step1GenDefaults
 generator test section ####
dictionary step2Defaults
tuple step2HImixDefaults
dictionary step3Defaults
dictionary step4Defaults
tuple steps = Steps()
dictionary U500by5 = {'--relval': '500,5'}
 steps['MinBias2']=genS('MinBias_8TeV_cfi',K9by100)
dictionary U80by2 = {'--relval': '80,2'}

Function Documentation

def relval_steps::addForAll (   steps,
  d 
)

Definition at line 365 of file relval_steps.py.

00366                       :
00367     for s in steps:
00368         steps[s].update(d)
00369 
00370 

def relval_steps::changeRefRelease (   step1s,
  listOfPairs 
)

Definition at line 357 of file relval_steps.py.

00358                                         :
00359     for s in step1s:
00360         if ('INPUT' in step1s[s]):
00361             oldD=steps[s]['INPUT'].dataSet
00362             for (ref,newRef) in listOfPairs:
00363                 if  ref in oldD:
00364                     steps[s]['INPUT'].dataSet=oldD.replace(ref,newRef)
                                        
def relval_steps::gen (   fragment,
  howMuch 
)

Definition at line 196 of file relval_steps.py.

00197                          :
00198     global step1Defaults
00199     return merge([{'cfg':fragment},howMuch,step1Defaults])
00200 
00201 steps['MinBias']=gen('MinBias_8TeV_cfi',K9by100)
00202 steps['QCD_Pt_3000_3500']=gen('QCD_Pt_3000_3500_8TeV_cfi',K9by25)
00203 steps['QCD_Pt_80_120']=gen('QCD_Pt_80_120_8TeV_cfi',K9by50)
00204 steps['SingleElectronPt10']=gen('SingleElectronPt10_cfi',K9by250)
00205 steps['SingleElectronPt1000']=gen('SingleElectronPt1000_cfi',K9by250)
00206 steps['SingleElectronPt35']=gen('SingleElectronPt35_cfi',K9by250)
00207 steps['SingleGammaPt10']=gen('SingleGammaPt10_cfi',K9by100)
00208 steps['SingleGammaPt35']=gen('SingleGammaPt35_cfi',K9by100)
00209 steps['SingleMuPt10']=gen('SingleMuPt10_cfi',K25by250)
00210 steps['SingleMuPt100']=gen('SingleMuPt100_cfi',K9by250)
00211 steps['SingleMuPt1000']=gen('SingleMuPt1000_cfi',K9by100)
00212 steps['TTbar']=gen('TTbar_Tauola_8TeV_cfi',K9by50)
00213 steps['TTbarLepton']=gen('TTbarLepton_Tauola_8TeV_cfi',K9by100)
00214 steps['ZEE']=gen('ZEE_8TeV_cfi',K9by100)
00215 steps['Wjet_Pt_80_120']=gen('Wjet_Pt_80_120_8TeV_cfi',K9by100)
00216 steps['Wjet_Pt_3000_3500']=gen('Wjet_Pt_3000_3500_8TeV_cfi',K9by100)
00217 steps['LM1_sfts']=gen('LM1_sfts_8TeV_cfi',K9by100)
00218 steps['QCD_FlatPt_15_3000']=gen('QCDForPF_8TeV_cfi',K9by100)
00219 steps['QCD_FlatPt_15_3000HS']=gen('QCDForPF_8TeV_cfi',K50by100)
00220 
00221 baseDataSetRelease=[
00222     'CMSSW_5_2_1-START52_V4-v1',
00223     'CMSSW_5_2_1-STARTHI52_V4-v1',
00224     'CMSSW_5_2_1-PU_START52_V4-v1'
00225     ]
00226 
00227 steps['MinBiasINPUT']={'INPUT':InputInfo(dataSet='/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00228 steps['QCD_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00229 steps['QCD_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00230 steps['SingleElectronPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00231 steps['SingleElectronPt1000INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt1000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00232 steps['SingleElectronPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt35/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00233 steps['SingleGammaPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00234 steps['SingleGammaPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt35/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00235 steps['SingleMuPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00236 steps['SingleMuPt100INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt100/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00237 steps['SingleMuPt1000INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt1000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00238 steps['TTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00239 steps['TTbarLeptonINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbarLepton/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00240 steps['OldTTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValProdTTbar/CMSSW_5_0_0_pre6-START50_V5-v1/GEN-SIM-RECO',location='STD')}
00241 steps['OldGenSimINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/CMSSW_4_4_2-START44_V7-v1/GEN-SIM-DIGI-RAW-HLTDEBUG',location='STD')}
00242 steps['Wjet_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00243 steps['Wjet_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00244 steps['LM1_sftsINPUT']={'INPUT':InputInfo(dataSet='/RelValLM1_sfts/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00245 steps['QCD_FlatPt_15_3000INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_FlatPt_15_3000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00246 
00247 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')}
00248 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')}
00249 steps['TTbar__DIGIPU1INPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/CMSSW_5_2_2-PU_START52_V4_special_120326-v1/GEN-SIM-DIGI-RAW-HLTDEBUG',location='STD')}

def relval_steps::genS (   fragment,
  howMuch 
)

Definition at line 281 of file relval_steps.py.

00282                           :
00283     global step1Defaults,stCond
00284     return merge([{'cfg':fragment},stCond,howMuch,step1Defaults])

def relval_steps::genvalid (   fragment,
  d,
  suffix = '',
  fi = '' 
)

Definition at line 401 of file relval_steps.py.

00402                                         :
00403     import copy
00404     c=copy.copy(d)
00405     if suffix:
00406         c['-s']=c['-s'].replace('genvalid','genvalid_'+suffix)
00407     if fi:
00408         c['--filein']='lhe:%d'%(fi,)
00409     c['cfg']=fragment
00410     return c
00411     
00412 steps['QCD_Pt-30_8TeV_herwigpp']=genvalid('QCD_Pt_30_8TeV_herwigpp_cff',step1GenDefaults,'qcd')
00413 steps['DYToLL_M-50_TuneZ2star_8TeV_pythia6-tauola']=genvalid('DYToLL_M_50_TuneZ2star_8TeV_pythia6_tauola_cff',step1GenDefaults,'dy')
00414 steps['QCD_Pt-30_TuneZ2star_8TeV_pythia6']=genvalid('QCD_Pt_30_TuneZ2star_8TeV_pythia6_cff',step1GenDefaults,'qcd')
00415 steps['QCD_Pt-30_8TeV_pythia8']=genvalid('QCD_Pt_30_8TeV_pythia8_cff',step1GenDefaults,'qcd')
00416 steps['GluGluTo2Jets_M-100_8TeV_exhume']=genvalid('GluGluTo2Jets_M_100_8TeV_exhume_cff',step1GenDefaults,'qcd')
00417 steps['TT_TuneZ2star_8TeV_pythia6-evtgen']=genvalid('TT_TuneZ2star_8TeV_pythia6_evtgen_cff',step1GenDefaults)
00418 steps['MinBias_TuneZ2star_8TeV_pythia6']=genvalid('MinBias_TuneZ2star_8TeV_pythia6_cff',step1GenDefaults,'qcd')
00419 steps['WToLNu_TuneZ2star_8TeV_pythia6-tauola']=genvalid('WToLNu_TuneZ2star_8TeV_pythia6_tauola_cff',step1GenDefaults,'w')
00420 steps['QCD_Pt-30_8TeV_herwig6']=genvalid('QCD_Pt_30_8TeV_herwig6_cff',step1GenDefaults,'qcd')
00421 steps['MinBias_8TeV_pythia8']=genvalid('MinBias_8TeV_pythia8_cff',step1GenDefaults,'qcd')
00422 
00423 
00424 steps['QCD_Ht-100To250_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',5475)
00425 steps['QCD_Ht-250To500_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',5476)
00426 steps['QCD_Ht-500To1000_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',5481)
00427 steps['TTJets_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'',5502)
00428 steps['WJetsLNu_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'w',5607)
00429 steps['ZJetsLNu_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'dy',5591)
00430 steps['ZJetsLNu_Tune4C_8TeV_madgraph-pythia8']=genvalid('Hadronizer_MgmMatchTune4C_8TeV_madgraph_pythia8_cff',step1GenDefaults,'dy',5591)
00431 
00432 PU={'-n':10,'--pileup':'default','--pileup_input':'dbs:/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],)}
00433 PUFS={'--pileup':'default'}
00434 PUFS2={'--pileup':'mix_2012_Startup_inTimeOnly'}
00435 steps['TTbarFSPU']=merge([PUFS,steps['TTbarFS']])
steps['TTbarFSPU2']=merge([PUFS2,steps['TTbarFS']])
def relval_steps::merge (   dictlist,
  TELL = False 
)

Definition at line 67 of file relval_steps.py.

Referenced by HLTScalersClient::endLuminosityBlock(), SiStripQualityChecker::fillTrackingStatus(), SiStripQualityChecker::fillTrackingStatusAtLumi(), DDI::LogicalPart::mergedSpecificsV(), and DDExpandedView::mergedSpecificsV().

00068                               :
00069     import copy
00070     last=len(dictlist)-1
00071     if TELL: print last,dictlist
00072     if last==0:
00073         # ONLY ONE ITEM LEFT
00074         return copy.copy(dictlist[0])
00075     else:
00076         reducedlist=dictlist[0:max(0,last-1)]
00077         if TELL: print reducedlist
00078         # make a copy of the last item
00079         d=copy.copy(dictlist[last])
00080         # update with the last but one item
00081         d.update(dictlist[last-1])
00082         # and recursively do the rest
00083         reducedlist.append(d)
00084         return merge(reducedlist,TELL)
00085 
00086 
# step1 gensim

Variable Documentation

Initial value:
00001 {'--conditions':'auto:com10',
00002           '-s':'RAW2DIGI,L1Reco,RECO,ALCA:SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBias,DQM',
00003           '--datatier':'RECO,DQMROOT',
00004           '--eventcontent':'RECO,DQMROOT',
00005           '--data':'',
00006           '--process':'reRECO',
00007           '--scenario':'pp',
00008           }

Definition at line 467 of file relval_steps.py.

Initial value:
00001 {
00002     '-s':'GEN,SIM,DIGI,DIGI2RAW,RAW2DIGI,L1Reco,RECO',
00003     '--datatier':'GEN-SIM-DIGI-RAW-RECO',
00004     #'--geometry':'ECALHCAL',
00005     '--eventcontent':'FEVTDEBUG',
00006     '--customise':'Validation/Configuration/ECALHCAL.customise',
00007     '--beamspot':'NoSmear'}

Definition at line 258 of file relval_steps.py.

Initial value:
00001 {'--conditions':'auto:starthi',
00002            '--scenario':'HeavyIons'}

Definition at line 345 of file relval_steps.py.

dictionary relval_steps::K100by500 = {'--relval':'100000,500'}

Definition at line 378 of file relval_steps.py.

dictionary relval_steps::K100byK2 = {'--relval':'100000,2000'}

Definition at line 379 of file relval_steps.py.

dictionary relval_steps::K110000by45000 = {'--relval': '11000000,45000'}

Definition at line 255 of file relval_steps.py.

dictionary relval_steps::K250by100 = {'--relval': '25000,100'}

Definition at line 252 of file relval_steps.py.

dictionary relval_steps::K250by250 = {'--relval': '25000,250'}

Definition at line 254 of file relval_steps.py.

dictionary relval_steps::K25by250 = {'--relval':'25000,250'}

Definition at line 194 of file relval_steps.py.

dictionary relval_steps::K3250000by1300000 = {'--relval': '325000000,1300000'}

Definition at line 253 of file relval_steps.py.

dictionary relval_steps::K50by100 = {'--relval':'50000,100'}

Definition at line 192 of file relval_steps.py.

dictionary relval_steps::K562by225 = {'--relval': '56250,225'}

Definition at line 256 of file relval_steps.py.

dictionary relval_steps::K700by280 = {'--relval': '70000,280'}

high stat step1

Definition at line 251 of file relval_steps.py.

dictionary relval_steps::K9by100 = {'--relval':'9000,100'}

Definition at line 191 of file relval_steps.py.

dictionary relval_steps::K9by25 = {'--relval':'9000,25'}

Definition at line 188 of file relval_steps.py.

dictionary relval_steps::K9by250 = {'--relval':'9000,250'}

Definition at line 193 of file relval_steps.py.

dictionary relval_steps::K9by50 = {'--relval':'9000,50'}

Definition at line 189 of file relval_steps.py.

dictionary relval_steps::K9by500 = {'--relval':'9000,500'}

Definition at line 190 of file relval_steps.py.

list relval_steps::Run2010ASk = [138937,138934,138924,138923,139790,139789,139788,139787,144086,144085,144084,144083,144011]

Production test section ####.

data #### list of run to harvest for 2010A: 144086,144085,144084,144083,144011,139790,139789,139788,139787,138937,138934,138924,138923 list of run to harvest for 2010B: 149442,149291,149181,149011,148822,147929,147115,146644

Definition at line 111 of file relval_steps.py.

list relval_steps::Run2010B = [149011]

Definition at line 121 of file relval_steps.py.

list relval_steps::Run2010BSk = [146644,147115,147929,148822,149011,149181,149182,149291,149294,149442]

Definition at line 112 of file relval_steps.py.

list relval_steps::Run2011A = [165121]

Definition at line 138 of file relval_steps.py.

list relval_steps::Run2011ASk = [165121,172802]

Definition at line 129 of file relval_steps.py.

list relval_steps::Run2011B = [177719]

Definition at line 145 of file relval_steps.py.

list relval_steps::Run2011BSk = [177719,177790,177096,175874]

Definition at line 146 of file relval_steps.py.

list relval_steps::Run2012A = [191226]

Definition at line 164 of file relval_steps.py.

list relval_steps::Run2012B = [194533]

Definition at line 173 of file relval_steps.py.

list relval_steps::Run2012Bsk = Run2012B+[194912,195016]

Definition at line 174 of file relval_steps.py.

dictionary relval_steps::stCond = {'--conditions':'auto:startup'}

Standard release validation samples ####.

Definition at line 187 of file relval_steps.py.

Initial value:
00001 {'--relval'      : None, # need to be explicitly set
00002                  '-s'            : 'GEN,SIM',
00003                  '-n'            : 10,
00004                  '--conditions'  : 'auto:startup',
00005                  '--datatier'    : 'GEN-SIM',
00006                  '--eventcontent': 'RAWSIM',
00007                  }

Definition at line 87 of file relval_steps.py.

Initial value:
00001 merge([{'-s':'GEN,FASTSIM,HLT:7E33v2,VALIDATION',
00002                            '--eventcontent':'FEVTDEBUGHLT,DQM',
00003                            '--datatier':'GEN-SIM-DIGI-RECO,DQM',
00004                            '--relval':'27000,3000'},
00005                           step1Defaults])

fastsim section #### no forseen to do things in two steps GEN-SIM then FASTIM->end: maybe later

Definition at line 373 of file relval_steps.py.

Initial value:
00001 merge([{'-s':'GEN,VALIDATION:genvalid',
00002                          '--relval':'1000000,20000',
00003                          '--eventcontent':'RAWSIM',
00004                          '--datatier':'GEN'},
00005                         step1Defaults])

generator test section ####

Definition at line 396 of file relval_steps.py.

Initial value:
00001 { 
00002                   '-s'            : 'DIGI,L1,DIGI2RAW,HLT:7E33v2,RAW2DIGI,L1Reco',
00003                   '--datatier'    : 'GEN-SIM-DIGI-RAW-HLTDEBUG',
00004                   '--eventcontent': 'FEVTDEBUGHLT',
00005                   '--conditions'  : 'auto:startup',
00006                   }

Definition at line 441 of file relval_steps.py.

Initial value:
00001 merge([{'-n':'10',
00002                            '--himix':'',
00003                            '--filein':'file.root',
00004                            '--process':'HISIGNAL'
00005                            },hiDefaults,step1Defaults])

Definition at line 521 of file relval_steps.py.

Initial value:
00001 {
00002                   '-s'            : 'RAW2DIGI,L1Reco,RECO,VALIDATION,DQM',
00003                   '--conditions'  : 'auto:startup',
00004                   '--no_exec'     : '',
00005                   '--datatier'    : 'GEN-SIM-RECO,DQM',
00006                   '--eventcontent': 'RECOSIM,DQM'
00007                   }

Definition at line 531 of file relval_steps.py.

Initial value:
00001 { 
00002                   '-s'            : 'ALCA:TkAlMuonIsolated+TkAlMinBias+EcalCalElectron+HcalCalIsoTrk+MuAlOverlaps',
00003                   '-n'            : 1000,
00004                   '--conditions'  : 'auto:startup',
00005                   '--datatier'    : 'ALCARECO',
00006                   '--eventcontent': 'ALCARECO',
00007                   }

Definition at line 584 of file relval_steps.py.

dictionary relval_steps::U500by5 = {'--relval': '500,5'}

steps['MinBias2']=genS('MinBias_8TeV_cfi',K9by100)

steps['QCD_Pt_3000_3500_2']=genS('QCD_Pt_3000_3500_8TeV_cfi',K9by25) steps['QCD_Pt_80_120_2']=genS('QCD_Pt_80_120_8TeV_cfi',K9by50) steps['TTbar2']=genS('TTbar_Tauola_8TeV_cfi',K9by50) steps['ZEE2']=genS('ZEE_8TeV_cfi',K9by100) heavy ions tests

Definition at line 343 of file relval_steps.py.

dictionary relval_steps::U80by2 = {'--relval': '80,2'}

Definition at line 344 of file relval_steps.py.