def createContours(gridConfig, regions, outputDir):
    N = len(regions)
    i = 0
    for r in regions:
        i += 1
        createListFileForRegion(gridConfig, r, outputDir)
        createHistogramForRegion(gridConfig, r, outputDir)
        print(colors.OKGREEN + "Finished region {0} / {1}".format(i, N) + colors.ENDC)
Пример #2
0
def createContours(gridConfig, regions, outputDir):
    N = len(regions)
    i = 0
    for r in regions:
        i += 1
        createListFileForRegion(gridConfig, r, outputDir)
        createHistogramForRegion(gridConfig, r, outputDir)
        print(colors.OKGREEN + "Finished region {0} / {1}".format(i, N) +
              colors.ENDC)
def createContours(gridConfig, regions, outputDir):
    N = len(regions)
    i = 0
    missingFiles = {}
    for r in regions:
        i += 1
        if not createListFileForRegion(gridConfig, r, outputDir):
            filePrefix = "{0}_{1}".format(r, gridConfig.name)
            filename = os.path.join(outputDir, "{0}.root".format(filePrefix))
            missingFiles[r] = filename

        # createHistogramForRegion(gridConfig, r, outputDir)
        print(colors.OKGREEN + "Finished region {0} / {1}".format(i, N) + colors.ENDC)
    return missingFiles
Пример #4
0
def createContours(gridConfig, regions, outputDir):
    N = len(regions)
    i = 0
    missingFiles = {}
    for r in regions:
        i += 1
        if not createListFileForRegion(gridConfig, r, outputDir):
            filePrefix = "{0}_{1}".format(r, gridConfig.name)
            filename = os.path.join(outputDir, "{0}.root".format(filePrefix))
            missingFiles[r] = filename

        #createHistogramForRegion(gridConfig, r, outputDir)
        print(colors.OKGREEN + "Finished region {0} / {1}".format(i, N) +
              colors.ENDC)
    return missingFiles