Skip to content

Add config block for AsgEventScaleFactorAlg

Oliver Majersky requested to merge omajersk/athena:per-event-SF-block into main

This MR adds a config block for the AsgEventScaleFactorAlg. This algorithm is used in some other places internally, e.g. for per-JVT SF. However, users may often run into a scenario, where they need to multiply a bunch of per-object SFs into a per-event SF, that they store in NTuple (without storing the per-object SF) -- and for this the existing algorithm can be pretty useful, but no block config interface was available .

Here's an example usage (in the YAML config) to calculate per-event b-tagging SF for all jets which pass JVT selection:

PerEventSF:
  - name: 'btagSFCalc_DL1dv01_FixedCutBEff_85'
    particles: 'AnaJets.jvt'
    objectSF: 'ftag_effSF_DL1dv01_FixedCutBEff_85_%SYS%'
    eventSF: 'weight_btagSF_DL1dv01_FixedCutBEff_85_%SYS%'
  - name: 'btagSFCalc_DL1dv01_FixedCutBEff_77'
    particles: 'AnaJets.jvt'
    objectSF: 'ftag_effSF_DL1dv01_FixedCutBEff_77_%SYS%' 
    eventSF: 'weight_btagSF_DL1dv01_FixedCutBEff_77_%SYS%'

Merge request reports