Skip to content

BTag Shape Uncs Mishandled #312

Description

@aebid

Ak4 BTagging uncertainties showed 1 sided impacts in recent limit setting. This was followed down other being a bug in the BTagShape application.

It shows up in uncertainties but not in the central when trying to make the relative up/down values in FLAF.

In the end, the code ends up doing this

norm_Central = Σ(w0)          / Σ(w0·SFc)      ← correct, SFs == SFc so it collapses
norm_s       = Σ(w0·SFc/SFs)  / Σ(w0·SFc)      ← wrong

That is from applying the weight_before/weight_after twice:

  1. weight_before / weight_after if weight_after != 0 else 1
  2. f"return {branch_name} != 0.0 ? {total_weight} / {branch_name} : 0.0",

The applied correction is therefore ⟨1/ (SF_syst/SF_central) ⟩ where it should be 1/⟨ (SF_syst/SF_central) ⟩.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions