-
Notifications
You must be signed in to change notification settings - Fork 13
Update external postfit functionality #102
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
base: main
Are you sure you want to change the base?
Conversation
…parameters after loading externalPostfit
…); Add possibility to only load parameters, not covariance from external postfit; always draw zero line in hist plot
lucalavezzo
left a comment
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.
minor comments, I think good to merge if you want
| default=False, | ||
| action="store_true", | ||
| help="Do not profile beta parameters in the postfit (e.g. when using --externalPostfit).", | ||
| ) |
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.
It may be helpful to be more descriptive in this help section (or perhaps start a documentation?), because honestly I don't always follow the intricacies of these settings; in particular, here, I'm not sure what the use case for this is, and even a short sentence to give more context may help the layman user :)
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.
I've modified the help message. In general I agree that we should come up with a better documentation.
| h_den = h_inclusive | ||
|
|
||
| if diff: | ||
| h0 = hh.addHists(h_num, h_num, scale2=-1) |
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.
I guess you're using this to get an empty histogram with the same size as h_num, does this treat the variances correctly (if that matters)? Depending on the storage type, it may be summing the variances to find the final ones on h0.
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.
This is actually only used to draw the grey line around 1 (or 0 in case the difference is plot), without errors.
bin/rabbit_plot_pulls_and_impacts.py
Outdated
| ), | ||
| error_x=error_x, | ||
| name="Pulls ± Constraints", | ||
| name=f"Pulls ± Constraints ({name})", |
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.
if name is not passed?
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.
Fixed
The externalPostfit functionality is modified such that