Skip to content

Conversation

@moritzmolch
Copy link
Contributor

This pull request adds some new convenience features regarding the sample database location and the definition of new columns, as well as some hard-coded selections and weights for Run 3 analyses.

Sample database configuration

The path to the sample database can be provided in the common settings configuration file with the key sample_database. Providing this parameter is optional. By default, the path points to the datasets sublodule in the TauFakeFactors package.

Column definitions

New columns can be added from the preselection configuration, using the following syntax:

column_definitions:
  nbtag:
    expression: id_wgt_bjet_pnet_shape
    exclude_processes:  # optional, 
        - data

This definition will translate into the python code:

rdf.Define("nbtag", "id_wgt_bjet_pnet_shape")

If the process that a processed sample is assigned to appears in the optional list exclude_processes, the Define declaration is skipped.

Hard-coded selections and weights for Run 3 analyses

Some hard-coded selections and weights are added:

  • Flavor filters for DYto2L* and DYto2Tau* samples: Only the Z → ee, μμ components are selected from DYto2L* samples, while the Z → ττ component is taken from the DYto2Tau* samples.
  • Luminosity weights for the 2022 and 2023 eras

@moritzmolch moritzmolch force-pushed the feat-column-definitions branch from 7b786e8 to 467b0da Compare December 22, 2025 10:19
@moritzmolch
Copy link
Contributor Author

Tested, preselection step works with both the usual nmssm Run 3 and the nmssm_boosted config.

Copy link
Collaborator

@nshadskiy nshadskiy left a comment

Choose a reason for hiding this comment

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

Looks fine to me.

@nshadskiy nshadskiy requested a review from a-monsch January 16, 2026 12:57
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.

4 participants