From 95b9e3dd1d5246c5a29bda32e789ad0c83b67d05 Mon Sep 17 00:00:00 2001
From: Walter Lampl <Walter.Lampl@cern.ch>
Date: Mon, 3 May 2021 10:55:29 +0200
Subject: [PATCH] Conditionally initialize ReadHandle to input AttributeList

---
 .../OutputStreamAthenaPool/src/EventInfoTagBuilder.cxx    | 8 +-------
 .../OutputStreamAthenaPool/src/EventInfoTagBuilder.h      | 2 +-
 2 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/Database/AthenaPOOL/OutputStreamAthenaPool/src/EventInfoTagBuilder.cxx b/Database/AthenaPOOL/OutputStreamAthenaPool/src/EventInfoTagBuilder.cxx
index 84002f72424c..4d630d776098 100755
--- a/Database/AthenaPOOL/OutputStreamAthenaPool/src/EventInfoTagBuilder.cxx
+++ b/Database/AthenaPOOL/OutputStreamAthenaPool/src/EventInfoTagBuilder.cxx
@@ -7,12 +7,6 @@
 #include <StoreGate/ReadHandle.h>
 #include <StoreGate/WriteHandle.h>
 
-EventInfoTagBuilder::EventInfoTagBuilder( const std::string& name, ISvcLocator* pSvcLocator )
-  : AthAlgorithm(name, pSvcLocator)
-{
-}
-
-
 StatusCode EventInfoTagBuilder::initialize()
 {
   ATH_MSG_DEBUG( "Initializing " << name() );
@@ -25,7 +19,7 @@ StatusCode EventInfoTagBuilder::initialize()
   ATH_CHECK( m_tool.retrieve() );
 
   ATH_CHECK( m_evtKey.initialize() );
-  ATH_CHECK( m_inputAttList.initialize() );
+  ATH_CHECK( m_inputAttList.initialize(m_propInput) );
   ATH_CHECK( m_attributeListName.initialize() );
 
   return StatusCode::SUCCESS;
diff --git a/Database/AthenaPOOL/OutputStreamAthenaPool/src/EventInfoTagBuilder.h b/Database/AthenaPOOL/OutputStreamAthenaPool/src/EventInfoTagBuilder.h
index 3d5ddf86840d..df67b0f526b9 100755
--- a/Database/AthenaPOOL/OutputStreamAthenaPool/src/EventInfoTagBuilder.h
+++ b/Database/AthenaPOOL/OutputStreamAthenaPool/src/EventInfoTagBuilder.h
@@ -40,7 +40,7 @@ class EventInfoTagBuilder : public AthAlgorithm
 public:
 
   /// Standard constructor.
-  EventInfoTagBuilder(const std::string& name, ISvcLocator* pSvcLocator);
+  using AthAlgorithm::AthAlgorithm;
 
   /// Destructor.
   ~EventInfoTagBuilder() = default;
-- 
GitLab