From 4d643ce50dbd01d5d352c8c20a8bf1c1de9f5097 Mon Sep 17 00:00:00 2001
From: Savannah Clawson <savannah.clawson@cern.ch>
Date: Mon, 20 Jan 2025 13:54:23 +0100
Subject: [PATCH] Adding AFP SiT and ToF hits containers to PHYS

Adding AFP SiT and ToF hits containers to PHYS
---
 .../DerivationFrameworkPhys/python/PHYS.py                   | 5 ++++-
 Tools/WorkflowTestRunner/python/References.py                | 4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkPhys/python/PHYS.py b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkPhys/python/PHYS.py
index d28fa831c93a..7d9f9255d62e 100644
--- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkPhys/python/PHYS.py
+++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkPhys/python/PHYS.py
@@ -168,7 +168,10 @@ def PHYSCoreCfg(flags, name_tag='PHYS', StreamName='StreamDAOD_PHYS', TriggerLis
     ## Higgs content - 4l vertex and Higgs STXS truth variables
     from DerivationFrameworkHiggs.HiggsPhysContent import  setupHiggsSlimmingVariables
     setupHiggsSlimmingVariables(flags, PHYSSlimmingHelper)
-   
+
+    ## AFP content - SiT and ToF hits to then be used with AfpAnalysisToolbox reconstruction
+    PHYSSlimmingHelper.AllVariables += [ 'AFPSiHitContainer', 'AFPToFHitContainer' ]
+    
     # Trigger content
     PHYSSlimmingHelper.IncludeTriggerNavigation = False
     PHYSSlimmingHelper.IncludeJetTriggerContent = False
diff --git a/Tools/WorkflowTestRunner/python/References.py b/Tools/WorkflowTestRunner/python/References.py
index 490c83b383e1..9dc5cc853f91 100644
--- a/Tools/WorkflowTestRunner/python/References.py
+++ b/Tools/WorkflowTestRunner/python/References.py
@@ -30,9 +30,9 @@ references_map = {
     "q452": "v30",
     "q454": "v44",
     # Derivations
-    "data_PHYS_Run2": "v40",
+    "data_PHYS_Run2": "v41",
     "data_PHYSLITE_Run2": "v22",
-    "data_PHYS_Run3": "v40",
+    "data_PHYS_Run3": "v41",
     "data_PHYSLITE_Run3": "v23",
     "mc_PHYS_Run2": "v53",
     "mc_PHYSLITE_Run2": "v26",
-- 
GitLab