示例#1
0
def plot(var, reg, **kw):
    from iUtils import parseOpts
    cp = iplot_plot(var, reg, **kw)
    (o, a) = parseOpts()
    plotName = getPlotName(var, reg)
    #cp['canvas'].SaveAs(o.output+"/"+plotName+".eps")
    cp['canvas'].SaveAs(o.output + "/" + plotName + ".pdf")
    return cp
示例#2
0
def stack(var, reg, **kw):
    cp = iplot_stack(var, reg, **kw)

    regName = reg
    varName = var

    (o, a) = parseOpts()
    #cp['canvas'].SaveAs(o.output+"/"+regName+"_"+varName+".eps")
    cp['canvas'].SaveAs(o.output + "/" + regName + "_" + varName + ".pdf")

    return cp
示例#3
0
def comp(var, reg="", **kw):
    cp = iplot_comp(var, reg, **kw)

    if isinstance(reg, list):
        regName = reg[0]
    else:
        regName = reg

    if isinstance(var, list):
        varName = var[0]
    else:
        varName = var

    (o, a) = parseOpts()
    print "regName is", regName
    print cp
    #cp['canvas'].SaveAs(o.output+"/"+regName+"_"+varName+".eps")
    cp['canvas'].SaveAs(o.output + "/" + regName + "_" + varName + ".pdf")
示例#4
0
from iUtils import parseOpts, getPM, setBatch, plot

setBatch()
(o,a) = parseOpts()
pm = getPM(o)

#
# Jet-Level
#
vars = [
    "matched_dDeepcsv",
    "matched_dEta",
    "matched_dPhi",
    "matched_dPt",
    "matched_dR",
    ]


for v in vars:
    if not o.puppi:
        plot(v,"offJets_matched",logy=1)
    if o.puppi:
        plot(v,"offJets_matchedPuppi",logy=1)


#
#  BTagging Level
#
vars = [
    # Track Level
    "d_ip2d"                ,
示例#5
0
##
##if not options.histName:
##    options.histName = args[0]

import sys, os
from ROOT import TDirectory, TH1F, TH2F, TH2, TH1, ROOT
import ROOT

import sys, os
#iStackDir = os.path.dirname(os.path.realpath(__file__))
#sys.path.insert(0,iStackDir+'/scripts/')

#from iPlotLoadPath import loadPath
#loadPath()
from iUtils import parseOpts
(options, args) = parseOpts()

#
#  Load Atlas Style
#
#iStackDir = os.path.dirname(os.path.realpath(__file__))
#atlasstylesearch=[
#    iStackDir+'/AtlasStyle.C',
#    ]

import ROOTHelp.FancyROOTStyle

#for p in atlasstylesearch:
#    if os.path.exists(p):
#        ROOT.gROOT.LoadMacro(p)
#        break