Skip to content

Conversation

@davidwalter2
Copy link
Collaborator

The externalPostfit functionality is modified such that

  1. It can be used as a starting point in a fit (e.g. with -t 0)
  2. The beta parameters are profiled after loading by default (disabled by new option --noPostfitProfile)
  3. It works now also in case the external postfit was done w/o covariance

…); Add possibility to only load parameters, not covariance from external postfit; always draw zero line in hist plot
Copy link
Collaborator

@lucalavezzo lucalavezzo left a 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).",
)
Copy link
Collaborator

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 :)

Copy link
Collaborator Author

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)
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

),
error_x=error_x,
name="Pulls ± Constraints",
name=f"Pulls ± Constraints ({name})",
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants