Skip to content
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

Check all systematics in datacard maker #412

Open
bryates opened this issue May 17, 2024 · 0 comments
Open

Check all systematics in datacard maker #412

bryates opened this issue May 17, 2024 · 0 comments
Assignees

Comments

@bryates
Copy link
Contributor

bryates commented May 17, 2024

if "Up" in syst:
if check_zero_arr0 and sum(arr[0]) != 0:
print("Systematics Error arr[0]:Zero values in 'nominal' but non-zero in '%s'" % (syst))
if check_zero_arr1 and sum(arr[1]) != 0:
print("Systematics Error arr[1]:Zero values in 'nominal' but non-zero in '%s'" % (syst))
if "Down" in syst:
if check_zero_arr0 and sum(arr[0]) != 0:
print("Systematics Error arr[0]:Zero values in 'nominal' but non-zero in '%s'" % (syst))
if check_zero_arr1 and sum(arr[1]) != 0:
print("Systematics Error arr[1]:Zero values in 'nominal' but non-zero in '%s'" % (syst))

  • The FF terms only affect the fakes_sm process
  • The other terms (e.g. FSR, renorm, ...) affect every process but fakes_sm

Something like this might be the minimal changes needed:

                        check_zero_arr0 = check_zero_arr0 and ('fakes' in proc and 'FF' in syst) or ('fakes' not in proc and 'FF' not in syst)
                        check_zero_arr1 = check_zero_arr1 and ('fakes' in proc and 'FF' in syst) or ('fakes' not in proc and 'FF' not in syst)
                        if "Up" in syst:

Now I don't think proc is defined here, so see if there's an easy way to pass it or get it here.

Originally posted by @bryates in #406 (comment)

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

No branches or pull requests

3 participants