Skip to content
Snippets Groups Projects

add new tracking performance plots with gaus fit

Open Shujie Li requested to merge update_plot_fit into master
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
334
335 # ax.set_ylabel('Normalized Density / {:d} Bins'.format(nbins))#, fontsize=20)
336 ax.set_xlabel(r'$d\theta$ (rad)')#, fontsize=20)
337
338 # -----------------phi resolution----------------------
339 ax = axs.flat[5]
340 rec_th = df.groupby('event')['phi'].first().values
341 sim_th = dfc.groupby('event')['phi'].first().values
342 dth_th = (rec_th - sim_th)
343
344 # print(np.vstack([rec_th, sim_th]).T)
345 # hval, hbins, _ = ax.hist(dth_th, bins=np.linspace(-0.002, 0.002, 101),
346 # weights=np.repeat(1./float(rec_th.shape[0]), rec_th.shape[0]), ec='k')
347 sig_ph,err_ph=hist_gaus(dth_th,ax,np.linspace(-ph_lim, ph_lim, nbins+1),klog=0,header=None)
348 # ax.set_ylabel('Normalized Counts / {:d} Bins'.format(nbins))#, fontsize=20)
349 ax.set_xlabel(r'$d\phi$ (rad)')#, fontsize=20)
Please register or sign in to reply
Loading