Esempio n. 1
0
def main():
    #jobs = JDLCreator('condocker')  #run jobs on condocker cloude site
    jobs = JDLCreator('condocker')
    jobs.wall_time = 10 * 60
    jobs.memory = 10
    jobs.requirements = "(TARGET.ProvidesCPU) && (TARGET.ProvidesEkpResources)"
    ##################################
    ## submit job to set up CMSSW
    ##################################
    #jobs.SetExecutable("job_setup.sh")  # set job script
    #jobs.SetArguments(' ')              # set arguments
    #jobs.SetFolder('../setup/')         # set subfolder !!! you have to copy your job file into the folder

    ##################################
    # submit job to run combine
    ##################################
    jobs.SetExecutable("job_calc.sh")  # set job script
    #build list of arguments
    arguments = []

    arguments.append(
        "testconfig.xml Summer16/ZprimeToWW_narrow_M-3000_13TeV-madgraph/ZprimeToWW_narrow_M-3000_13TeV-madgraph20170203_signal/170203_123700/0000/ flatTuple_1.root"
    )
    #jobs.SetFolder('/usr/users/dschaefer/job_submission/local/sframe')  # set subfolder !!! you have to copy your job file into the folder
    jobs.SetArguments(
        arguments
    )  # write an JDL file and create folder f            # set arguments
    jobs.WriteJDL()  # write an JDL file and create folder for log files
Esempio n. 2
0
def writeJDL(arguments,mem,time,name):
    #jobs = JDLCreator('condocker')  #run jobs on condocker cloude site
    jobs = JDLCreator('condocker') # matthias schnepf told me i don't need this after all! (23.01.18)
    jobs.wall_time = time
    jobs.memory = mem 
    jobs.requirements = "(TARGET.ProvidesCPU) && (TARGET.ProvidesEkpResources)"
    jobs.accounting_group = "cms.top"
    ##################################
    ## submit job to set up CMSSW 
    ##################################
    #jobs.SetExecutable("job_setup.sh")  # set job script
    #jobs.SetArguments(' ')              # set arguments
    #jobs.SetFolder('../setup/')         # set subfolder !!! you have to copy your job file into the folder


    ##################################
    # submit job to run combine
    ##################################
    jobs.SetExecutable(name)  # set job script
    #jobs.SetFolder('/usr/users/dschaefer/job_submission/local/sframe')  # set subfolder !!! you have to copy your job file into the folder
    jobs.SetArguments(arguments)              # write an JDL file and create folder f            # set arguments
    jobs.WriteJDL() # write an JDL file and create folder for log files