#!/usr/bin/env python import string import os import sys import LaunchOnCondor FarmDirectory = "FARM" JobName = "lltautauToysFirstTry" os.system("make clean; make") LaunchOnCondor.Jobs_RunHere = 0 LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) for i in range(0,11): LaunchOnCondor.Jobs_FinalCmds = ["mv justForDebug_"+str(i) + " " + os.getcwd()+"/." ] LaunchOnCondor.SendCluster_Push(["BASH", os.getcwd()+"/Analyzer --File1 "+os.getcwd()+"/plotter_2016_02_09.root --File2 "+os.getcwd()+"/plotter_2016_02_09.root --Index "+str(i)+" --Ntoy 100 --Data --Dir justForDebug_"+str(i)+" --NoXserver" ]) #LaunchOnCondor.SendCluster_Push(["BASH", os.getcwd()+"/Analyzer --File1 "+os.getcwd()+"/../plotter_Approval.root --File2 "+os.getcwd()+"/../plotter_Approval_tree.root --Index "+str(i)+" --Ntoy 1 --Dir justForDebug_"+str(i)+" --NoXserver" ]) LaunchOnCondor.SendCluster_Submit()
#["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")
#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")
if dir == "none": localParams += " -f=%d -step=%d" % (ijob, opt.fperjob) else: localParams += " -f=%d -step=%d" % ( opt.fperjob * ijob, opt.fperjob) print "**** Starting new job with the following parameters ****" print localParams if (len(opt.queue) > 0): #old style #batchCommand='submit2batch.sh -q%s -R\"%s\" -J%s%d %s %s'%(opt.queue,opt.requirementtoBatch,d['dtag'],ijob,scriptFile,localParams) #print batchCommand #os.system(batchCommand) FarmDirectory = "FARM" JobName = d['dtag'] + str(ijob) LaunchOnCondor.Jobs_RunHere = 1 LaunchOnCondor.Jobs_Queue = opt.queue LaunchOnCondor.Jobs_LSFRequirement = '"' + opt.requirementtoBatch + '"' LaunchOnCondor.SendCluster_Create( FarmDirectory, JobName) LaunchOnCondor.SendCluster_Push( ["BASH", str(scriptFile + ' ' + localParams)]) LaunchOnCondor.SendCluster_Submit() else: os.system(scriptFile + ' ' + localParams)
#define local site localTier = "" hostname = commands.getstatusoutput("hostname -f")[1] if (hostname.find("ucl.ac.be") != -1): localTier = "T2_BE_UCL" if (hostname.find("iihe.ac.be") != -1): localTier = "T2_BE_IIHE" if (hostname.find("cern.ch") != -1): localTier = "T2_CH_CERN" FarmDirectory = opt.outdir + "/FARM" PROXYDIR = FarmDirectory + "/inputs" initProxy() doCacheInputs = False if ("IIHE" in localTier): print "kill big-submission and sleep" doCacheInputs = True #False LaunchOnCondor.KillProcess("big-submission") LaunchOnCondor.KillProcess("sleep") JobName = opt.theExecutable LaunchOnCondor.Jobs_RunHere = 0 LaunchOnCondor.Jobs_Queue = opt.queue LaunchOnCondor.Jobs_LSFRequirement = '"' + opt.requirementtoBatch + '"' LaunchOnCondor.Jobs_EmailReport = opt.report LaunchOnCondor.Jobs_LocalNJobs = opt.localnfiles LaunchOnCondor.Jobs_CRABLFN = opt.crablfn LaunchOnCondor.Jobs_ProxyDir = FarmDirectory + "/inputs/" #open the file which describes the sample jsonFile = open(opt.samplesDB, 'r') procList = json.load(jsonFile, encoding='utf-8').items() #run over sample
def ComputeLimits(InputPattern, syst): # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino300_2C"' , '"Gluino300"', 0.0 / 0.3029 , 0.0 / 0.4955 , 1.0 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino400_2C"' , '"Gluino400"', 0.0 / 0.3029 , 0.0 / 0.4955 , 1.0 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino500_2C"' , '"Gluino500"', 0.0 / 0.3029 , 0.0 / 0.4955 , 1.0 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino600_2C"' , '"Gluino600"', 0.0 / 0.3029 , 0.0 / 0.4955 , 1.0 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino700_2C"' , '"Gluino700"', 0.0 / 0.3029 , 0.0 / 0.4955 , 1.0 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino800_2C"' , '"Gluino800"', 0.0 / 0.3029 , 0.0 / 0.4955 , 1.0 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino900_2C"' , '"Gluino900"', 0.0 / 0.3029 , 0.0 / 0.4955 , 1.0 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino1000_2C"', '"Gluino1000"',0.0 / 0.3029 , 0.0 / 0.4955 , 1.0 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino300_f0"' , '"Gluino300"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino400_f0"' , '"Gluino400"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino500_f0"' , '"Gluino500"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino600_f0"' , '"Gluino600"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino700_f0"' , '"Gluino700"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino800_f0"' , '"Gluino800"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino900_f0"' , '"Gluino900"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino1000_f0"', '"Gluino1000"',0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino300_f1"', '"Gluino300"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino400_f1"', '"Gluino400"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino500_f1"', '"Gluino500"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino600_f1"', '"Gluino600"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino700_f1"', '"Gluino700"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino800_f1"', '"Gluino800"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino900_f1"', '"Gluino900"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino1000_f1"', '"Gluino1000"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino1100_f1"', '"Gluino1100"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino300_f5"', '"Gluino300"', 0.5739 / 0.3029, 0.3704 / 0.4955, 0.0557 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino400_f5"', '"Gluino400"', 0.5739 / 0.3029, 0.3704 / 0.4955, 0.0557 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino500_f5"', '"Gluino500"', 0.5739 / 0.3029, 0.3704 / 0.4955, 0.0557 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino600_f5"', '"Gluino600"', 0.5739 / 0.3029, 0.3704 / 0.4955, 0.0557 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino700_f5"', '"Gluino700"', 0.5739 / 0.3029, 0.3704 / 0.4955, 0.0557 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino800_f5"', '"Gluino800"', 0.5739 / 0.3029, 0.3704 / 0.4955, 0.0557 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino900_f5"', '"Gluino900"', 0.5739 / 0.3029, 0.3704 / 0.4955, 0.0557 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino1000_f5"', '"Gluino1000"', 0.5739 / 0.3029, 0.3704 / 0.4955, 0.0557 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino1100_f5"', '"Gluino1100"', 0.5739 / 0.3029, 0.3704 / 0.4955, 0.0557 / 0.2015, syst ]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino300N_f0"', '"Gluino300N"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino400N_f0"', '"Gluino400N"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino500N_f0"', '"Gluino500N"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino600N_f0"', '"Gluino600N"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino700N_f0"', '"Gluino700N"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino800N_f0"', '"Gluino800N"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino900N_f0"', '"Gluino900N"', 0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) # launchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino1000N_f0"','"Gluino1000N"',0.2524 / 0.3029 , 0.4893 / 0.4955 , 0.2583 / 0.2015 , syst]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino300N_f1"', '"Gluino300N"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino400N_f1"', '"Gluino400N"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino500N_f1"', '"Gluino500N"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino600N_f1"', '"Gluino600N"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino700N_f1"', '"Gluino700N"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino800N_f1"', '"Gluino800N"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino900N_f1"', '"Gluino900N"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino1000N_f1"', '"Gluino1000N"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino1100N_f1"', '"Gluino1100N"', 0.3029 / 0.3029, 0.4955 / 0.4955, 0.2015 / 0.2015, syst ]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino300N_f5"', '"Gluino300N"', 0.5739 / 0.3029 , 0.3704 / 0.4955 , 0.0557 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino400N_f5"', '"Gluino400N"', 0.5739 / 0.3029 , 0.3704 / 0.4955 , 0.0557 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino500N_f5"', '"Gluino500N"', 0.5739 / 0.3029 , 0.3704 / 0.4955 , 0.0557 / 0.2015 , syst]) # launchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino600N_f5"', '"Gluino600N"', 0.5739 / 0.3029 , 0.3704 / 0.4955 , 0.0557 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino700N_f5"', '"Gluino700N"', 0.5739 / 0.3029 , 0.3704 / 0.4955 , 0.0557 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino800N_f5"', '"Gluino800N"', 0.5739 / 0.3029 , 0.3704 / 0.4955 , 0.0557 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino900N_f5"', '"Gluino900N"', 0.5739 / 0.3029 , 0.3704 / 0.4955 , 0.0557 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino1000N_f5"','"Gluino1000N"',0.5739 / 0.3029 , 0.3704 / 0.4955 , 0.0557 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino600Z_f1"' , '"Gluino600Z"', 0.3029 / 0.3029 , 0.4955 / 0.4955 , 0.2015 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino700Z_f1"' , '"Gluino700Z"', 0.3029 / 0.3029 , 0.4955 / 0.4955 , 0.2015 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Gluino800Z_f1"' , '"Gluino800Z"', 0.3029 / 0.3029 , 0.4955 / 0.4955 , 0.2015 / 0.2015 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop130_2C"' , '"Stop130"', 0.0 / 0.1705 , 0.0 / 0.4868 , 1.0 / 0.3427 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop200_2C"' , '"Stop200"', 0.0 / 0.1705 , 0.0 / 0.4868 , 1.0 / 0.3427 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop300_2C"' , '"Stop300"', 0.0 / 0.1705 , 0.0 / 0.4868 , 1.0 / 0.3427 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop400_2C"' , '"Stop400"', 0.0 / 0.1705 , 0.0 / 0.4868 , 1.0 / 0.3427 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop500_2C"' , '"Stop500"', 0.0 / 0.1705 , 0.0 / 0.4868 , 1.0 / 0.3427 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop600_2C"' , '"Stop600"', 0.0 / 0.1705 , 0.0 / 0.4868 , 1.0 / 0.3427 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop700_2C"' , '"Stop700"', 0.0 / 0.1705 , 0.0 / 0.4868 , 1.0 / 0.3427 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop800_2C"' , '"Stop800"', 0.0 / 0.1705 , 0.0 / 0.4868 , 1.0 / 0.3427 , syst]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop130"', '"Stop130"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop200"', '"Stop200"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop300"', '"Stop300"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop400"', '"Stop400"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop500"', '"Stop500"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop600"', '"Stop600"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop700"', '"Stop700"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop800"', '"Stop800"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop130N"', '"Stop130N"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop200N"', '"Stop200N"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop300N"', '"Stop300N"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop400N"', '"Stop400N"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop500N"', '"Stop500N"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop600N"', '"Stop600N"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop700N"', '"Stop700N"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop800N"', '"Stop800N"', 0.1705 / 0.1705, 0.4868 / 0.4868, 0.3427 / 0.3427, syst ]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop300Z"' , '"Stop300Z"', 0.1705 / 0.1705 , 0.4868 / 0.4868 , 0.3427 / 0.3427 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop400Z"' , '"Stop400Z"', 0.1705 / 0.1705 , 0.4868 / 0.4868 , 0.3427 / 0.3427 , syst]) # LaunchOnCondor.SendCluster_Push(["ROOT", os.getcwd()+"/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"Stop500Z"' , '"Stop500Z"', 0.1705 / 0.1705 , 0.4868 / 0.4868 , 0.3427 / 0.3427 , syst]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"GMStau100"', '"GMStau100"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"GMStau126"', '"GMStau126"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"GMStau156"', '"GMStau156"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"GMStau200"', '"GMStau200"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"GMStau247"', '"GMStau247"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"GMStau308"', '"GMStau308"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"GMStau370"', '"GMStau370"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"GMStau432"', '"GMStau432"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"GMStau494"', '"GMStau494"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"PPStau100"', '"PPStau100"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"PPStau126"', '"PPStau126"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"PPStau156"', '"PPStau156"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"PPStau200"', '"PPStau200"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"PPStau247"', '"PPStau247"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"PPStau308"', '"PPStau308"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK100"', '"DCRho08HyperK100"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK121"', '"DCRho08HyperK121"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK182"', '"DCRho08HyperK182"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK242"', '"DCRho08HyperK242"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK302"', '"DCRho08HyperK302"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK350"', '"DCRho08HyperK350"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK370"', '"DCRho08HyperK370"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK390"', '"DCRho08HyperK390"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK395"', '"DCRho08HyperK395"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK400"', '"DCRho08HyperK400"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK410"', '"DCRho08HyperK410"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK420"', '"DCRho08HyperK420"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho08HyperK500"', '"DCRho08HyperK500"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK100"', '"DCRho12HyperK100"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK182"', '"DCRho12HyperK182"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK302"', '"DCRho12HyperK302"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK500"', '"DCRho12HyperK500"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK530"', '"DCRho12HyperK530"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK570"', '"DCRho12HyperK570"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK590"', '"DCRho12HyperK590"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK595"', '"DCRho12HyperK595"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK600"', '"DCRho12HyperK600"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK610"', '"DCRho12HyperK610"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK620"', '"DCRho12HyperK620"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho12HyperK700"', '"DCRho12HyperK700"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK100"', '"DCRho16HyperK100"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK182"', '"DCRho16HyperK182"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK302"', '"DCRho16HyperK302"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK500"', '"DCRho16HyperK500"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK700"', '"DCRho16HyperK700"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK730"', '"DCRho16HyperK730"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK770"', '"DCRho16HyperK770"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK790"', '"DCRho16HyperK790"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK795"', '"DCRho16HyperK795"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK800"', '"DCRho16HyperK800"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK810"', '"DCRho16HyperK810"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK820"', '"DCRho16HyperK820"', -1, -1, -1, syst ]) LaunchOnCondor.SendCluster_Push([ "ROOT", os.getcwd() + "/Analysis_Step6.C", '"ANALYSE"', InputPattern, '"DCRho16HyperK900"', '"DCRho16HyperK900"', -1, -1, -1, syst ])
#!/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")
import urllib import string import os import sys import LaunchOnCondor import glob DIRR = '/afs/cern.ch/work/c/chasco/CMSSW_5_3_11/src/zllHinv_PythiaCard/' pf = 'ZHToLLInv_M135_8TeV_evts500k' FarmDirectory = "FARM" + pf JobName = "FullSim" + pf #OutputDir='/store/user/rewang/AODSIM/ZHToLLInv/'+pf OutputDir = DIRR + pf os.system('cmsMkdir ' + OutputDir) ntuplizer = "ZH_cfg3.py" LaunchOnCondor.Jobs_NEvent = 500 # tot number of evts per job LaunchOnCondor.Jobs_Skip = 0 LaunchOnCondor.Path_Ntuple = ntuplizer LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) for i in range(100): # tot number of jobs LaunchOnCondor.SendCluster_Push( ["CMSSW", "cmsRun_FullSim_53x_ZHToLLInv_M135_8TeV.py"], OutputDir) LaunchOnCondor.Jobs_Skip += LaunchOnCondor.Jobs_NEvent LaunchOnCondor.SendCluster_Submit()
import urllib import string import os import sys import LaunchOnCondor import glob CMSSW_VERSION = os.getenv('CMSSW_VERSION', 'CMSSW_VERSION') if CMSSW_VERSION == 'CMSSW_VERSION': print 'please setup your CMSSW environement' sys.exit(0) print 'OPTIMIZATION' FarmDirectory = "FARM" JobName = "HSCPTOFCheck" LaunchOnCondor.Jobs_RunHere = 1 LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) f = open('../../ICHEP_Analysis/Analysis_Samples.txt', 'r') index = -1 for line in f: index += 1 vals = line.split(',') if ((vals[0].replace('"', '')) in CMSSW_VERSION): LaunchOnCondor.SendCluster_Push([ "FWLITE", os.getcwd() + "/TOFCheck.C", '"ANALYSE_' + str(index) + '_to_' + str(index) + '"' ]) f.close() LaunchOnCondor.SendCluster_Submit()
#usage="""%prog [options]""" #description="""A simple script to generate control plots.""" #epilog="""Example: #./ControlPlots.py -i /storage/data/cms/store/user/favereau/MURun2010B-DiLeptonMu-Dec22/ -o controlPlots_MURun2010B.root --all #""" #parser = OptionParser(usage=usage,add_help_option=True,description=description,epilog=epilog) parser = OptionParser() parser.add_option("-w", "--which", dest="which", help="which sample to analyse.", metavar="WHICH") (options, args) = parser.parse_args() whichSample = options.which print "sample = ", whichSample FarmDirectory = "FARM" JobName = "Zmumubb_" + options.which LaunchOnCondor.Jobs_RunHere = 1 LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) LaunchOnCondor.Jobs_RunHere = 1 for i in range(1, 11): command = "/home/fynu/tdupree/scratch/testMakeRDSfromControlPlots2/CMSSW_4_2_7/src/UserCode/zbb_louvain/test/skimDY_423_cfg.py" option = " sample=" + whichSample + " slice=" + str(i) print "command = ", command print "option = ", option LaunchOnCondor.SendCluster_Push(["CMSSW", command, option]) LaunchOnCondor.SendCluster_Submit()
#["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")
LandSArgOptions += [" --bins _elha --systpostfix _8TeV --shape "] signalSuffixVec += [""] OUTName += ["SB8TeV_muha"] LandSArgOptions += [" --bins _muha --systpostfix _8TeV --shape "] signalSuffixVec += [""] OUTName += ["SB8TeV_haha"] LandSArgOptions += [" --bins _haha --systpostfix _8TeV --shape "] FarmDirectory = "FARM" JobName = "computeLimits" LaunchOnCondor.Jobs_RunHere = 1 #LaunchOnCondor.Jobs_Queue = opt.queue #LaunchOnCondor.Jobs_LSFRequirement = '"'+opt.requirementtoBatch+'"' LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) cutList = '' def help(): print '\n\033[92m optimize.py \033[0m \n' print ' -p phase (no default value is assigned)' print '\t 1 --> submit landS jobs for all selection point' print '\t 2 --> check the logs to find the optimal selection point' print '\t from the ouptut of the logs you can search for the optimal points yourself ;)' print '\t and edit phase3 of this script with your optimal points (note: change this to be given as input)' print '\t 3 --> you are prompted to choose the best cuts for the selection: the limits will be comptued for the list of cuts' print '\t if -f LIST.txt is given the LIST of cuts passed will be used instead' print '\t 4 --> once all the final limit jobs have been run, use this phase to build the brazilian flag plot' print '\t 0 --> cut and count based analysis'
nevents_perjob) if not os.path.isdir("/home/fynu/hbakhshiansohi/scratch/FARMS/" + FarmDirectory): os.makedirs("/home/fynu/hbakhshiansohi/scratch/FARMS/" + FarmDirectory) if os.path.islink("./" + FarmDirectory): os.remove("./" + FarmDirectory) elif os.path.isdir("./" + FarmDirectory): os.rename("./" + FarmDirectory, "./" + FarmDirectory + "_OLD") print "old is renamed" os.symlink("/home/fynu/hbakhshiansohi/scratch/FARMS/" + FarmDirectory, "./" + FarmDirectory) LaunchOnCondor.Jobs_FinalCmds.append('echo "damet-garm" \n') LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) outputdir = FarmDirectory + '/outputs/' FileTemplate = 'TChannel_%(sample)s_%(from).0f_%(to).0f' command = 'cd .. ; source env.sh ; bin/RunAll -s samples25ns/samplesMine76x.dat -f ' + FileTemplate + ' -a %(sample)s -r %(from).2f -t %(to).2f -d cp3_condor/' + outputdir global_job_counter = 0 for sample in samples: if not sample == "WJets_amcatnlo": continue nevt = samples[sample] portions = [] lasteventadded = 0.0 while lasteventadded < 100.0: portions.append(lasteventadded) lasteventadded += 100.0 * nevents_perjob / nevt
dir + string_mode + cpVersion + '/' + string_mode + ch + DATA + period + '/ \n') else: os.system('mkdir ' + dir + string_mode + cpVersion + '/' + string_mode + sample) LaunchOnCondor.Jobs_FinalCmds.append('mv ' + sample + '_*.root ' + dir + string_mode + cpVersion + '/' + string_mode + sample + '/ \n') FarmDirectory = dir + "FARM_" + string_mode + cpVersion JobName = "CoPl_list_" + cpVersion LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) if "TT" in samples: for tt in TTsamples: njobs = jobs[tt] for i in range(0, njobs): LaunchOnCondor.SendCluster_Push([ "BASH", "export weightmode='" + ttweight + "'; " + os.getcwd() + "/../PatAnalysis/ControlPlots.py -c " + theConfig + " -i /nfs/user/llbb/Pat_8TeV_5320/Summer12_" + tt + "/ -o " + tt + "_" + MC + "_" + str(i) + ".root " + stages + " --Njobs " + str(njobs) + " --jobNumber " + str(i) ]) if "SingleT" in samples: for St in SingleTsamples:
for d in data : #tag veto if(opt.onlytag!='all') : itag=d['dtag'] if(itag.find(opt.onlytag)<0) : continue inputdir = opt.inDir+"/"+d['dtag']; print str(d['dtag'])+" --> "+inputdir if(opt.duplicates): dirToClean = inputdir if(dirToClean.find('/storage/data/cms/store/')): dirToClean = dirToClean.replace('/storage/data/cms/store/', '/storage_rw/data/cms/store/') #Hack for Louvain T2 removeDuplicates(dirToClean); filenames=LaunchOnCondor.natural_sort(fillFromStore(inputdir,0,-1,False)) nfiles=len(filenames) filenames=addPrefixSuffixToFileList(" '", filenames, "',") split=getByLabel(d,'split',1) NFilesToMerge = nfiles//split NFilesToMergeRemains = nfiles%split startFile = 0 endFile = 0 for segment in range(0,split) : startFile = endFile endFile = endFile + NFilesToMerge if(NFilesToMergeRemains>0): endFile+=1 NFilesToMergeRemains-=1
if (opt.onlytag != 'all'): itag = d['dtag'] if (itag.find(opt.onlytag) < 0): continue inputdir = opt.inDir + "/" + d['dtag'] print str(d['dtag']) + " --> " + inputdir if (opt.duplicates): dirToClean = inputdir if (dirToClean.find('/storage/data/cms/store/')): dirToClean = dirToClean.replace( '/storage/data/cms/store/', '/storage_rw/data/cms/store/') #Hack for Louvain T2 removeDuplicates(dirToClean) filenames = LaunchOnCondor.natural_sort( fillFromStore(inputdir, 0, -1, False)) nfiles = len(filenames) filenames = addPrefixSuffixToFileList(" '", filenames, "',") split = getByLabel(d, 'split', 1) NFilesToMerge = nfiles // split NFilesToMergeRemains = nfiles % split startFile = 0 endFile = 0 for segment in range(0, split): startFile = endFile endFile = endFile + NFilesToMerge if (NFilesToMergeRemains > 0): endFile += 1 NFilesToMergeRemains -= 1
#!/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")
import urllib import string import os import sys import LaunchOnCondor import glob from optparse import OptionParser #from zbbSamples import getSamples, samples_PAT FarmDirectory = "FARM_btagEff" lib_path = os.path.abspath('../') sys.path.append(lib_path) JobName = "btageff" LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) #for sample in getSamples(processList=samples_PAT,typeList=["PAT"]): for sample in [ "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_DYjets/", "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_DYjets_HT200to400/", "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_DYjets_HT400/", "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_DYjets_Pt100/", "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_DYjets_Pt180/", "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_DYjets_Pt50to70/", "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_DYjets_Pt50to70_ext/", "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_DYjets_Pt70to100/", "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_DY3jets/", "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_DY4jets/", "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_ZH125/", "/nfs/user/llbb/Pat_8TeV_ReReco/Summer12_TTFullLept/"
if CMSSW_VERSION == 'CMSSW_VERSION': print 'please setup your CMSSW environement' sys.exit(0) if len(sys.argv)==1: print "Please pass in argument a number between 0 and 2" print " 0 - Run TriggerStudy.C" print " 1 - Run TriggerEfficiency.C" sys.exit() elif sys.argv[1]=='0': print 'STUDY' FarmDirectory = "FARM" JobName = "HSCPTRIGGERSTUDY" LaunchOnCondor.Jobs_RunHere = 1 LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_8TeV_Gluino"', '"Gluino_8TeV_M400_f10"', '"Gluino_8TeV_M800_f10"', '"Gluino_8TeV_M1200_f10"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_8TeV_GluinoN"', '"Gluino_8TeV_M400N_f10"', '"Gluino_8TeV_M800N_f10"', '"Gluino_8TeV_M1200N_f10"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_8TeV_Gluino_f100"', '"Gluino_8TeV_M400_f100"', '"Gluino_8TeV_M800_f100"', '"Gluino_8TeV_M1200_f100"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_8TeV_Stop"', '"Stop_8TeV_M200"', '"Stop_8TeV_M500"', '"Stop_8TeV_M800"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_8TeV_StopN"', '"Stop_8TeV_M200N"', '"Stop_8TeV_M500N"', '"Stop_8TeV_M800N"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_8TeV_GMStau"', '"GMStau_8TeV_M100"', '"GMStau_8TeV_M308"', '"GMStau_8TeV_M494"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_8TeV_PPStau"', '"PPStau_8TeV_M100"', '"PPStau_8TeV_M200"', '"PPStau_8TeV_M494"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_8TeV_DYLQ"', '"DY_8TeV_M100_Q1o3"', '"DY_8TeV_M600_Q1o3"', '"DY_8TeV_M100_Q2o3"', '"DY_8TeV_M600_Q2o3"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_8TeV_DYHQ"', '"DY_8TeV_M100_Q2"', '"DY_8TeV_M600_Q2"', '"DY_8TeV_M100_Q5"', '"DY_8TeV_M600_Q5"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_7TeV_Gluino"', '"Gluino_7TeV_M400_f10"', '"Gluino_7TeV_M800_f10"', '"Gluino_7TeV_M1200_f10"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_7TeV_GluinoN"', '"Gluino_7TeV_M400N_f10"', '"Gluino_7TeV_M800N_f10"', '"Gluino_7TeV_M1200N_f10"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_7TeV_Gluino_f100"', '"Gluino_7TeV_M400_f100"', '"Gluino_7TeV_M800_f100"', '"Gluino_7TeV_M1200_f100"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_7TeV_Stop"', '"Stop_7TeV_M200"', '"Stop_7TeV_M500"', '"Stop_7TeV_M800"']) LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/TriggerStudy.C", '"summary_7TeV_StopN"', '"Stop_7TeV_M200N"', '"Stop_7TeV_M500N"', '"Stop_7TeV_M800N"'])
if len(sys.argv) == 1: print "Please pass in argument a number between 0 and 2" print " 0 - Submit the Core of the (TkOnly+TkTOF) Analysis --> submitting 2x 3 jobs" print " 1 - Run the control plot macro --> submitting 0 jobs" print " 2 - Run the Optimization macro based on best Exp Limit --> submitting 2xSignalPoints jobs" print " 3 - Run the exclusion plot macro --> submitting 0 jobs" sys.exit() elif sys.argv[1] == '0': print 'ANALYSIS' FarmDirectory = "FARM" JobName = "HscpAnalysis" LaunchOnCondor.Jobs_RunHere = 1 LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) LaunchOnCondor.SendCluster_Push([ "FWLITE", os.getcwd() + "/Analysis_Step234.C", '"ANALYSE_DATA"', 0, '"dedxASmi"', '"dedxHarm2"', '"combined"', 0.0, 0.0, 0.0, 45, 1.5 ]) #TkOnly LaunchOnCondor.SendCluster_Push([ "FWLITE", os.getcwd() + "/Analysis_Step234.C", '"ANALYSE_SIGNAL"', 0, '"dedxASmi"', '"dedxHarm2"', '"combined"', 0.0, 0.0, 0.0, 45, 1.5 ]) #TkOnly LaunchOnCondor.SendCluster_Push([ "FWLITE", os.getcwd() + "/Analysis_Step234.C", '"ANALYSE_MC"', 0, '"dedxASmi"', '"dedxHarm2"', '"combined"', 0.0, 0.0, 0.0, 45, 1.5 ]) #TkOnly
"eval `scramv1 runtime -sh` && scramv1 b -j16 > ../compile.log 2>&1" ) os.system("mkdir testDir") os.chdir(CWD) elif len(sys.argv) == 2: ### submit runTheMatrix workflows to the cluster if sys.argv[1] == "1": JobName = "AlcaRecoComparison" FarmDirectory = "FARM" for toCompare in compare: CMSSWREL = os.listdir("%s/%s" % (CWD, toCompare[0]))[0] os.chdir("%s/%s/%s/src/testDir" % (CWD, toCompare[0], CMSSWREL)) os.system("eval `scramv1 runtime -sh`") LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) for workflow in toCompare[2]: LaunchOnCondor.SendCluster_Push([ "BASH", "runTheMatrix.py -l %s --command=\"-n %i\"; mv %s* %s/%s/%s/src/testDir/%s/outputs/results_%s" % (workflow[0], workflow[1], workflow[0], CWD, toCompare[0], CMSSWREL, FarmDirectory, workflow[0]) ]) LaunchOnCondor.Jobs_FinalCmds = [ "rm -f runall-report-step123-.log" ] os.system("rm -rf %s/%s/%s/src/testDir/%s/outputs/*" % (CWD, toCompare[0], CMSSWREL, FarmDirectory)) LaunchOnCondor.SendCluster_Submit() os.chdir(CWD)
import urllib import string import os import sys import LaunchOnCondor FarmDirectory = "condor" JobName = "cuba" LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) path = "/home/fynu/swertz/tests_MEM/MEMcpp/" start_evt = 0 end_evt = -1 evt_per_job = 50 max_evt = 10000 i = 0 while start_evt < max_evt: end_evt += evt_per_job #LaunchOnCondor.SendCluster_Push(["BASH", os.path.join(path, "condor.sh"), os.path.join(path, "data/ttbar.root"), "ttbar_DMEM_MTTbar_noTF_try0_" + str(i) + ".root", start_evt, end_evt]) #LaunchOnCondor.SendCluster_Push(["BASH", os.path.join(path, "condor.sh"), os.path.join(path, "data/ttbar_weighted_binnedTF_wholeWidths_isr0_pdfMtop_noMCoPerms_10000evt.root"), "ttbar_binnedTF_wholeWidths_isr0_pdfMtop_noMCoPerms_as013_cuba_sobol_try0_" + str(i) + ".root", start_evt, end_evt]) LaunchOnCondor.SendCluster_Push([ "BASH", os.path.join(path, "condor.sh"), os.path.join( path, "data/ttbar_weighted_binnedTF_doubleWidths_isr0_pdfMtop_noMCoPerms_sobol_10000evt.root" ), "ttbar_binnedTF_doubleWidths_isr0_pdfMtop_noMCoPerms_as013_cuba_sobol_bugFix_" + str(i) + ".root",
#!/usr/bin/env python import urllib import string import os import sys import LaunchOnCondor import glob print 'OPTIMIZATION' FarmDirectory = "FARM" JobName = "HSCPStability" LaunchOnCondor.Jobs_RunHere = 1 LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) LaunchOnCondor.SendCluster_Push( ["FWLITE", os.getcwd() + "/StabilityCheck.C", '"ANALYSE"']) LaunchOnCondor.SendCluster_Submit()
except ValueError: print 40 * '#' print "Error parsing JSON file, check syntax!" print 40 * '#' exit(-1) #append the latest tag to the dir opt.outdir += '/' + opt.forceHash FarmDirectory = opt.outdir + "/FARM" JobName = opt.theExecutable LaunchOnCondor.Jobs_RunHere = 1 LaunchOnCondor.Jobs_Queue = opt.queue LaunchOnCondor.Jobs_LSFRequirement = '"' + opt.requirementtoBatch + '"' LaunchOnCondor.Jobs_EmailReport = opt.report LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) #run over sample for proc in procList: #run over processes for desc in proc[1]: #run over items in process isdata = getByLabel(desc, 'isdata', False) mctruthmode = getByLabel(desc, 'mctruthmode', 0) data = desc['data'] for d in data: origdtag = getByLabel(d, 'dtag', '') dtag = origdtag
elif (mergedFilePath.find('/store/') == 0): LaunchOnCondor.Jobs_FinalCmds = [ 'pwd', 'ls -lth', 'cmsStageOut ' + mergedFileName + ' ' + mergedFilePath ] elif (mergedFilePath.find('srm://') == 0): LaunchOnCondor.Jobs_FinalCmds = [ 'pwd', 'ls -lth', 'source /nfs/soft/grid/ui/setup/grid-env.sh', 'export X509_USER_PROXY=/nfs/home/fynu/quertenmont/x509_user_proxy/proxy', 'ls /$PWD/' + mergedFileName, 'for i in 5m 10m 15m 20m 25m 30m 45m 60m; do lcg-cp -v -D srmv2 -b file:/$PWD/' + mergedFileName + ' ' + mergedFilePath + ' && break || echo "Pause for $i" && sleep $i; done', 'mv ' + mergedFileName + ' /home/fynu/quertenmont/scratch/13_06_26_HTauTau/LoicFramework/CMSSW_5_3_11/src/UserCode/llvv_fwk/FARM_Merge/outputs/.', 'rm -rf ' + mergedFileName ] else: LaunchOnCondor.Jobs_FinalCmds = [ 'pwd', 'ls -lth', 'mv ' + mergedFileName + ' ' + os.getcwd() + "/FARM_Merge/outputs/" + mergedFileName, 'ls -lth ' + opt.outDir ] # LaunchOnCondor.Jobs_FinalCmds = ['pwd', 'ls -lth', 'mv '+mergedFileName+' ' + mergedFilePath, 'ls -lth '+opt.outDir] # mergedFileName = 'file:'+mergedFilePath LaunchOnCondor.SendCMSMergeJob( "FARM_Merge", "Merge_" + d['dtag'] + '_' + str(segment), filenames[startFile:endFile], "'" + mergedFileName + "'", "'keep *'")
"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")
import urllib import string import os import sys import LaunchOnCondor FarmDirectory = "condor" JobName = "jetTree" LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) path = "/home/fynu/swertz/CMS_tasks/BTagTrackSel/bTag-trackSel-optimisation" #outDir = "/home/fynu/swertz/CMS_tasks/BTagTrackSel/myTrees/rejFakeTracks_manyMVA/BDT_LogdZ_length_dist_IP2D_pt_chi2_nHitPix_nHitAll/jetTrees/" outDir = "/home/fynu/swertz/CMS_tasks/BTagTrackSel/myTrees/rejFakeTracks_manyMVA/BDT_loosenedbTagCuts_dZ_length_dist_IP2D_pt_chi2_nHitPix_nHitAll/jetTrees/" #outDir = "/home/fynu/swertz/CMS_tasks/BTagTrackSel/myTrees/rejFakeTracks_manyMVA/BDT_bTagCuts_LogdZ_length_dist_IP2D_pt_chi2_nHitPix_nHitAll/jetTrees/" start_file = 1 end_file = 1 files_per_job = 3 max_files = 235 i = 1 while end_file <= max_files: end_file += files_per_job print "{}-{}".format(start_file, end_file) LaunchOnCondor.SendCluster_Push([ "BASH", os.path.join(path, "condor.sh"), start_file, end_file, "JetTree_mc_{}.root".format(i), outDir ]) start_file = end_file i += 1
#Cp if "100.0" in signalSuffix: cp = 100.0 elif "10.0" in signalSuffix: cp = 10.0 elif "5.0" in signalSuffix: cp = 5.0 ################################################### ## OPTIMIZATION LOOP ## ################################################### if (phase == 1): print '# RUN LIMITS FOR ALL POSSIBLE CUTS for ' + DataCardsDir + '#\n' LaunchOnCondor.SendCluster_Create( FarmDirectory, JobName + "_" + signalSuffix + binSuffix + OUTName[iConf]) FILE = open(OUT + "/LIST.txt", "w") i = 1 # cut index 8 corresponds to BDT cut at ~0.1 (please check!) while (i < cutsH.GetXaxis().GetNbins() + 1): shapeCutMin_ = -9999 shapeCutMax_ = 9999 SCRIPT = open( OUT + 'script_' + str(i) + '_' + str(shapeCutMin_) + '_' + str(shapeCutMax_) + '.sh', "w") SCRIPT.writelines('cd ' + CMSSW_BASE + '/src;\n') SCRIPT.writelines("export SCRAM_ARCH=" + os.getenv("SCRAM_ARCH", "slc6_amd64_gcc491") + ";\n") SCRIPT.writelines("eval `scram r -sh`;\n")
if len(sys.argv)==1: print "Please pass in argument a number between 0 and 2" print " 0 - Submit the Core of the (TkOnly+TkTOF) Analysis --> submitting 5xSignalPoints jobs" print " 1 - Merge all output files and estimate backgrounds --> submitting 5 jobs" print " 2 - Run the control plot macro --> submitting 0 jobs" print " 3 - Run the Optimization macro based on best Exp Limit --> submitting 5xSignalPoints jobs (OPTIONAL)" print " 4 - compute the limits from the cuts set in Analysis_Cuts.txt file --> submitting 5xSignalPoints jobs (must edit by hand Analysis_Cuts.txt)" print " 5 - Run the exclusion plot macro --> submitting 0 jobs" sys.exit() elif sys.argv[1]=='0': print 'ANALYSIS' FarmDirectory = "FARM" JobName = "HscpAnalysis" LaunchOnCondor.Jobs_RunHere = 1 LaunchOnCondor.SendCluster_Create(FarmDirectory, JobName) f= open('Analysis_Samples.txt','r') index = -1 for line in f : index+=1 vals=line.split(',') if((vals[0].replace('"','')) in CMSSW_VERSION): for Type in AnalysesToRun: if(int(vals[1])>=2 and skipSamples(Type, vals[2])==True):continue if (Type==0):LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/Analysis_Step3.C", '"ANALYSE_'+str(index)+'_to_'+str(index)+'"' , 0, '"dedxASmi"' ,'"dedxHarm2"' , '"combined"', 0.0, 0.0, 0.0, 45, 2.1]) elif(Type==2):LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/Analysis_Step3.C", '"ANALYSE_'+str(index)+'_to_'+str(index)+'"' , 2, '"dedxASmi"' ,'"dedxHarm2"' , '"combined"', 0.0, 0.0, 0.0, 45, 2.1]) elif(Type==3):LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/Analysis_Step3.C", '"ANALYSE_'+str(index)+'_to_'+str(index)+'"' , 3, '"dedxASmi"' ,'"dedxHarm2"' , '"combined"', 0.0, 0.0, 0.0, 80, 2.1, 15, 15]) elif(Type==4):LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/Analysis_Step3.C", '"ANALYSE_'+str(index)+'_to_'+str(index)+'"' , 4, '"dedxASmi"' ,'"dedxHarm2"' , '"combined"', 0.0, 0.0, 0.0, 45, 2.1]) elif(Type==5):LaunchOnCondor.SendCluster_Push(["FWLITE", os.getcwd()+"/Analysis_Step3.C", '"ANALYSE_'+str(index)+'_to_'+str(index)+'"' , 5, '"dedxASmi"' ,'"dedxHarm2"' , '"combined"', 0.0, 0.0, 0.0, 45, 2.1]) f.close() LaunchOnCondor.SendCluster_Submit()