Beispiel #1
0
          GEMINIm27L1 2017.08.30.08.22    20000
    
    Then this will make a plot of Eff vs. EffGain from the data supplied
    """

    from gempython.gemplotting.utils.anautilities import parseListOfScanDatesFile
    from gempython.utils.wrappers import envCheck
    from gempython.gemplotting.macros.plotoptions import parser
    from gempython.gemplotting.mapping.chamberInfo import chamber_config, GEBtype

    import os

    parser.add_option(
        "--bkgSub",
        action="store_true",
        dest="bkgSub",
        help=
        "Use Background Subtracted info from fit analysis in anaUltraLatency.py",
        metavar="bkgSub")
    parser.add_option("--latSig",
                      type="int",
                      dest="latSig",
                      default=None,
                      help="Latency bin where signal is found",
                      metavar="latSig")
    parser.add_option(
        "-p",
        "--print",
        action="store_true",
        dest="printData",
        help="Prints a comma separated table with the data to the terminal",
        return thisPlot


if __name__ == '__main__':
    from gempython.gemplotting.utils.anaInfo import tree_names
    from gempython.gemplotting.utils.anautilities import filePathExists, getDirByAnaType, parseListOfScanDatesFile
    from gempython.utils.wrappers import envCheck
    from gempython.gemplotting.macros.plotoptions import parser

    import array
    import os

    parser.add_option(
        "--anaType",
        type="string",
        dest="anaType",
        help=
        "Analysis type to be executed, from list {'latency','scurve','scurveAna','threshold','trim','trimAna'}",
        metavar="anaType")
    parser.add_option("--axisMaxX",
                      type="float",
                      dest="axisMaxX",
                      default=None,
                      help="Maximum value for X-axis range",
                      metavar="axisMaxX")
    parser.add_option("--axisMinX",
                      type="float",
                      dest="axisMinX",
                      default=None,
                      help="Minimum value for X-axis range",
                      metavar="axisMinX")
#!/bin/env python

if __name__ == '__main__':
    from gempython.gemplotting.utils.anaInfo import tree_names
    from gempython.gemplotting.utils.anautilities import filePathExists, getDirByAnaType, parseListOfScanDatesFile
    from gempython.utils.wrappers import envCheck, runCommand
    from gempython.gemplotting.macros.plotoptions import parser
    from gempython.gemplotting.macros.scurvePlottingUtitilities import overlay_scurve

    import os

    parser.add_option(
        "--anaType",
        type="string",
        dest="anaType",
        help="Analysis type to be executed, from list {'scurveAna','trimAna'}",
        metavar="anaType")
    parser.add_option(
        "--drawLeg",
        action="store_true",
        dest="drawLeg",
        help=
        "When used with --summary option draws a TLegend on the output plot",
        metavar="drawLeg")
    parser.add_option(
        "--rootOpt",
        type="string",
        dest="rootOpt",
        default="RECREATE",
        help="Option for the output TFile, e.g. {'RECREATE','UPDATE'}",
        metavar="rootOpt")
#!/bin/env python

import os

from gempython.gemplotting.utils.anautilities import saveSummary
from gempython.utils.nesteddict import nesteddict as ndict
from gempython.gemplotting.macros.plotoptions import parser

parser.add_option("-a","--all", action="store_true", dest="all_plots",
                  help="Make all plots", metavar="all_plots")
parser.add_option("-f","--fit", action="store_true", dest="fit_plots",
                  help="Make fit parameter plots", metavar="fit_plots")
parser.add_option("-x","--chi2", action="store_true", dest="chi2_plots",
                  help="Make Chi2 plots", metavar="chi2_plots")

(options, args) = parser.parse_args()
filename = options.filename[:-5]

import ROOT as r

r.gROOT.SetBatch(True)
inF = r.TFile(filename+'.root')

vSum   = ndict()
vNoise = ndict()
vThreshold = ndict()
vChi2      = ndict()
vComparison = ndict()
vNoiseTrim  = ndict()
vPedestal   = ndict()
if __name__ == '__main__':
    from gempython.gemplotting.utils.anaInfo import tree_names
    from gempython.gemplotting.utils.anautilities import getCyclicColor, getDirByAnaType, filePathExists, make2x4Canvas, make3x8Canvas, parseListOfScanDatesFile
    from gempython.utils.nesteddict import nesteddict as ndict
    from gempython.utils.wrappers import envCheck, runCommand
    from gempython.gemplotting.macros.plotoptions import parser
    from gempython.gemplotting.macros.scurvePlottingUtitilities import overlay_scurve

    import os
    import ROOT as r

    parser.add_option(
        "--alphaLabels",
        action="store_true",
        dest="alphaLabels",
        help=
        "Draw output plot using alphanumeric lables instead of pure floating point",
        metavar="alphaLabels")
    parser.add_option(
        "--anaType",
        type="string",
        dest="anaType",
        help="Analysis type to be executed, from list {'scurveAna','trimAna'}",
        metavar="anaType")
    parser.add_option(
        "--drawLeg",
        action="store_true",
        dest="drawLeg",
        help=
        "When used with --summary option draws a TLegend on the output plot",