We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now here I just play with data and get correct pt, but now I have to get pt for different data for comparison and so on
The text was updated successfully, but these errors were encountered:
Add wrapper to histogram
Now, e.g. to draw few histograms on the one figure I use this.
But I would like to generalize it:
Parameters:
fig = plt.figure(figsize=(15, 7)) ax = fig.add_axes([0,0,1,1]) fig.suptitle(f'4pr Mass | {0} < pt <= {0.15}', fontsize=32) plt.style.use(hep.style.ROOT) GoodEvents = GetGoodEvents() counts, bins = np.histogram(GetMass(Draw=False), bins=100, range=(0,4)) _ = ax.hist(GetMass(Draw=False), bins=bins, color='black', histtype='step', label=f'Q = 0;Entries {np.sum(counts)}') GoodEvents = GetGoodEvents(ChargeEqualCondition=False) counts, bins = np.histogram(GetMass(ChargeEqualCondition=False,Draw=False), bins=100, range=(0,4)) _ = ax.hist(GetMass(ChargeEqualCondition=False,Draw=False), bins=bins, color='red', histtype='step', label=f'Q != 0;Entries {np.sum(counts)}') ax.legend()
Sorry, something went wrong.
bdrum
No branches or pull requests
Now here
I just play with data and get correct pt, but now I have to get pt for different data for comparison and so on
The text was updated successfully, but these errors were encountered: