file /home/anarendran/Documents/temp/rivet/pyext/rivet/hepdatapatches/CMD3_2016_I1385598.py

/home/anarendran/Documents/temp/rivet/pyext/rivet/hepdatapatches/CMD3_2016_I1385598.py

Namespaces

Name
rivet
rivet::hepdatapatches
rivet::hepdatapatches::CMD3_2016_I1385598

Source code

def patch(path, ao):
    # change x-axis to cms energy not bin number
    x = [1900,1920,1925,1940,1950,1960,1975,1980,2000]
    # fix bin widths
    if "CMD3_2016_I1385598" in path and "d01" in path :
        for i in range(0,len(ao.points())) :
            if(i<len(x)) : ao.points()[i].setX(x[i])
    return ao

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