Exemple #1
0
prepattern = ""
BaseName = "L1_Items_"
DoRunName = True
oneplot = False
magnitudes = 3.5  # orders of magnitude in each plot
forcetitle = False

for o, a in opts:
    if o in ('-h', '--help'):
        usage()
        sys.exit(0)
    if o in ('--inputfile', '-i'):
        fname = a
    if o in ('--vetos'):
        vetos = l1ctpy.text_to_ranges(a)
        vetos = l1ctpy.expandlist(vetos, 0, 256 - 1)
    if o in ('--counters'):
        patterns = l1ctpy.text_to_ranges(a)
        patterns = l1ctpy.expandlist(patterns, 0, 256 - 1)
    if o in ('--maxcurves'):
        maxcurves = int(a)
    if o in ('--maxpads'):
        maxpads = int(a)
    if o in ('--skipcurves'):
        skipcurves = int(a)
    if o in ('--outbase'):
        BaseName = str(a)
    if o in '--lb':
        lbrange = a
    if o in '--norunname':
        DoRunName = 0
Exemple #2
0
OPT['--norunname'] = False
OPT['--maxzscale'] = ''
#1000

for o, a in opts:
    if o in ('-h', '--help'):
        usage()
        sys.exit(0)
    if o == '--lb':
        OPT["--lb"] = l1ctpy.text_to_ranges(a)
    if o == '--outbase':
        OPT["--filename"] = str(a)
    if o == '--counters':
        OPT["--counters"] = l1ctpy.text_to_ranges(a)
        OPT["--counters"] = l1ctpy.expandlist(OPT["--counters"], 0, 678 - 1)
    if o == '--maxbins':
        OPT["--maxbins"] = int(a)
    if o in ['--dbid', '--dbidLumi', '--run']:
        OPT[o] = a
    if o == '--textsum':
        OPT["--textsum"] = True
        OPT["--verbose"] = True
    if o in [
            '--verbose', "--nofillHist", "--nodrawHist", '--keepnames',
            '--overflows', '--norunname'
    ]:
        OPT[o] = True
    if o == '--nodraw':
        OPT["--nodraw"] = OPT["--nodraw"] + str(a)
    if o == "--maxzscale":
Exemple #3
0
OPT['--bcidpattern'] = False
OPT['--maxzscale'] = ''

for o, a in opts:
    if o in ('-h', '--help'):
        usage()
        sys.exit(0)
    if o == '--run':
        OPT["--run"] = a
    if o == '--lb':
        OPT["--lb"] = l1ctpy.text_to_ranges(a)
    if o == '--outbase':
        OPT["--filename"] = str(a)
    if o == '--counters':
        OPT["--counters"] = l1ctpy.text_to_ranges(a)
        OPT["--counters"] = l1ctpy.expandlist(OPT["--counters"], 0, 160 - 1)
    if o == '--bcid':
        OPT["--bcids"] = l1ctpy.text_to_ranges(a)
        OPT["--bcids"] = l1ctpy.expandlist(OPT["--bcids"], 0, 3564 - 1)
    if o == '--textsum':
        OPT["--textsum"] = True
        OPT["--verbose"] = True
    if o == '--textbc':
        OPT["--textbc"] = True
        OPT["--verbose"] = True
    if o in [
            '--bcidpattern', '--verbose', '--nofillHist', "--nodrawHist",
            '--norunname', '--nobatch'
    ]:
        OPT[o] = True
    if o == "--nodraw":