Commit 5b197384 authored by Philipp Oleynik's avatar Philipp Oleynik
Browse files

rudimentary RADMON utils

parent 78134a57
#!/usr/bin/python3
import numpy as np
from matplotlib import path
if __name__ == "__main__":
print("This is a module! Bye.")
else:
x_p = np.array([0, 512, 512, 1024, 1024, 1536, 1536, 2048, 2048, 1536, 1536, 1024, 1024, 512, 512, 0])
y_p = np.array([1170, 230, 360, 160, 202, 132, 142, 110, 246, 278, 288, 358, 400, 600, 730, 1670])
x_pen = np.array([1024, 1536, 1536, 2048, 2048, 1536, 1536, 1024])
y_pen = np.array([92, 97, 131, 144, 212, 199, 233, 228])
x_e = np.array([0, 512, 1024, 0])
y_e = np.array([300, 100, 0, 0])
x_over = np.array([0, 2048, 2048, 1536, 1536, 1024, 1024, 512, 512, 0])
y_over = np.array([2048, 2048, 246, 278, 288, 358, 400, 600, 730, 1670])
x_under = np.array([0, 512, 512, 1024, 1024, 1536, 1536, 2048, 2048, 1024, 512, 0])
y_under = np.array([1170, 230, 360, 160, 92, 97, 132, 110, 0, 0, 100, 300])
binbreaks = np.array([0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048])
protons_Path = path.Path(np.array([x_p, y_p]).transpose())
penetra_Path = path.Path(np.array([x_pen, y_pen]).transpose())
electro_Path = path.Path(np.array([x_e, y_e]).transpose())
overone_Path = path.Path(np.array([x_over, y_over]).transpose())
overtwo_Path = path.Path(np.array([x_under, y_under]).transpose())
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment