Skip to content

CPAlgorithms: add particle-level objects

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

This MR migrates the algorithms related to particle-level truth objects (stable particles before detector simulation) from TopCPToolkit. I provide separate algorithms and configuration blocks for:

  • electrons
  • muons
  • jets
  • photons
  • taus
  • neutrinos
  • overlap removal
  • MET

Users can further run existing algorithms on these truth-level objects, e.g. IFF classification, pT/eta selection, container thinning, event selection, resonance reconstruction etc.

Example YAML config:

PL_Electrons:
  - containerName: 'TruthElectrons'
    selectionName: ''
    notFromTau: False
    PtEtaSelection:
      minPt: 25000.0
      maxEta: 2.5

PL_Muons: {}

PL_Jets:
  - containerName: 'AntiKt4TruthDressedWZJets'
    PtEtaSelection:
       minPt: 25000.0
       maxEta: 2.5
  - containerName: 'AntiKt10TruthTrimmedPtFrac5SmallR20Jets'
    PtEtaSelection:
       minPt: 25000.0
       maxEta: 2.5

PL_MissingET: {}

Thinning:
  - containerName: 'TruthElectrons'
    outputName: 'OutTruthElectrons'
    selectionName: ''
  - containerName: 'TruthMuons'
    outputName: 'OutTruthMuons'
    selectionName: ''
  - containerName: 'AntiKt4TruthDressedWZJets'
    outputName: 'OutTruthJets'
    selectionName: ''
  - containerName: 'AntiKt10TruthTrimmedPtFrac5SmallR20Jets'
    outputName: 'OutTruthLargeRJets'
    selectionName: ''

Output:
  treeName: 'particleLevel'
  vars:
    - 'EventInfo.mcChannelNumber -> mcChannelNumber'
    - 'EventInfo.runNumber -> runNumber'
    - 'EventInfo.eventNumber -> eventNumber'
  metTermName: 'NonInt'
  containers:
      'PL_': 'EventInfo'
      'PL_el_': 'OutTruthElectrons'
      'PL_mu_': 'OutTruthMuons'
      'PL_jet_': 'OutTruthJets'
      'PL_ljet_': 'OutTruthLargeRJets'
      'PL_met_': 'Truth_MET'
Edited by Baptiste Ravina

Merge request reports

Loading