Пример #1
0
def make_vac_osc(h, lovere):
    g = ROOT.TGraph()
    nx, xmin, xmax = get_axis_desc(h.GetXaxis())
    dx = (xmax - xmin) / nx
    for ind in range(nx):
        if not ind: continue
        bl = xmin + dx * ind
        e = bl / lovere
        g.SetPoint(g.GetN(), bl, math.log10(e))
    g.SetLineWidth(2)
    return g
Пример #2
0
def make_vac_osc(h, lovere):
    g = ROOT.TGraph()
    nx,xmin,xmax = get_axis_desc(h.GetXaxis())
    dx = (xmax-xmin)/nx
    for ind in range(nx):
        if not ind: continue
        bl = xmin + dx*ind
        e = bl/lovere
        g.SetPoint(g.GetN(),bl, math.log10(e))
    g.SetLineWidth(2)
    return g
Пример #3
0
def make_base_line(h, bl=1300):
    y = h.GetYaxis()
    ny, bot, top = get_axis_desc(y)
    l = ROOT.TLine(bl, bot, bl, top)
    l.SetLineWidth(2)
    return l
Пример #4
0
def make_base_line(h, bl=1300):
    y = h.GetYaxis()
    ny,bot,top = get_axis_desc(y)
    l = ROOT.TLine(bl, bot, bl, top)
    l.SetLineWidth(2)
    return l