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 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]
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 342 of file relval_steps.py.

00343                       :
00344     for s in steps:
00345         steps[s].update(d)
00346 
00347 

def relval_steps::changeRefRelease (   step1s,
  listOfPairs 
)

Definition at line 334 of file relval_steps.py.

00335                                         :
00336     for s in step1s:
00337         if ('INPUT' in step1s[s]):
00338             oldD=steps[s]['INPUT'].dataSet
00339             for (ref,newRef) in listOfPairs:
00340                 if  ref in oldD:
00341                     steps[s]['INPUT'].dataSet=oldD.replace(ref,newRef)
                                        
def relval_steps::gen (   fragment,
  howMuch 
)

Definition at line 175 of file relval_steps.py.

Referenced by __attribute__(), GaussNoiseFP420::addNoise(), METTester::analyze(), ZHistogrammer::analyze(), ZMuPtScaleAnalyzer::analyze(), HLTJetMETValidation::analyze(), zPdfUnc::analyze(), myFastSimVal::analyze(), EWKSystUnc::analyze(), ZLONLOHistogrammer::analyze(), ZMassHistogrammer::analyze(), ValidIsoTrkCalib::analyze(), ZMCHistogrammer::analyze(), ValidIsoTrkCalib::beginJob(), cond::DecodingKey::createFromInputFile(), GenParticlesHelper::findParticles(), SherpaHadronizer::generatePartonsAndHadronize(), HBHEStatusBitSetter::HBHEStatusBitSetter(), HcalDeadCellMonitor::HcalDeadCellMonitor(), HcalDetDiagLEDClient::htmlOutput(), HcalDetDiagPedestalClient::htmlOutput(), ZDCMonitorClient::htmlOutput(), cond::CredentialStore::installAdmin(), hitfit::Resolution::pick(), DistortedMuonProducer::produce(), StGenEventReco::produce(), GenParticlePruner::produce(), DistortedPFCandProducer::produce(), TtGenEventReco::produce(), cms::METProducer::produce(), HcaluLUTTPGCoder::setLUTGenerationMode(), HcalRecHitMonitor::setup(), HcalDetDiagNoiseMonitor::setup(), cond::CredentialStore::updateConnection(), and cond::CredentialStore::updatePrincipal().

