Exemplo n.º 1
0
def go():
    directory = "/afs/cern.ch/user/e/elaird/work/public/d1_utca/"
    uscFiles = rootFiles(directory, mode="usc")
    if options.onlysummary:
        castorFiles = []
    else:
        castorFiles = rootFiles(directory, mode="castor")

    labels = []
    for run in sorted(uscFiles.keys()):
        if any([options.min and run < int(options.min),
                options.max and run > int(options.max),
                options.run and run != int(options.run),
                #(not options.onlyutca) and (run not in castorFiles),
                ]):
            continue
        label = "Run%d" % run
        labels.append(label)
        if options.onlysummary:
            continue

        if options.onlyutca:
            cmsFileName = ""
        else:
            #cmsFileName = castorFiles[run]
            cmsFileName = eosFile(run)

        analyze.oneRun(utcaFileName="" if options.onlycms else uscFiles[run],
                       cmsFileName=cmsFileName,
                       label=label, useEvn=False,
                       filterEvn=options.filterevn, ornTolerance=1)

    if options.onlysummary and options.run:
        labels = ["Run"+options.run]
    graphs.makeSummaryPdf(labels)
Exemplo n.º 2
0
def go(options):
    kargs = subset(options, ["feds1", "feds2"], process=True)
    kargs.update(subset(options, ["nEvents", "nEventsSkip", "outputFile", "noUnpack", "patterns", "sparseLoop"]))
    kargs["compareOptions"] = subset(options, ["anyEmap", "printEmap"])
    kargs["mapOptions"] = subset(options, ["printEventMap", "identityMap"])
    kargs["printOptions"] = subset(options, ["dump", "progress"])
    kargs["printOptions"].update(subset(options, ["noWarnUnpack", "noWarnQuality"], invert=True))
    kargs["printOptions"]["crateslots"] = sw.fedList(options.crateslots)

    for iFile in [1, 2]:
        value = getattr(options, "file%d" % iFile)
        if value:
            kargs["files%d" % iFile] = value.split(",")

    return analyze.oneRun(**kargs)
Exemplo n.º 3
0
def go(options):
    kargs = subset(options, ["feds1", "feds2"], process=True)
    kargs.update(
        subset(options, [
            "nEvents", "nEventsSkip", "outputFile", "noUnpack", "patterns",
            "sparseLoop"
        ]))
    kargs["compareOptions"] = subset(
        options, ["anyEmap", "printEmap", "printMismatches", "fewerHistos"])
    kargs["mapOptions"] = subset(options, ["printEventMap", "identityMap"])
    kargs["printOptions"] = subset(options, ["dump", "progress"])
    kargs["printOptions"].update(
        subset(options, ["noWarnUnpack", "noWarnQuality"], invert=True))
    kargs["printOptions"]["crateslots"] = sw.fedList(options.crateslots)

    for iFile in [1, 2]:
        value = getattr(options, "file%d" % iFile)
        if value:
            kargs["files%d" % iFile] = value.split(",")

    return analyze.oneRun(**kargs)
Exemplo n.º 4
0
if options.nevents:
    try:
        nEvents = int(options.nevents)
    except ValueError:
        print "ERROR: nevents '%s' cannot be converted to an int." % options.nevents
        exit()
else:
    nEvents = None

import analyze
if run == 209151:
    analyze.oneRun(
        utcaFileName=baseDir + "/usc/USC_209150.root",
        cmsFileName=baseDir + "/castor/209151.HLTSkim.root",
        label=label,
        useEvn=False,
        filterEvn=False,
        nEvents=nEvents,
    )

if run == 211155:
    analyze.oneRun(
        utcaFileName=baseDir + "/usc/USC_211155.root",
        cmsFileName=baseDir + "/usc/USC_211154.root",
        cmsIsLocal=True,
        label=label,
        useEvn=False,
        filterEvn=False,
        nEvents=nEvents,
    )