Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-04-01 23:54:08

0001 import os
0002 
0003 
0004 data = {
0005 #    'DY0':'/DYToLL_M-50_TuneCP5_14TeV-pythia8/Phase2HLTTDRWinter20DIGI-NoPU_pilot_110X_mcRun4_realistic_v3-v2/GEN-SIM-DIGI-RAW',
0006 #    'DY140a':'/DYToLL_M-50_TuneCP5_14TeV-pythia8/Phase2HLTTDRWinter20DIGI-PU140_pilot1_110X_mcRun4_realistic_v3-v2/GEN-SIM-DIGI-RAW',
0007 #    'DY140b':'/DYToLL_M-50_TuneCP5_14TeV-pythia8/Phase2HLTTDRWinter20DIGI-PU140_pilot_110X_mcRun4_realistic_v3-v2/GEN-SIM-DIGI-RAW',
0008     'DY200a':'/DYToLL_M-50_TuneCP5_14TeV-pythia8/Phase2HLTTDRWinter20DIGI-PU200_pilot_110X_mcRun4_realistic_v3-v2/GEN-SIM-DIGI-RAW',
0009     'DY200b':'/DYToLL_M-50_TuneCP5_14TeV-pythia8/Phase2HLTTDRWinter20DIGI-PU200_pilot2_110X_mcRun4_realistic_v3-v2/GEN-SIM-DIGI-RAW',
0010 #    'SingleMu0':'/DoubleMuon_gun_FlatPt-1To100/Phase2HLTTDRWinter20DIGI-NoPU_110X_mcRun4_realistic_v3-v2/GEN-SIM-DIGI-RAW',
0011 #    'SingleMu140':'/DoubleMuon_gun_FlatPt-1To100/Phase2HLTTDRWinter20DIGI-PU140_110X_mcRun4_realistic_v3-v2/GEN-SIM-DIGI-RAW',
0012 #    'SingleMu200':'/DoubleMuon_gun_FlatPt-1To100/Phase2HLTTDRWinter20DIGI-PU200_110X_mcRun4_realistic_v3-v3/GEN-SIM-DIGI-RAW',
0013 #    'TT200':'/TT_TuneCP5_14TeV-powheg-pythia8/Phase2HLTTDRWinter20DIGI-PU200_110X_mcRun4_realistic_v3-v2/GEN-SIM-DIGI-RAW',
0014 #    'JPsiToMuMu':'/JPsiToMuMu_Pt0to100-pythia8_TuneCP5-gun/Phase2HLTTDRWinter20DIGI-NoPU_110X_mcRun4_realistic_v3-v2/GEN-SIM-DIGI-RAW',
0015     'JPsiToMuMu200a':'/JPsiToMuMu_Pt0to100-pythia8_TuneCP5-gun/Phase2HLTTDRWinter20DIGI-PU200_110X_mcRun4_realistic_v3-v2/GEN-SIM-DIGI-RAW',
0016     'JPsiToMuMu200b':'/JPsiToMuMu_Pt0to100-pythia8_TuneCP5-gun/Phase2HLTTDRWinter20DIGI-PU200_110X_mcRun4_realistic_v3_ext1-v3/GEN-SIM-DIGI-RAW',
0017     'MinBias200_a':'/MinBias_TuneCP5_14TeV-pythia8/Phase2HLTTDRWinter20DIGI-PU200_110X_mcRun4_realistic_v3-v3/GEN-SIM-DIGI-RAW',
0018     'MinBias200_b':'/MinBias_TuneCP5_14TeV-pythia8/Phase2HLTTDRWinter20DIGI-PU200_BSzpz35_BSzpz35_110X_mcRun4_realistic_v3_ext1-v2/GEN-SIM-DIGI-RAW',
0019     'MinBias200_c':'/MinBias_TuneCP5_14TeV-pythia8/Phase2HLTTDRWinter20DIGI-PU200_withNewMB_110X_mcRun4_realistic_v3_ext1-v2/GEN-SIM-DIGI-RAW'
0020 }
0021 
0022 
0023 for tag,dataset in  data.iteritems():
0024     FILE="""
0025 from CRABClient.UserUtilities import config
0026 config = config()
0027 config.General.requestName = 'skim_{tag}'
0028 config.General.workArea = 'crab_projects'
0029 config.General.transferOutputs = True
0030 config.General.transferLogs = False
0031 config.JobType.pluginName = 'Analysis'
0032 config.JobType.psetName = 'runGMT.py'
0033 config.Data.inputDataset = '{dataset}'
0034 config.Data.inputDBS = 'global'
0035 config.Data.splitting = 'FileBased'
0036 config.Data.unitsPerJob = 1
0037 config.Data.outLFNDirBase = '/store/user/bachtis/L1TF4'
0038 config.Data.publication = True
0039 config.Data.ignoreLocality = True
0040 config.Data.outputDatasetTag = 'PHASEII_{tag}'
0041 config.Site.storageSite = 'T3_US_FNALLPC'
0042 config.Site.whitelist = ['T2_US_*']
0043 config.JobType.allowUndistributedCMSSW = True
0044 config.JobType.maxMemoryMB = 4000
0045 """.format(tag=tag,dataset=dataset)
0046     f=open("crab_{tag}.py".format(tag=tag),"w")
0047     print(FILE)
0048     f.write(FILE)
0049     f.close()
0050     os.system("crab submit -c crab_{PT}.py".format(PT=tag))
0051 
0052