diff --git a/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSortingAlg.cxx b/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSortingAlg.cxx index f5ad85275d7fda499fa4e9ee13f2a4490c6a552c..d6d72da87982a4abb8a35dd320160e5c23f6f5d5 100644 --- a/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSortingAlg.cxx +++ b/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSortingAlg.cxx @@ -14,7 +14,6 @@ // FrameWork includes #include "Gaudi/Property.h" -#include "GaudiKernel/IJobOptionsSvc.h" #include "DerivationFrameworkInterfaces/IAugmentationTool.h" /////////////////////////////////////////////////////////////////// @@ -101,22 +100,22 @@ StatusCode ParticleSortingAlg::initialize() if (m_setInCollKey) { ATH_MSG_DEBUG( "Setting property" << m_inCollKey << " of private tool with name: '" << fullToolName << "'" ); - ATH_CHECK( m_jos->addPropertyToCatalogue (fullToolName,m_inCollKey) ); + m_jos->set (fullToolName + "." + m_inCollKey.name(), m_inCollKey.toString()); } if (m_setOutCollKey) { ATH_MSG_DEBUG( "Setting property" << m_outCollKey << " of private tool with name: '" << fullToolName << "'" ); - ATH_CHECK( m_jos->addPropertyToCatalogue (fullToolName,m_outCollKey) ); + m_jos->set (fullToolName + "." + m_outCollKey.name(), m_outCollKey.toString()); } if (m_setSortVar) { ATH_MSG_DEBUG( "Setting property" << m_sortVar << " of private tool with name: '" << fullToolName << "'" ); - ATH_CHECK( m_jos->addPropertyToCatalogue (fullToolName,m_sortVar) ); + m_jos->set (fullToolName + "." + m_sortVar.name(), m_sortVar.toString()); } if (m_setSortDescending) { ATH_MSG_DEBUG( "Setting property" << m_sortDescending << " of private tool with name: '" << fullToolName << "'" ); - ATH_CHECK( m_jos->addPropertyToCatalogue (fullToolName,m_sortDescending) ); + m_jos->set (fullToolName + "." + m_sortDescending.name(), m_sortDescending.toString()); } ATH_MSG_DEBUG( "Done setting properties of the tool"); diff --git a/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSortingAlg.h b/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSortingAlg.h index 763f04c952cab1305f4467bf3595943579326178..dd83b6bd8df2b55be88f0a6b689eb63cba482585 100644 --- a/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSortingAlg.h +++ b/PhysicsAnalysis/AnalysisCommon/EventUtils/src/ParticleSortingAlg.h @@ -12,6 +12,7 @@ #define EVENTUTILS_PARTICLESORTINGALG_H 1 // FrameWork includes +#include "Gaudi/Interfaces/IOptionsSvc.h" #include "GaudiKernel/ToolHandle.h" #include "GaudiKernel/ServiceHandle.h" #include "AthenaBaseComps/AthAlgorithm.h" @@ -20,7 +21,6 @@ #include <string> // Forward declarations -class IJobOptionsSvc; namespace DerivationFramework { class IAugmentationTool; } @@ -43,13 +43,13 @@ class ParticleSortingAlg virtual ~ParticleSortingAlg(); /// Athena algorithm's initalize hook - virtual StatusCode initialize(); + virtual StatusCode initialize() override; /// Athena algorithm's execute hook - virtual StatusCode execute(); + virtual StatusCode execute() override; /// Athena algorithm's finalize hook - virtual StatusCode finalize(); + virtual StatusCode finalize() override; private: @@ -75,7 +75,7 @@ private: private: /// The job options service (will be used to forward this algs properties to /// the private tool) - ServiceHandle<IJobOptionsSvc> m_jos; + ServiceHandle<Gaudi::Interfaces::IOptionsSvc> m_jos; /// The ToolHandle to the private ParticleSortingTool ToolHandle<DerivationFramework::IAugmentationTool> m_tool;