From 82836a9d1737c3e00620d8fc59c8e0ded8aeaaa1 Mon Sep 17 00:00:00 2001
From: Scott Snyder <scott.snyder@cern.ch>
Date: Sun, 15 May 2016 14:44:34 +0200
Subject: [PATCH] 'Set the store pointer in the link, if needed.  Remove
 #define private.' (GeneratorObjectsTPCnv-00-06-11)

	* Tagging GeneratorObjectsTPCnv-00-06-11
	* src/HepMcParticleLinkCnv_p1.cxx: Set the store pointer in the
	link, if needed.
	* GeneratorObjectsTPCnv/McEventCollectionCnv_p1.h: Remove #define
	private.


Former-commit-id: db25a5298114f54255f38a3142bf81bbf2e80bdd
---
 .../GeneratorObjectsTPCnv/HepMcParticleLinkCnv_p1.h           | 4 ----
 .../GeneratorObjectsTPCnv/src/HepMcParticleLinkCnv_p1.cxx     | 2 ++
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/Generators/GeneratorObjectsTPCnv/GeneratorObjectsTPCnv/HepMcParticleLinkCnv_p1.h b/Generators/GeneratorObjectsTPCnv/GeneratorObjectsTPCnv/HepMcParticleLinkCnv_p1.h
index 072d0a09732f..3639f774cf59 100755
--- a/Generators/GeneratorObjectsTPCnv/GeneratorObjectsTPCnv/HepMcParticleLinkCnv_p1.h
+++ b/Generators/GeneratorObjectsTPCnv/GeneratorObjectsTPCnv/HepMcParticleLinkCnv_p1.h
@@ -18,11 +18,7 @@
 #include "AthenaPoolCnvSvc/T_AthenaPoolTPConverter.h"
 
 // GeneratorObjects includes
-#define private public
-#define protected public
 #include "GeneratorObjects/HepMcParticleLink.h"
-#undef private
-#undef protected
 
 // GeneratorObjectsAthenaPool includes
 #include "GeneratorObjectsTPCnv/HepMcParticleLink_p1.h"
diff --git a/Generators/GeneratorObjectsTPCnv/src/HepMcParticleLinkCnv_p1.cxx b/Generators/GeneratorObjectsTPCnv/src/HepMcParticleLinkCnv_p1.cxx
index a7bea79f7e11..77481f2295b7 100755
--- a/Generators/GeneratorObjectsTPCnv/src/HepMcParticleLinkCnv_p1.cxx
+++ b/Generators/GeneratorObjectsTPCnv/src/HepMcParticleLinkCnv_p1.cxx
@@ -32,6 +32,8 @@ void HepMcParticleLinkCnv_p1::persToTrans( const HepMcParticleLink_p1* persObj,
 {
 //   msg << MSG::DEBUG << "Loading HepMcParticleLink from persistent state..."
 //       << endreq;
+  if (transObj->m_ptrs.m_dict == nullptr)
+    transObj->init_dict();
   transObj->m_extBarcode = 
     HepMcParticleLink::ExtendedBarCode( persObj->m_barcode,
 					persObj->m_mcEvtIndex );
-- 
GitLab