TopEFT / topeft

15 stars 24 forks source link

Check all systematics in datacard maker #412

Open bryates opened 4 months ago

bryates commented 4 months ago

https://github.com/TopEFT/topeft/blob/9e4ea60dc6abcb6503fcf70b955a1f57c8bc501a/topeft/modules/datacard_tools.py#L865-L874

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 https://github.com/TopEFT/topeft/pull/406#discussion_r1564832659_