file /home/anarendran/Documents/temp/rivet/pyext/build/lib.linux-x86_64-3.10/rivet/hepdatapatches/MARKII_1985_I209198.py
/home/anarendran/Documents/temp/rivet/pyext/build/lib.linux-x86_64-3.10/rivet/hepdatapatches/MARKII_1985_I209198.py
Namespaces
Name |
---|
rivet |
rivet::hepdatapatches |
rivet::hepdatapatches::MARKII_1985_I209198 |
Source code
def patch(path, ao):
if "MARKII_1985_I209198" in path:
# set bin width
if "d01" in path:
for p in ao.points():
p.setXErrs(0.5)
# bin width problematic (best effort)
elif "d02" in path:
edges=[0.084,0.094,0.104,0.124,0.157,0.190,0.223,0.256,
0.289,0.322,0.355,0.423,0.491,0.559,0.627,0.695]
ix=0
for p in ao.points() :
p.setXErrs((p.x()-edges[ix],edges[ix+1]-p.x()))
ix+=1
return ao
Updated on 2022-08-07 at 20:46:08 +0100