Skip to content

b jet tagging scale factors in setup with multiple working points#375

Open
moritzmolch wants to merge 12 commits intomainfrom
feat-b-tagging-sf-multiple-wp
Open

b jet tagging scale factors in setup with multiple working points#375
moritzmolch wants to merge 12 commits intomainfrom
feat-b-tagging-sf-multiple-wp

Conversation

@moritzmolch
Copy link
Copy Markdown
Contributor

@moritzmolch moritzmolch commented May 5, 2026

A new function BtaggingMultipleWP is added, which calculates the event b jet tagging scale factor for a setup with multiple working points. Such a setup replaces the shape-based b jet tagging corrections for some eras. The function BtaggingWP has been adapted to also incude the jet efficiencies.

The function expects a BTV POG correctionlib file (e.g., one like this), and a file with the b jet tagging efficiencies in MC as inputs.

Note that the signature of BtaggingWP has changed from:

BtaggingWP(
    ROOT::RDF::RNode df,
    correctionManager::CorrectionManager &correction_manager,
    const std::string &outputname,
    const std::string &pt,
    const std::string &eta,
    const std::string &flavor,
    const std::string &jet_mask,
    const std::string &bjet_mask,
    const std::string &jet_veto_mask,
    const std::string &sf_file,
    const std::string &sf_name,
    const std::string &variation,
    const std::string &btag_wp
);

to

BtaggingWP(
    ROOT::RDF::RNode df,
    correctionManager::CorrectionManager &correction_manager,
    const std::string &outputname,
    const std::string &pt,
    const std::string &eta,
    const std::string &btag_value,
    const std::string &flavor,
    const std::string &jet_mask,
    const std::string &bjet_mask,
    const std::string &jet_veto_mask,
    const std::string &sf_file,
    const std::string &sf_name,
    const std::string &sf_wp_name,
    const std::string &eff_file,
    const std::string &eff_name,
    const std::string &sample_type,
    const std::string &variation,
    const std::string &btag_wp_name
);

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented May 5, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 29 complexity · 7 duplication

Metric Results
Complexity 29
Duplication 7

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@moritzmolch moritzmolch marked this pull request as ready for review May 6, 2026 16:32
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.

1 participant