Ejemplo n.º 1
0
    usage()
    sys.exit(2)

for o, a in opts:
    if o in ('-h', '--help'):
        usage()
        sys.exit(0)

import l1ctpy

# defaults:
OPT = {}
OPT["--run"] = int(-1)
OPT["--counters"] = ['MBTS']
OPT["--bcids"] = None
OPT["--lb"] = l1ctpy.text_to_ranges('-')
OPT["--maxbins"] = 400
OPT["--verbose"] = False
OPT["--nofillHist"] = False
OPT["--nodrawHist"] = False
OPT["--textsum"] = False
OPT["--filename"] = "CTPIN_"

OPT["--dbid"] = l1ctpy.get_dbid_MONP()
OPT["--dbidLumi"] = l1ctpy.get_dbid_COMP()

OPT["--nodraw"] = ""

OPT['--norunname'] = False
OPT['--maxzscale'] = ''
#1000
Ejemplo n.º 2
0
for o, a in opts:
    if o in ('-h', '--help'):
        usage()
        sys.exit(0)

import l1ctpy
# defaults:
OPT = {}
OPT["--run"] = int(-1)
OPT["--summary"] = False
OPT["--list"] = False
OPT["--verbose"] = False
OPT["--filename"] = "LBINTERP_"
OPT['--norunname'] = False
OPT["--dt"] = 1
OPT["--lb"] = l1ctpy.text_to_ranges('-')
OPT['--since_runstart'] = 0

for o, a in opts:
    if o in ('-h', '--help'):
        usage()
        sys.exit(0)
    if o == '--run':
        OPT["--run"] = a
    if o == '--dt':
        OPT["--dt"] = float(a)
    if o == '--since_runstart':
        OPT['--since_runstart'] = 1
    if o == '--outbase':
        OPT["--filename"] = str(a)
    if o == '--summary':
Ejemplo n.º 3
0
    opts, args = getopt.getopt(sys.argv[1:], 'h', longopts)
except getopt.GetoptError, e:
    usage()
    sys.exit(2)

for o, a in opts:
    if o in ('-h', '--help'):
        usage()
        sys.exit(0)

import l1ctpy
# defaults:
OPT = {}
OPT["--run"] = int(-1)
OPT["--counters"] = ['core_moni', 'ctpmi', 'out']
OPT["--lb"] = l1ctpy.text_to_ranges("-")
OPT["--maxbins"] = 400
OPT["--bcids"] = None
OPT["--verbose"] = False
OPT["--nofillHist"] = False
OPT["--nodrawHist"] = False
OPT["--textsum"] = False
OPT["--keepnames"] = False
OPT["--overflows"] = False
OPT["--filename"] = "busy_"
OPT["--nodraw"] = ""

OPT["--dbid"] = l1ctpy.get_dbid_MONP()
OPT["--dbidLumi"] = l1ctpy.get_dbid_COMP()

OPT['--norunname'] = False
Ejemplo n.º 4
0
lbrange = '-'
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':
Ejemplo n.º 5
0
    usage()
    sys.exit(2)

for o, a in opts:
    if o in ('-h', '--help'):
        usage()
        sys.exit(0)

sys.argv[1:] = []  #prevent root to interpret command line parameters
import l1ctpy
# defaults:
OPT = {}
OPT["--run"] = int(-1)
OPT["--counters"] = ["MBTS"]
OPT["--bcids"] = [1]
OPT["--lb"] = l1ctpy.text_to_ranges('L5')
OPT["--verbose"] = False
OPT["--textbc"] = False
OPT["--nofillHist"] = False
OPT["--nodrawHist"] = False
OPT["--nodraw"] = ""
OPT["--textsum"] = False
OPT["--filename"] = "CTPMON_"
OPT['--norunname'] = False
OPT['--nobatch'] = False
OPT['--bcidpattern'] = False
OPT['--maxzscale'] = ''

for o, a in opts:
    if o in ('-h', '--help'):
        usage()