From 58f86ded58e2623407b2d3f8af00b519504f15b4 Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Sat, 25 Jul 2020 16:50:50 -0400
Subject: [PATCH] D3PDMakerCoreComps: Fix for getting DVLInfo.

May need to explicitly call dvlinfo() on the DV class to get
the DVLInfo object registered.
---
 .../D3PDMakerCoreComps/src/SGDataVectorGetterTool.cxx    | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/PhysicsAnalysis/D3PDMaker/D3PDMakerCoreComps/src/SGDataVectorGetterTool.cxx b/PhysicsAnalysis/D3PDMaker/D3PDMakerCoreComps/src/SGDataVectorGetterTool.cxx
index 4c139236a1ee..a46243e5e976 100644
--- a/PhysicsAnalysis/D3PDMaker/D3PDMakerCoreComps/src/SGDataVectorGetterTool.cxx
+++ b/PhysicsAnalysis/D3PDMaker/D3PDMakerCoreComps/src/SGDataVectorGetterTool.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 */
 
 // $Id: SGDataVectorGetterTool.cxx 790090 2016-12-16 05:31:29Z ssnyder $
@@ -79,6 +79,13 @@ StatusCode SGDataVectorGetterTool::initialize()
       meth.Execute();
     m_info = getInfo (typeinfo());
   }
+  if (!m_info) {
+    TClass* cls = gROOT->GetClass (m_typename.c_str());
+    TMethodCall meth (cls, "dvlinfo", "");
+    if (meth.IsValid())
+      meth.Execute();
+    m_info = getInfo (typeinfo());
+  }
 
   if (!m_info) {
     REPORT_MESSAGE (MSG::ERROR)
-- 
GitLab