Skip to content

CPAlgorithms: add new algorithm for per-event lepton SF

Baptiste Ravina requested to merge ravinab/athena:leptonSF into main

This is migrated from TopCPToolkit.

Adding a new algorithm ("LeptonSF" in YAML/ConfigFactory notation) to compute an event-level electron/muon/photon SF, by combining all the per-object reconstruction/identification/isolation terms. This is the quantity that is needed at analysis-level to properly normalise MC histograms. Using this algorithm allows the user to turn off the writing of the per-object, term-specific SF branches to the output ntuple, saving further storage space.

Below is a YAML example combining various object definitions that might be used as "nominal" objects in the analysis, into a single SF:

LeptonSF:
  - electrons: 'AnaElectrons.loose'
    muons: 'AnaMuons.medium'
    photons: 'AnaPhotons.tight'
    lepton_postfix: 'nominal'
Edited by Baptiste Ravina

Merge request reports