file /home/anarendran/Documents/temp/rivet/pyext/build/rivet/hepdatapatches/OPAL_2003_I599181.py

/home/anarendran/Documents/temp/rivet/pyext/build/rivet/hepdatapatches/OPAL_2003_I599181.py

Namespaces

Name
rivet
rivet::hepdatapatches
rivet::hepdatapatches::OPAL_2003_I599181

Source code

import yoda
def patch(path, ao):
    # fix bin heights, need dividing by width
    if path == "/REF/OPAL_2003_I599181/d01-x01-y01" :
        for p in ao.points() :
            width = p.xErrs()[0]+p.xErrs()[1]
            yErrs = p.yErrs()
            for val in yErrs:
                val /= width
            p.setY(p.y()/width)
            p.setYErrs(yErrs)
    return ao

Updated on 2022-08-07 at 20:46:08 +0100