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

feat: add sum of weights for BTA_ttbar workflow, fix typo in suball script and make basepath in BTA producers configurable #111

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

philippgadow
Copy link

Description

This pull request introduces several improvements and fixes to the BTA workflow and associated scripts and configurations:

  1. Feature Addition:

    • Implemented support for calculating the sum of weights, including variations such as LHE scale weights, and PS weights, in the BTA_ttbar workflow (LHE PDF weights not considered for the moment).
    • Enabled configuration of basepath and output_dir in BTA_producer and BTA_ttbar_producer workflows for greater flexibility in file management.
  2. Bug Fixes:

    • Typo Correction: Fixed an issue in the suball script where variables paser were incorrectly referenced as parser, ensuring proper command-line parsing functionality.
    • Use events.PuppiMET.pt everywhere in BTA_ttbar_producer workflow if analysis is Run3
  3. Configuration Update:

    • Modified test_env.yml to replace defaults with nodefaults in the conda channel configuration, removing dependencies on Anaconda, which is not free to use for organisations with more than 200 collaborators.

Copy link
Collaborator

@Ming-Yan Ming-Yan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @philippgadow this all looks good to me ! Thanks for the PR

Is there any changes you want to include further in this PR, if not we are good to merge :)

Copy link
Collaborator

@Ming-Yan Ming-Yan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry noticing one change after approve it @philippgadow could you please have a look with this change?

Comment on lines +527 to +530
if "Run3" in self._campaign:
passMetSel = events.PuppiMET.pt > 0
else:
passMetSel = events.MET.pt > 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, did not find out the implementation was using the JME_shifts
Indeed in the functions we already implement the JEC with puppiMET and replace it as MET branch.

If you use the puppiMET branch, this might not propagate the JEC correction correctly

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.

3 participants