-
Notifications
You must be signed in to change notification settings - Fork 39
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
fix: pt variation change carried through signal region calculations #163
Conversation
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.
As a sanity check, could you please compare output histograms to https://github.com/eguiraud/analysis-grand-challenge-coffea/tree/correct-outputs (single file should be enough)? That one is built from the correctionlib version with back-ported W+jets scale variation fix.
Documented discrepancies here: Seems to be some discrepancy due to floating point error. |
That's interesting, looking at the first example
it looks like there are just some events migrating between bins. For example, these three bins
are presumably caused by two events moving between the outer and inner bin. From a quick look at other cases, that looks like it generally explains the observed behavior. It should be fine to move forward with this then. Thanks for checking! |
"mass": selected_jets_region.mass, | ||
"btagCSVV2": selected_jets_region.btagCSVV2}, | ||
with_name="PtEtaPhiMLorentzVector" | ||
) | ||
|
||
# reconstruct hadronic top as bjj system with largest pT | ||
# the jet energy scale / resolution effect is not propagated to this observable at the moment |
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 line needs to be removed, as this update takes care of propagating things correctly.
I've looked into this a bit, code for reference is in https://gist.github.com/alexander-held/d44d089b7a71f25bae17a03665325400. This compares the this PR:
resulting in bin yields of
resulting in bin yields of The differences are caused by events migrating across the boundary. What is not clear to me is why all the events in the |
Looking closer into types, this PR ends up with
while the
I guess the difference here comes down to 32 vs 64bit floats, not sure what exactly causes the difference in setups. edit: The conversion to 64bit appears via the |
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.
Looks good, thank you!
Addresses 3rd point in #162 (pt variations are carried through by overwriting jet object)