Skip to content
New issue

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

[hist] Add TH1::FillRandom overload that takes TF1 directly #17108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guitargeek
Copy link
Contributor

This makes it possible to use TH1::FillRandom without relying on ROOTs global state (gROOT->ListOfFunctions()).

The new overload is made the virtual method that is overridded in the derived classes, because looking up the function by name is the same step no matter the number of dimensions.

Some Python tutorials are updated to test and show this new interface.

This makes it possible to use `TH1::FillRandom` without relying on ROOTs
global state (`gROOT->ListOfFunctions()`).

The new overload is made the `virtual` method that is overridded in the
derived classes, because looking up the function by name is the same
step no matter the number of dimensions.

Some Python tutorials are updated to test and show this new interface.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants