-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[RF] Add RooArgSet storage to RooAbsData for GlobalObservables #8123
Comments
This addresses GitHub issue root-project#8123.
Hi @will-cern! I opened a PR that implements what you need (I think). Can you please have a look and let us know if this is what you meant? If you think this is a good start, we can continue the discussion with @lmoneta. |
This addresses GitHub issue root-project#8123.
Thanks. I've had a quick look -- so your approach is to say that the global observables get added to the dataset in the same way you would list your observables, but then you have a way to flag which of the observables are the global ones? I guess I was imagining instead that the global observables would be truly independent of the observables. So e.g. I would have code like:
Do you think that sort of interface will cause problems though? |
Hi, thanks for your comment! Hmm I have to think about that suggestion with the constructor. It would be nice certainly, but adding a parameter to the constructor of an abstract class means usually a lot of code repetition: the parameter would have to be added to most constructors of all child classes (RooDataSet and RooDataHist). Maybe we also need a configuration struct here. Ah right, I missed that! The global observables are usually not even in the columns of the dataset, right? So my assumption that they are a subset of the columns was just plain wrong, no? |
Just thought I'd poke this issue @guitargeek because it came up in a meeting again today. Have we settled on whether the global observables should be part of the collection returned by
To create a dataset with global observables attached. I guess it would be fine for
to pick out the global observables. Otherwise just |
Hi @guitargeek, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
9 similar comments
Hi @guitargeek, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
Hi @guitargeek, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
Hi @guitargeek, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
Hi @guitargeek, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
Hi @guitargeek, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
Hi @guitargeek, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
Hi @guitargeek, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
Hi @guitargeek, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
Hi @guitargeek, It appears this issue is closed, but wasn't yet added to a project. Please add upcoming versions that will include the fix, or 'not applicable' otherwise. Sincerely, |
It would be very helpful if RooAbsData was able to store an optional associated RooArgSet (simply as a data member?) of global observable values. These should be settable by the user.
Once this is added, the methods like 'fitTo' could automatically make use of this set for the global observables. Also it would make sense that 'getParameters' considered these global observables to be observables and so getParameters doesn't return the global observables in the list.
Thanks!
The text was updated successfully, but these errors were encountered: