From 5250a1c462e1032761e0002f754a7b7561e940d4 Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Fri, 6 Sep 2019 14:45:20 +0200 Subject: [PATCH] PyDumper: Make some EDM dependencies optional. Test so as to not fail if some EDM packages are missing. --- Event/PyDumper/python/Dumpers.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Event/PyDumper/python/Dumpers.py b/Event/PyDumper/python/Dumpers.py index d23305b2abc..8bd48b331e7 100644 --- a/Event/PyDumper/python/Dumpers.py +++ b/Event/PyDumper/python/Dumpers.py @@ -39,9 +39,11 @@ nucone10 = 8 # Work around a cling bug. if hasattr(ROOT,'TrackParticleTruthCollection'): ROOT.TrackParticleTruthCollection()[ROOT.Rec.TrackParticleTruthKey()] - ROOT.Jet().jetTagInfoVector() + if hasattr(ROOT,'Jet'): + ROOT.Jet().jetTagInfoVector() getattr(ROOT, 'ElementLinkVector<CaloClusterContainer>') - getattr(ROOT, 'ElementLink<Analysis::MuonContainer>')().isValid() + if hasattr(ROOT,'Analysis::MuonContainer'): + getattr(ROOT, 'ElementLink<Analysis::MuonContainer>')().isValid() getattr(ROOT, 'vector<xAOD::CaloClusterBadChannelData_v1>')().__assign__(getattr(ROOT, 'vector<xAOD::CaloClusterBadChannelData_v1>')()) if hasattr (ROOT, 'TrigInDetParticleTruth'): ROOT.TrigInDetTrackTruth().getFamilyTree() -- GitLab