Skip to content
Snippets Groups Projects
Commit cdfb2216 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

EventUtils: Migrate ParticleSortingAlg to IOptionsSvc

parent 131758ec
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment