"DCRho12HyperK500", "DCRho12HyperK530BX1", "DCRho12HyperK530", "DCRho12HyperK570BX1", "DCRho12HyperK570", "DCRho12HyperK590BX1", "DCRho12HyperK590", "DCRho12HyperK595BX1", "DCRho12HyperK595", "DCRho12HyperK600BX1", "DCRho12HyperK600", "DCRho12HyperK610BX1", "DCRho12HyperK610", "DCRho12HyperK620BX1", "DCRho12HyperK620", "DCRho12HyperK700BX1", "DCRho12HyperK700", "DCRho16HyperK100BX1", "DCRho16HyperK100", "DCRho16HyperK182BX1", "DCRho16HyperK182", "DCRho16HyperK302BX1", "DCRho16HyperK302", "DCRho16HyperK500BX1", "DCRho16HyperK500", "DCRho16HyperK700BX1", "DCRho16HyperK700", "DCRho16HyperK730BX1", "DCRho16HyperK730", "DCRho16HyperK770BX1", "DCRho16HyperK770", "DCRho16HyperK790BX1", "DCRho16HyperK790", "DCRho16HyperK795BX1", "DCRho16HyperK795", "DCRho16HyperK800BX1", "DCRho16HyperK800", "DCRho16HyperK810BX1", "DCRho16HyperK810", "DCRho16HyperK820BX1", "DCRho16HyperK820", "DCRho16HyperK900BX1", "DCRho16HyperK900" ] FarmDirectory = "MERGE" for JobName in Jobs: # LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"file:','/storage/data/cms/store/user/quertenmont/11_07_15_HSCP2011/FWLite_Sign/'+ JobName + '/HSCP_*.root','",'), FarmDirectory + "InputFile.txt") LaunchOnCondor.ListToFile( LaunchOnCondor.GetListOfFiles( '"dcache:', '/pnfs/cms/WAX/11/store/user/jchen/11_08_21_HSCP2011/FWLite_Signal/' + JobName + '/HSCP_*.root', '",'), FarmDirectory + "InputFile.txt") # LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"file:','/uscmst1b_scratch/lpc1/lpcphys/jchen/HSCPEDM_08_02_11/'+ JobName + '.root','",'), FarmDirectory + "InputFile.txt") LaunchOnCondor.SendCMSJobs(FarmDirectory, JobName, "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, []) os.system("rm " + FarmDirectory + "InputFile.txt")
#LaunchOnCondor.SendCMSJobs(FarmDirectory, "Data_RunA_175860_176099", "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, []) #LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"','/store/user/farrell3/HSCPEDMUpdateTo4p3fb28Oct2011/RunA_*_176100_176309/HSCP_*.root','",'), FarmDirectory + "InputFile.txt") #LaunchOnCondor.SendCMSJobs(FarmDirectory, "Data_RunA_176100_176309", "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, []) #LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"','/store/user/farrell3/HSCPEDMUpdateTo4p3fb28Oct2011/RunA_*_176467_176800/HSCP_*.root','",'), FarmDirectory + "InputFile.txt") #LaunchOnCondor.SendCMSJobs(FarmDirectory, "Data_RunA_176467_176800", "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, []) #LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"','/store/user/farrell3/HSCPEDMUpdateTo4p3fb28Oct2011/RunA_*_176801_177053/HSCP_*.root','",'), FarmDirectory + "InputFile.txt") #LaunchOnCondor.SendCMSJobs(FarmDirectory, "Data_RunA_176801_177053", "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, []) #LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"','/store/user/farrell3/HSCPEDMUpdateTo4p3fb28Oct2011/RunA_*_177074_177783/HSCP_*.root','",'), FarmDirectory + "InputFile.txt") #LaunchOnCondor.SendCMSJobs(FarmDirectory, "Data_RunA_177074_177783", "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, []) #LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"','/store/user/farrell3/HSCPEDMUpdateTo4p3fb28Oct2011/RunA_*_177788_178380/HSCP_*.root','",'), FarmDirectory + "InputFile.txt") #LaunchOnCondor.SendCMSJobs(FarmDirectory, "Data_RunA_177788_178380", "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, []) #LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"','/store/user/farrell3/HSCPEDMUpdateTo4p3fb28Oct2011/RunA_*_178420_179411/HSCP_*.root','",'), FarmDirectory + "InputFile.txt") #LaunchOnCondor.SendCMSJobs(FarmDirectory, "Data_RunA_178420_179411", "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, []) LaunchOnCondor.ListToFile( LaunchOnCondor.GetListOfFiles( '"', '/store/user/farrell3/HSCPEDMUpdateTo4p3fb28Oct2011/RunA_*_179434_180252/HSCP_*.root', '",'), FarmDirectory + "InputFile.txt") LaunchOnCondor.SendCMSJobs(FarmDirectory, "Data_RunA_179434_180252", "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, []) os.system("rm " + FarmDirectory + "InputFile.txt")
#!/usr/bin/env python import urllib import string import os import sys import LaunchOnCondor #Jobs = ["MC_7TeV_ZZ", "MC_7TeV_ZJetToMuMu_Pt-80to120", "MC_7TeV_ZJetToMuMu_Pt-50to80", "MC_7TeV_ZJetToMuMu_Pt-30to50", "MC_7TeV_ZJetToMuMu_Pt-300", "MC_7TeV_ZJetToMuMu_Pt-230to300", "MC_7TeV_ZJetToMuMu_Pt-20to30", "MC_7TeV_ZJetToMuMu_Pt-170to230", "MC_7TeV_ZJetToMuMu_Pt-15to20", "MC_7TeV_ZJetToMuMu_Pt-120to170", "MC_7TeV_ZJetToMuMu_Pt-0to15", "MC_7TeV_WZ", "MC_7TeV_WW", "MC_7TeV_WJetsToLNu", "MC_7TeV_TTJets", "MC_7TeV_QCD_Pt-80to120", "MC_7TeV_QCD_Pt-800to1000", "MC_7TeV_QCD_Pt-600to800", "MC_7TeV_QCD_Pt-50to80", "MC_7TeV_QCD_Pt-470to600", "MC_7TeV_QCD_Pt-30to50", "MC_7TeV_QCD_Pt-300to470", "MC_7TeV_QCD_Pt-1800", "MC_7TeV_QCD_Pt-170to300", "MC_7TeV_QCD_Pt-1400to1800", "MC_7TeV_QCD_Pt-120to170", "MC_7TeV_QCD_Pt-1000to1400", "MC_7TeV_DYToTauTau", "MC_7TeV_DYToMuMu"] Jobs = ["MC_8TeV_DYToMuMu"] FarmDirectory = "MERGE" for JobName in Jobs: LaunchOnCondor.ListToFile( LaunchOnCondor.GetListOfFiles( '"file:', '/storage/data/cms/store/user/quertenmont/12_08_16_HSCP_EDM2011/FWLite_MC/' + JobName + '/HSCP_*.root', '",'), FarmDirectory + "InputFile.txt") #LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"dcache:','/pnfs/cms/WAX/11/store/user/farrell3/HSCPEDMUpdateData2012_12Sep2012/'+ JobName +'/HSCP_*.root','",'), FarmDirectory + "InputFile.txt") LaunchOnCondor.SendCMSJobs( FarmDirectory, JobName, "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, [ 'XXX_SAVEPATH_XXX', 'file:/storage/data/cms/users/quertenmont/HSCP/CMSSW_4_2_8/12_08_16/' ]) os.system("rm " + FarmDirectory + "InputFile.txt")
#!/usr/bin/env python import urllib import string import os import sys import LaunchOnCondor Jobs = ["GMStau_8TeV_M557", "PPStau_8TeV_M557"] FarmDirectory = "MERGE" for JobName in Jobs: LaunchOnCondor.ListToFile( LaunchOnCondor.GetListOfFiles( '"file:', '/afs/cern.ch/user/q/querten/workspace/public/GMSB_XSec/EDMproduction/CMSSW_5_3_2_patch4/src/SUSYBSMAnalysis/HSCP/test/BuildHSCParticles/Signals/' + JobName + '/res/HSCP_*.root', '",'), FarmDirectory + "InputFile.txt") # LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"dcache:','/pnfs/cms/WAX/11/store/user/farrell3/store/user/jchen/11_10_28_HSCP2011/FWLite_Signal/'+ JobName + '/HSCP_*.root','",'), FarmDirectory + "InputFile.txt") # LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"file:','/uscmst1b_scratch/lpc1/lpcphys/jchen/HSCPEDM_08_02_11/'+ JobName + '.root','",'), FarmDirectory + "InputFile.txt") LaunchOnCondor.SendCMSJobs(FarmDirectory, JobName, "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, []) os.system("rm " + FarmDirectory + "InputFile.txt")
#["HSCPTagProbeTreeMC", "SAProbe_TkCut_Pt_MC"], #["HSCPTagProbeTreeMC", "SAProbe_TkCut_PV_MC"], #["HSCPTagProbeTreeMC", "SAProbe_TkTOFCut_Eta_MC"], #["HSCPTagProbeTreeMC", "SAProbe_TkTOFCut_Pt_MC"], #["HSCPTagProbeTreeMC", "SAProbe_TkTOFCut_PV_MC"], ] FarmDirectory = "ANALYSE" for i in range(len(Jobs)): j = Jobs[i] #Dir = "/uscms_data/d2/farrell3/WorkArea/14Aug2012/CMSSW_5_3_3/src/PhysicsTools/TagAndProbe/test/" #LaunchOnCondor.ListToFile(LaunchOnCondor.GetListOfFiles('"',Dir+j[0]+'.root','"'), FarmDirectory + "InputFile.txt") Dir = "/uscms_data/d2/farrell3/WorkArea/14Aug2012/CMSSW_5_3_3/src/PhysicsTools/TagAndProbe/test/TagProbeProducerRoot/" LaunchOnCondor.ListToFile( LaunchOnCondor.GetListOfFiles('"file:', Dir + j[0] + '.root', '"'), FarmDirectory + "InputFile.txt") LaunchOnCondor.SendCMSJobs( FarmDirectory, j[1], "HSCPTagProbeTreeAnalyzer.py", FarmDirectory + "InputFile.txt", 1, [ 'XXX_SAVEPATH_XXX', 'file:/storage/data/cms/users/quertenmont/HSCP/CMSSW_4_2_8/12_08_16/' ]) fo = open("Run" + str(i) + ".sh", "w") fo.write("cmsRun ANALYSE/inputs/0000_" + j[1] + "_cfg.py > ANALYSE/inputs/0000_" + j[1] + "_cfg.out") fo.close() os.system("chmod 755 Run" + str(i) + ".sh") os.system("rm " + FarmDirectory + "InputFile.txt")
#["RunD_*_204801_205100","RunD_204801_205100"], #["RunD_*_205101_205400","RunD_205101_205400"], #["RunD_*_205401_205700","RunD_205401_205700"], #["RunD_*_205701_206000","RunD_205701_206000"], #["RunD_*_206001_206300","RunD_206001_206300"], #["RunD_*_206301_206600","RunD_206301_206600"], #["RunD_*_206601_206900","RunD_206601_206900"], #["RunD_*_206901_207200","RunD_206901_207200"], #["RunD_*_207201_207500","RunD_207201_207500"], #["RunD_*_207501_207800","RunD_207501_207800"], #["RunD_*_207801_208100","RunD_207801_208100"], #["RunD_*_208101_208357","RunD_208101_208357"], ["RunD_*_208358_208686", "RunD_208358_208686"] ] FarmDirectory = "MERGE" for j in Jobs: LaunchOnCondor.ListToFile( LaunchOnCondor.GetListOfFiles( '"dcache:', '/pnfs/cms/WAX/11/store/user/farrell3/HSCPEDMUpdateData2012_30Nov2012/' + j[0] + '/HSCP_*.root', '",'), FarmDirectory + "InputFile.txt") #LaunchOnCondor.SendCMSJobs(FarmDirectory, j[1], "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, ['XXX_SAVEPATH_XXX','file:/storage/data/cms/users/quertenmont/HSCP/CMSSW_4_2_8/12_08_16/']) LaunchOnCondor.SendCMSJobs( FarmDirectory, j[1], "Merge_cfg.py", FarmDirectory + "InputFile.txt", 1, [ 'XXX_SAVEPATH_XXX', '/uscmst1b_scratch/lpc1/3DayLifetime/farrell/2012Data_04Sep2012' ]) os.system("rm " + FarmDirectory + "InputFile.txt")