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
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -32,7 +32,9 @@ 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, 200), weights=dat[part] * 1 / float(nshower)
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