From c318b10f9266582745de9c605b1cd7b58eb876a0 Mon Sep 17 00:00:00 2001
From: scott snyder <snyder@bnl.gov>
Date: Tue, 21 Jul 2020 20:40:25 +0200
Subject: [PATCH] PyDumper: Fix for AtlasSimulation.

As a workaround, we force a few classes to be loaded early.
But don't fail if those classes don't exist in this release.
---
 Event/PyDumper/python/Dumpers.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Event/PyDumper/python/Dumpers.py b/Event/PyDumper/python/Dumpers.py
index 512000ef2ab..7e14295cae9 100644
--- a/Event/PyDumper/python/Dumpers.py
+++ b/Event/PyDumper/python/Dumpers.py
@@ -40,8 +40,8 @@ etcone10 = 0
 nucone10 = 8
 
 # Without these, cling gets confused by forward declarations.
-ROOT.xAOD.TrackParticleContainer_v1
-ROOT.xAOD.Jet_v1
+getattr (ROOT.xAOD, 'TrackParticleContainer_v1', None)
+getattr (ROOT.xAOD, 'Jet_v1', None)
 
 # Work around a cling bug.
 if hasattr(ROOT,'TrackParticleTruthCollection'):
-- 
GitLab