def plot(roots, feds1s, feds2s): for i, stem in enumerate(graphs.all_pages): graphs.makeSummaryPdfMulti(inputFiles=roots, feds1s=feds1s, feds2s=feds2s, pdf="output/%d_%s.pdf" % (1 + i, stem), pages=[stem], )
def plot(roots, feds1s, feds2s): for i, stem in enumerate(graphs.all_pages): graphs.makeSummaryPdfMulti( inputFiles=roots, feds1s=feds1s, feds2s=feds2s, pdf="output/%d_%s.pdf" % (1 + i, stem), pages=[stem], )
def plot(prefix, roots, feds1s, feds2s): graphs.makeSummaryPdfMulti(inputFiles=roots, feds1s=feds1s, feds2s=feds2s, pdf="output/%s.pdf" % prefix) if not any(feds2s): outputFile = "output/%s.root" % prefix cmd = " ".join(["hadd -f", outputFile] + roots) os.system(cmd) graphs.makeSummaryPdf( inputFile=outputFile, feds1=sorted(sum(feds1s, [])), pdf=outputFile.replace(".root", "_merged.pdf") )
def plot(prefix, roots, feds1s, feds2s): graphs.makeSummaryPdfMulti(inputFiles=roots, feds1s=feds1s, feds2s=feds2s, pdf="output/%s.pdf" % prefix) if not any(feds2s): outputFile = "output/%s.root" % prefix cmd = " ".join(["hadd -f", outputFile] + roots) os.system(cmd) graphs.makeSummaryPdf(inputFile=outputFile, feds1=sorted(sum(feds1s, [])), pdf=outputFile.replace(".root", "_merged.pdf"))
def main(): options, runs = opts() roots = [] feds1s = [] feds2s = [] for run in runs: retCode, feds1, feds2 = go(options, run, len(runs)) if not retCode: roots.append(options.outputFile) feds1s.append(feds1) feds2s.append(feds2) if 2 <= len(roots): for i, stem in enumerate(graphs.all_pages): graphs.makeSummaryPdfMulti(inputFiles=roots, feds1s=feds1s, feds2s=feds2s, pdf="output/%d_%s.pdf" % (1 + i, stem), pages=[stem])