-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[RF] Make it possible to store global observables in RooAbsData and consider these global observables in RooAbsPdf::fitTo
#8878
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
Changes from all commits
f234571
7394e0a
2a21c38
7b915d7
5052490
e2a6254
3337cf6
8fac07b
fa0166b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -239,10 +239,14 @@ RooCmdArg SplitRange(Bool_t flag=kTRUE) ; | |
| RooCmdArg SumCoefRange(const char* rangeName) ; | ||
| RooCmdArg Constrain(const RooArgSet& params) ; | ||
| RooCmdArg Constrain(RooArgSet && params) ; | ||
| RooCmdArg GlobalObservables(const RooArgSet& globs) ; | ||
| RooCmdArg GlobalObservables(RooArgSet && globs) ; | ||
|
|
||
| template<class... Args_t> | ||
| RooCmdArg GlobalObservables(Args_t &&... argsOrArgSet) { | ||
| return RooCmdArg("GlobalObservables",0,0,0,0,0,0,0,0,0,0, | ||
| &RooCmdArg::take(RooArgSet{std::forward<Args_t>(argsOrArgSet)...})); | ||
| } | ||
| RooCmdArg GlobalObservablesSource(const char* sourceName); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have you thought about making the argument an enum class? That might have the downside of being difficult to access from Python, though ...
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Exactly, enums are more efficient but are not very pythonic. I went for strings, because then in Python it will work like |
||
| RooCmdArg GlobalObservablesTag(const char* tagName) ; | ||
| //RooCmdArg Constrained() ; | ||
| RooCmdArg ExternalConstraints(const RooArgSet& constraintPdfs) ; | ||
| RooCmdArg ExternalConstraints(RooArgSet && constraintPdfs) ; | ||
| RooCmdArg PrintEvalErrors(Int_t numErrors) ; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's actually great info, which shouldn't be buried in release notes only. This belongs into the data class documentations as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point 👍