Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • athena athena
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Jira
    • Jira
  • Merge requests 198
    • Merge requests 198
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • atlasatlas
  • athenaathena
  • Merge requests
  • !59677

DerivationFramework: implement self-contained tau thinning, update tau smart slimming list and enable tau thinning in PHYS

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Bertrand Martin Dit Latour requested to merge martindl/athena:master_DFTauThinning into master Jan 09, 2023
  • Overview 31
  • Commits 2
  • Pipelines 3
  • Changes 8

Hello,

This MR implements a self-contained tool in the DerivationFramework to thin all tau-related containers at once. It replaces the per-container thinning tools used so far. The following containers are thinned: TauJets, TauTracks, InDetTrackParticles, TauNeutralParticleFlowObjects, TauSecondaryVertices, as well as the equivalent "_MuonRM" containers from the muon-subtracted tau reconstruction.

The tau thinning that had been deactivated for easier R21-vs-R22 comparisons is re-enabled. For now, we only require tau pt > 13 GeV. No cut is applied to nTracks nor to the RNN ID score.

The tau smart slimming list has been extended to take advantage of new variables:

  • TauJetsAux.nChargedTracks.nIsolatedTracks.nAllTracks: the first is for convenience, the last two cannot be accessed anymore at DAOD level due to tau track thinning and are useful to understand tau modelling
  • TauJetsAux.NNDecayModeProb_1p0n.NNDecayModeProb_1p1n.NNDecayModeProb_1pXn.NNDecayModeProb_3p0n: tau NN decay mode probabilities, new in R22, the last probability NNDecayModeProb_3pXn can be obtained from unitarity and was not added
  • TauTracksAux.rnn_chargedScore.rnn_isolationScore.rnn_conversionScore: new in R22, again the last score rnn_fakeScore can be obtained from unitarity and was not added

Thanks to the thinning, the size of DAOD_PHYS is kept almost unchanged :-) Numbers taken from 1k ttbar events:

Before:
================================================================================
     Disk Size         Fraction    Category Name
--------------------------------------------------------------------------------
       2.391 kb        0.064       tau
       3.128 kb        0.083       InDet
      37.517 kb        1.000       Total
--------------------------------------------------------------------------------
     Mem Size       Disk Size        Size/Evt      Compression  Items  Container Name (Type)
--------------------------------------------------------------------------------
     189.111 kb       34.521 kb        0.035 kb        5.478     1000  TauSecondaryVertices_MuonRM (DataVector<xAOD::Vertex_v1>) [tau]
     201.008 kb       41.326 kb        0.041 kb        4.864     1000  TauTracks_MuonRM (DataVector<xAOD::TauTrack_v1>) [tau]
     347.127 kb       62.358 kb        0.062 kb        5.567     1000  DiTauJets (DataVector<xAOD::DiTauJet_v1>) [tau]
     189.941 kb       65.823 kb        0.066 kb        2.886     1000  TauNeutralParticleFlowObjects_MuonRM (DataVector<xAOD::PFO_v1>) [tau]
     721.512 kb      146.839 kb        0.147 kb        4.914     1000  DiTauJetsLowPt (DataVector<xAOD::DiTauJet_v1>) [tau]
     969.123 kb      176.326 kb        0.176 kb        5.496     1000  TauJets_MuonRM (DataVector<xAOD::TauJet_v3>) [tau]
     769.607 kb      196.075 kb        0.196 kb        3.925     1000  TauSecondaryVertices (DataVector<xAOD::Vertex_v1>) [tau]
     894.438 kb      229.125 kb        0.229 kb        3.904     1000  TruthTaus (DataVector<xAOD::TruthParticle_v1>) [Truth]
    1013.831 kb      286.620 kb        0.287 kb        3.537     1000  TauTracks (DataVector<xAOD::TauTrack_v1>) [tau]
     953.835 kb      606.876 kb        0.607 kb        1.572     1000  TauNeutralParticleFlowObjects (DataVector<xAOD::PFO_v1>) [tau]
    5791.151 kb      774.328 kb        0.774 kb        7.479     1000  TauJets (DataVector<xAOD::TauJet_v3>) [tau]
After:
================================================================================
     Disk Size         Fraction    Category Name
--------------------------------------------------------------------------------
       2.217 kb        0.060       tau
       2.952 kb        0.079       InDet
      37.241 kb        1.000       Total
--------------------------------------------------------------------------------
     Mem Size       Disk Size        Size/Evt      Compression  Items  Container Name (Type)
--------------------------------------------------------------------------------
     185.936 kb       33.244 kb        0.033 kb        5.593     1000  TauSecondaryVertices_MuonRM (DataVector<xAOD::Vertex_v1>) [tau]
     161.026 kb       41.938 kb        0.042 kb        3.840     1000  TauNeutralParticleFlowObjects_MuonRM (DataVector<xAOD::PFO_v1>) [tau]
     347.016 kb       61.961 kb        0.062 kb        5.601     1000  DiTauJets (DataVector<xAOD::DiTauJet_v1>) [tau]
     253.153 kb       63.924 kb        0.064 kb        3.960     1000  TauTracks_MuonRM (DataVector<xAOD::TauTrack_v1>) [tau]
     721.512 kb      147.100 kb        0.147 kb        4.905     1000  DiTauJetsLowPt (DataVector<xAOD::DiTauJet_v1>) [tau]
     830.890 kb      153.712 kb        0.154 kb        5.405     1000  TauJets_MuonRM (DataVector<xAOD::TauJet_v3>) [tau]
     714.360 kb      175.785 kb        0.176 kb        4.064     1000  TauSecondaryVertices (DataVector<xAOD::Vertex_v1>) [tau]
     894.324 kb      230.427 kb        0.230 kb        3.881     1000  TruthTaus (DataVector<xAOD::TruthParticle_v1>) [Truth]
     647.084 kb      393.983 kb        0.394 kb        1.642     1000  TauNeutralParticleFlowObjects (DataVector<xAOD::PFO_v1>) [tau]
    1147.327 kb      456.443 kb        0.456 kb        2.514     1000  TauTracks (DataVector<xAOD::TauTrack_v1>) [tau]
    4353.117 kb      688.641 kb        0.689 kb        6.321     1000  TauJets (DataVector<xAOD::TauJet_v3>) [tau]

Adding the 'urgent' flag as this is needed for the imminent PHYS production.

Tagging @calpigia , @lfiorini , @dta , @sineadf .

Cheers, Bertrand

Edited Jan 09, 2023 by Bertrand Martin Dit Latour
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master_DFTauThinning