Пример #1
0
            submit(job.name, repDict)
    else:
        for sample in samplesList:
            submit(sample, repDict)

# EVALUATION OF EVENT BY EVENT BDT SCORE
elif opts.task == 'eval':
    repDict['queue'] = 'long.q'
    path = config.get("Directories", "MVAin")
    info = ParseInfo(samplesinfo, path)
    if opts.samples == "":
        for job in info:
            if (job.subsample):
                continue  # avoid multiple submissions from subsamples
            if (
                    info.checkSplittedSampleName(job.identifier)
            ):  # if multiple entries for one name  (splitted samples) use the identifier to submit
                print '@INFO: Splitted samples: submit through identifier'
                submit(job.identifier, repDict)
            else:
                submit(job.name, repDict)
    else:
        for sample in samplesList:
            print sample
            submit(sample, repDict)

# POSSIBILITY TO SPLIT SINGLE MERGED FILES IN SUBFILES
# IN PRINCIPLE USEFUL BUT NOT USED ANYMORE AS THE LOGIC CHANGED (I.E. DON'T MERGE FILES)
elif (opts.task == 'split'):
    path = config.get("Directories", "SPLITin")
    repDict['job_id'] = int(opts.nevents_split_nfiles_single) if int(
Пример #2
0
            # TO FIX FOR SPLITTED SAMPLE
            submit(job.name,repDict)
    else:
        for sample in samplesList:
            submit(sample,repDict)

elif opts.task == 'eval':
    repDict['queue'] = 'long.q'
    path = config.get("Directories","MVAin")
    samplesinfo = config.get("Directories","samplesinfo")
    info = ParseInfo(samplesinfo,path)
    if opts.samples == "":
        for job in info:
            if (job.subsample): 
                continue #avoid multiple submissions from subsamples
            if(info.checkSplittedSampleName(job.identifier)): # if multiple entries for one name  (splitted samples) use the identifier to submit
                print '@INFO: Splitted samples: submit through identifier'
                submit(job.identifier,repDict)
            else: submit(job.name,repDict)
    else:
        for sample in samplesList:
            print sample
            submit(sample,repDict)


elif( opts.task == 'split' ):
	path = config.get("Directories","SPLITin")
	samplesinfo = config.get("Directories","samplesinfo")
	repDict['job_id']=opts.nevents_split
	info = ParseInfo(samplesinfo,path)
	if ( opts.samples == "" ):