From 8e3762332d2ef782dce918c24d3c4075f576ffa8 Mon Sep 17 00:00:00 2001
From: Marcin Nowak <Marcin.Nowak@cern.ch>
Date: Mon, 21 Jun 2021 18:47:11 +0200
Subject: [PATCH] Store Token to itself in input DataHeader

For easy access to the Event Reference through EventStore
---
 Database/PersistentDataModelAthenaPool/src/DataHeaderCnv.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Database/PersistentDataModelAthenaPool/src/DataHeaderCnv.cxx b/Database/PersistentDataModelAthenaPool/src/DataHeaderCnv.cxx
index c6a47597add8..6b8e3886da08 100755
--- a/Database/PersistentDataModelAthenaPool/src/DataHeaderCnv.cxx
+++ b/Database/PersistentDataModelAthenaPool/src/DataHeaderCnv.cxx
@@ -347,6 +347,7 @@ DataHeader* DataHeaderCnv::createTransient() {
       if( compareClassGuid( p6_guid ) ) {
          std::unique_ptr<DataHeader_p6> header( poolReadObject_p6() );
          auto dh = m_tpInConverter.createTransient( header.get(), *(m_inputDHForms[ header->dhFormToken() ]) );
+         dh->setEvtRefTokenStr( m_i_poolToken->toString() );
          // To dump the DataHeader uncomment below
          // std::ostringstream ss;  dh->dump(ss); cout << ss.str() << endl;
          return dh;
-- 
GitLab