IAP GITLAB

Skip to content
Snippets Groups Projects

"Need for writing first interaction information"

Closed Alan Coleman requested to merge first_interaction_writer into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -32,8 +32,8 @@ def plot_avg_profile(dat, part, ax):
nshower = len(dat.shower.unique()) # number of showers in output dir
max_dX = np.max(dat["X"])
h = np.histogram(
dat.X,
bins=np.linspace(0, max_dX, len(dat["X"]) - 1),
dat.X,
bins=np.linspace(0, max_dX, len(dat["X"]) - 1),
weights=dat[part] * 1 / float(nshower),
)
ax.plot(h[1][:-1], h[0], label=part)
Loading