From 3312b2f2bd41e65880ff92e462928904843f9953 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Wed, 23 Sep 2020 22:59:13 +0200 Subject: [PATCH] PyDumper: Null pointer comparison fix. Fix muon null pointer comparison. (Was using the wrong Muon). Fixes test failure in JetEventAthenaPool. --- Event/PyDumper/python/Dumpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Event/PyDumper/python/Dumpers.py b/Event/PyDumper/python/Dumpers.py index df924f27a2f..53450f2afc9 100644 --- a/Event/PyDumper/python/Dumpers.py +++ b/Event/PyDumper/python/Dumpers.py @@ -45,7 +45,8 @@ getattr (ROOT.xAOD, 'Jet_v1', None) #Typed nullptr: JetAssociationBase = getattr (cppyy.gbl, 'JetAssociationBase', None) -Muon = getattr (cppyy.gbl, 'Muon', None) +Analysis = getattr (cppyy.gbl, 'Analysis', None) +Muon = getattr (Analysis, 'Muon', None) if Analysis else None jetAssocNull = cppyy.bind_object(cppyy.nullptr, JetAssociationBase) if JetAssociationBase else None muonNull = cppyy.bind_object(cppyy.nullptr, Muon) if Muon else None -- GitLab