00176                          :
00177     global step1Defaults
00178     return merge([{'cfg':fragment},howMuch,step1Defaults])
00179 
00180 steps['MinBias']=gen('MinBias_8TeV_cfi',K9by100)
00181 steps['QCD_Pt_3000_3500']=gen('QCD_Pt_3000_3500_8TeV_cfi',K9by25)
00182 steps['QCD_Pt_80_120']=gen('QCD_Pt_80_120_8TeV_cfi',K9by50)
00183 steps['SingleElectronPt10']=gen('SingleElectronPt10_cfi',K9by250)
00184 steps['SingleElectronPt35']=gen('SingleElectronPt35_cfi',K9by250)
00185 steps['SingleGammaPt10']=gen('SingleGammaPt10_cfi',K9by100)
00186 steps['SingleGammaPt35']=gen('SingleGammaPt35_cfi',K9by100)
00187 steps['SingleMuPt10']=gen('SingleMuPt10_cfi',K25by250)
00188 steps['SingleMuPt100']=gen('SingleMuPt100_cfi',K9by250)
00189 steps['SingleMuPt1000']=gen('SingleMuPt1000_cfi',K9by100)
00190 steps['TTbar']=gen('TTbar_Tauola_8TeV_cfi',K9by50)
00191 steps['TTbarLepton']=gen('TTbarLepton_Tauola_8TeV_cfi',K9by100)
00192 steps['ZEE']=gen('ZEE_8TeV_cfi',K9by100)
00193 steps['Wjet_Pt_80_120']=gen('Wjet_Pt_80_120_8TeV_cfi',K9by100)
00194 steps['Wjet_Pt_3000_3500']=gen('Wjet_Pt_3000_3500_8TeV_cfi',K9by100)
00195 steps['LM1_sfts']=gen('LM1_sfts_8TeV_cfi',K9by100)
00196 steps['QCD_FlatPt_15_3000']=gen('QCDForPF_8TeV_cfi',K9by100)
00197 steps['QCD_FlatPt_15_3000HS']=gen('QCDForPF_8TeV_cfi',K50by100)
00198 
00199 baseDataSetRelease=[
00200     'CMSSW_5_2_1-START52_V4-v1',
00201     'CMSSW_5_2_1-STARTHI52_V4-v1',
00202     'CMSSW_5_2_1-PU_START52_V4-v1'
00203     ]
00204 
00205 steps['MinBiasINPUT']={'INPUT':InputInfo(dataSet='/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00206 steps['QCD_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00207 steps['QCD_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00208 steps['SingleElectronPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00209 steps['SingleElectronPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleElectronPt35/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00210 steps['SingleGammaPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00211 steps['SingleGammaPt35INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleGammaPt35/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00212 steps['SingleMuPt10INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt10/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00213 steps['SingleMuPt100INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt100/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00214 steps['SingleMuPt1000INPUT']={'INPUT':InputInfo(dataSet='/RelValSingleMuPt1000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00215 steps['TTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00216 steps['TTbarLeptonINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbarLepton/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00217 steps['OldTTbarINPUT']={'INPUT':InputInfo(dataSet='/RelValProdTTbar/CMSSW_5_0_0_pre6-START50_V5-v1/GEN-SIM-RECO',location='STD')}
00218 steps['OldGenSimINPUT']={'INPUT':InputInfo(dataSet='/RelValTTbar/CMSSW_4_4_2-START44_V7-v1/GEN-SIM-DIGI-RAW-HLTDEBUG',location='STD')}
00219 steps['Wjet_Pt_80_120INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_80_120/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00220 steps['Wjet_Pt_3000_3500INPUT']={'INPUT':InputInfo(dataSet='/RelValWjet_Pt_3000_3500/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00221 steps['LM1_sftsINPUT']={'INPUT':InputInfo(dataSet='/RelValLM1_sfts/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00222 steps['QCD_FlatPt_15_3000INPUT']={'INPUT':InputInfo(dataSet='/RelValQCD_FlatPt_15_3000/%s/GEN-SIM'%(baseDataSetRelease[0],),location='STD')}
00223 
00224 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')}
00225 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')}
00226 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 258 of file relval_steps.py.

00259                           :
00260     global step1Defaults,stCond
00261     return merge([{'cfg':fragment},stCond,howMuch,step1Defaults])

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

Definition at line 380 of file relval_steps.py.

00381                                         :
00382     import copy
00383     c=copy.copy(d)
00384     if suffix:
00385         c['-s']=c['-s'].replace('genvalid','genvalid_'+suffix)
00386     if fi:
00387         c['--filein']='lhe:%d'%(fi,)
00388     c['cfg']=fragment
00389     return c
00390     
00391 steps['QCD_Pt-30_8TeV_herwigpp']=genvalid('QCD_Pt_30_8TeV_herwigpp_cff',step1GenDefaults,'qcd')
00392 steps['DYToLL_M-50_TuneZ2star_8TeV_pythia6-tauola']=genvalid('DYToLL_M_50_TuneZ2star_8TeV_pythia6_tauola_cff',step1GenDefaults,'dy')
00393 steps['QCD_Pt-30_TuneZ2star_8TeV_pythia6']=genvalid('QCD_Pt_30_TuneZ2star_8TeV_pythia6_cff',step1GenDefaults,'qcd')
00394 steps['QCD_Pt-30_8TeV_pythia8']=genvalid('QCD_Pt_30_8TeV_pythia8_cff',step1GenDefaults,'qcd')
00395 steps['GluGluTo2Jets_M-100_8TeV_exhume']=genvalid('GluGluTo2Jets_M_100_8TeV_exhume_cff',step1GenDefaults,'qcd')
00396 steps['TT_TuneZ2star_8TeV_pythia6-evtgen']=genvalid('TT_TuneZ2star_8TeV_pythia6_evtgen_cff',step1GenDefaults)
00397 steps['MinBias_TuneZ2star_8TeV_pythia6']=genvalid('MinBias_TuneZ2star_8TeV_pythia6_cff',step1GenDefaults,'qcd')
00398 steps['WToLNu_TuneZ2star_8TeV_pythia6-tauola']=genvalid('WToLNu_TuneZ2star_8TeV_pythia6_tauola_cff',step1GenDefaults,'w')
00399 steps['QCD_Pt-30_8TeV_herwig6']=genvalid('QCD_Pt_30_8TeV_herwig6_cff',step1GenDefaults,'qcd')
00400 steps['MinBias_8TeV_pythia8']=genvalid('MinBias_8TeV_pythia8_cff',step1GenDefaults,'qcd')
00401 
00402 
00403 steps['QCD_Ht-100To250_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',5475)
00404 steps['QCD_Ht-250To500_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',5476)
00405 steps['QCD_Ht-500To1000_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'qcd',5481)
00406 steps['TTJets_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'',5502)
00407 steps['WJetsLNu_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'w',5607)
00408 steps['ZJetsLNu_TuneZ2star_8TeV_madgraph-tauola']=genvalid('Hadronizer_MgmMatchTuneZ2star_8TeV_madgraph_tauola_cff',step1GenDefaults,'dy',5591)
00409 steps['ZJetsLNu_Tune4C_8TeV_madgraph-pythia8']=genvalid('Hadronizer_MgmMatchTune4C_8TeV_madgraph_pythia8_cff',step1GenDefaults,'dy',5591)
00410 
00411 PU={'-n':10,'--pileup':'default','--pileup_input':'dbs:/RelValMinBias/%s/GEN-SIM'%(baseDataSetRelease[0],)}
00412 PUFS={'--pileup':'default'}
00413 PUFS2={'--pileup':'mix_2012_Startup_inTimeOnly'}
00414 steps['TTbarFSPU']=merge([PUFS,steps['TTbarFS']])
steps['TTbarFSPU2']=merge([PUFS2,steps['TTbarFS']])
def relval_steps::merge (   dictlist,
  TELL = False 
)

Definition at line 62 of file relval_steps.py.

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

00063                               :
00064     import copy
00065     last=len(dictlist)-1
00066     if TELL: print last,dictlist
00067     if last==0:
00068         # ONLY ONE ITEM LEFT
00069         return copy.copy(dictlist[0])
00070     else:
00071         reducedlist=dictlist[0:max(0,last-1)]
00072         if TELL: print reducedlist
00073         # make a copy of the last item
00074         d=copy.copy(dictlist[last])
00075         # update with the last but one item
00076         d.update(dictlist[last-1])
00077         # and recursively do the rest
00078         reducedlist.append(d)
00079         return merge(reducedlist,TELL)
00080 
00081 
# 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 446 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 235 of file relval_steps.py.

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

Definition at line 322 of file relval_steps.py.

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

Definition at line 355 of file relval_steps.py.

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

Definition at line 232 of file relval_steps.py.

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

Definition at line 229 of file relval_steps.py.

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

Definition at line 231 of file relval_steps.py.

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

Definition at line 173 of file relval_steps.py.

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

Definition at line 230 of file relval_steps.py.

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

Definition at line 171 of file relval_steps.py.

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

Definition at line 233 of file relval_steps.py.

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

high stat step1

Definition at line 228 of file relval_steps.py.

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

Definition at line 170 of file relval_steps.py.

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

Definition at line 167 of file relval_steps.py.

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

Definition at line 172 of file relval_steps.py.

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

Definition at line 168 of file relval_steps.py.

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

Definition at line 169 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 106 of file relval_steps.py.

list relval_steps::Run2010B = [149011]

Definition at line 116 of file relval_steps.py.

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

Definition at line 107 of file relval_steps.py.

list relval_steps::Run2011A = [165121]

Definition at line 133 of file relval_steps.py.

list relval_steps::Run2011ASk = [165121,172802]

Definition at line 124 of file relval_steps.py.

list relval_steps::Run2011B = [177719]

Definition at line 140 of file relval_steps.py.

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

Definition at line 141 of file relval_steps.py.

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

Standard release validation samples ####.

Definition at line 166 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 82 of file relval_steps.py.

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

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

Definition at line 350 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 375 of file relval_steps.py.

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

Definition at line 420 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 500 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 510 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 562 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 320 of file relval_steps.py.

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

Definition at line 321 of file relval_steps.py.