diff --git a/Control/AthenaBaseComps/AthenaBaseComps/AthHistogramFilterAlgorithm.h b/Control/AthenaBaseComps/AthenaBaseComps/AthHistogramFilterAlgorithm.h deleted file mode 100644 index e2e8faf1c5ba864a9c6f18625854e9d95c821390..0000000000000000000000000000000000000000 --- a/Control/AthenaBaseComps/AthenaBaseComps/AthHistogramFilterAlgorithm.h +++ /dev/null @@ -1,115 +0,0 @@ -///////////////////////// -*- C++ -*- ///////////////////////////// - -/* - Copyright (C) 2002-2017, 2019 CERN for the benefit of the ATLAS collaboration -*/ - -/// @class AthHistogramFilterAlgorithm.h -/// Header file for AthHistogramAlgorithm -/// @author: Karsten Koeneke (karsten.koeneke@cern.ch) -/////////////////////////////////////////////////////////////////// -#ifndef ATHENABASECOMPS_ATHHISTOGRAMFILTERALGORITHM_H -#define ATHENABASECOMPS_ATHHISTOGRAMFILTERALGORITHM_H 1 - -// STL includes -#include <string> - -// Framework includes -#include "AthenaBaseComps/AthFilterAlgorithm.h" -#include "AthenaBaseComps/AthHistogramming.h" -#include "GaudiKernel/ServiceHandle.h" - - -// Some needed forward declarations -class ITHistSvc; - - - - -class AthHistogramFilterAlgorithm - : public ::AthFilterAlgorithm, - public ::AthHistogramming -{ - - /////////////////////////////////////////////////////////////////// - // Public methods: - /////////////////////////////////////////////////////////////////// -public: - - /// Constructor with parameters: - AthHistogramFilterAlgorithm( const std::string& name, ISvcLocator* pSvcLocator ); - - /// Destructor: - virtual ~AthHistogramFilterAlgorithm(); - - /** Initialization method invoked by the framework. This method is responsible - * for any bookkeeping of initialization required by the framework itself. - * It will in turn invoke the initialize() method of the derived algorithm, - * and of any sub-algorithms which it creates. - */ - virtual StatusCode sysInitialize(); - - - - /////////////////////////////////////////////////////////////////// - // Const methods: - /////////////////////////////////////////////////////////////////// - - /** @brief The standard @c THistSvc (for writing histograms and TTrees - * and more to a root file) - * Returns (kind of) a pointer to the @c THistSvc - */ - const ServiceHandle<ITHistSvc>& histSvc() const; - - - - /////////////////////////////////////////////////////////////////// - // Private methods: - /////////////////////////////////////////////////////////////////// -private: - /// Default constructor: - ///AthHistogramFilterAlgorithm(); - - - - /////////////////////////////////////////////////////////////////// - // Private data: - /////////////////////////////////////////////////////////////////// -private: - - /// a handle on the Hist/TTree registration service - ServiceHandle<ITHistSvc> m_histSvc; - - - /// Name of the ROOT output stream (file) - std::string m_prefix; - - /// Name of the ROOT directory - std::string m_rootDir; - - /// The prefix for the histogram THx name - std::string m_histNamePrefix; - - /// The postfix for the histogram THx name - std::string m_histNamePostfix; - - /// The prefix for the histogram THx title - std::string m_histTitlePrefix; - - /// The postfix for the histogram THx title - std::string m_histTitlePostfix; - - - -}; - -// I/O operators -////////////////////// - -// For the THistSvc -inline const ServiceHandle<ITHistSvc>& AthHistogramFilterAlgorithm::histSvc() const -{ - return m_histSvc; -} - -#endif //> !ATHENABASECOMPS_ATHHISTOGRAMFILTERALGORITHM_H diff --git a/Control/AthenaBaseComps/AthenaBaseComps/AthHistogramTool.h b/Control/AthenaBaseComps/AthenaBaseComps/AthHistogramTool.h deleted file mode 100644 index 84e091ae716b6dfe0e2595ff62e34bfe26483a89..0000000000000000000000000000000000000000 --- a/Control/AthenaBaseComps/AthenaBaseComps/AthHistogramTool.h +++ /dev/null @@ -1,113 +0,0 @@ -///////////////////////// -*- C++ -*- ///////////////////////////// - -/* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration -*/ - -// AthHistogramTool.h -// Header file for class AthHistogramTool -// Author: Karsten Koeneke -/////////////////////////////////////////////////////////////////// -#ifndef ATHENABASECOMPS_ATHHISTOGRAMTOOL_H -#define ATHENABASECOMPS_ATHHISTOGRAMTOOL_H 1 - -// STL includes -#include <string> - -// Framework includes -#include "AthenaBaseComps/AthAlgTool.h" -#include "AthenaBaseComps/AthHistogramming.h" -#include "GaudiKernel/ServiceHandle.h" - - -// Some needed forward declarations -class ITHistSvc; - - - -class AthHistogramTool - : public ::AthAlgTool, - public ::AthHistogramming -{ - - /////////////////////////////////////////////////////////////////// - // Public methods: - /////////////////////////////////////////////////////////////////// -public: - - /// Constructor with parameters: - AthHistogramTool( const std::string& type, - const std::string& name, - const IInterface* parent ); - - - /// Destructor: - virtual ~AthHistogramTool(); - - /////////////////////////////////////////////////////////////////// - // Const methods: - /////////////////////////////////////////////////////////////////// - - /** @brief The standard @c THistSvc (for writing histograms and TTrees - * and more to a root file) - * Returns (kind of) a pointer to the @c THistSvc - */ - const ServiceHandle<ITHistSvc>& histSvc() const; - - - /////////////////////////////////////////////////////////////////// - // Non-const methods: - /////////////////////////////////////////////////////////////////// - - /** Initialization method invoked by the framework. This method is responsible - * for any bookkeeping of initialization required by the framework itself. - * It will in turn invoke the initialize() method of the derived algorithm, - * and of any sub-algorithms which it creates. - */ - virtual StatusCode sysInitialize(); - - - - /////////////////////////////////////////////////////////////////// - // Private data: - /////////////////////////////////////////////////////////////////// -protected: - - /// Pointer to the THistSvc (event store by default) - ServiceHandle<ITHistSvc> m_histSvc; - - - /// Name of the ROOT output stream (file) - std::string m_prefix; - - /// Name of the ROOT directory - std::string m_rootDir; - - /// The prefix for the histogram THx name - std::string m_histNamePrefix; - - /// The postfix for the histogram THx name - std::string m_histNamePostfix; - - /// The prefix for the histogram THx title - std::string m_histTitlePrefix; - - /// The postfix for the histogram THx title - std::string m_histTitlePostfix; - - -}; - - -/////////////////////////////////////////////////////////////////// -// Inline methods: -/////////////////////////////////////////////////////////////////// - -// For the THistSvc -inline const ServiceHandle<ITHistSvc>& AthHistogramTool::histSvc() const -{ - return m_histSvc; -} - - -#endif //> !ATHENABASECOMPS_ATHHISTOGRAMTOOL_H diff --git a/Control/AthenaBaseComps/src/AthFilterAlgorithm.cxx b/Control/AthenaBaseComps/src/AthFilterAlgorithm.cxx index 73e0009f1e1590a273a498159084bd247bafbbc4..07a2196ae92543c859aeb86960d1a425f4b76713 100644 --- a/Control/AthenaBaseComps/src/AthFilterAlgorithm.cxx +++ b/Control/AthenaBaseComps/src/AthFilterAlgorithm.cxx @@ -1,7 +1,7 @@ ///////////////////////// -*- C++ -*- ///////////////////////////// /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // AthFilterAlgorithm.cxx @@ -74,10 +74,10 @@ AthFilterAlgorithm::sysInitialize() if ( Gaudi::StateMachine::INITIALIZED <= FSMState() ) return StatusCode::SUCCESS; // Set the Algorithm's properties - ATH_CHECK(setProperties()); + bindPropertiesTo( serviceLocator()->getOptsSvc() ); // Bypass the initialization if the algorithm is disabled. - // Need to do this after setProperties. + // Need to do this after bindPropertiesTo. if ( !isEnabled( ) ) return StatusCode::SUCCESS; // ---- stolen from GaudiKernel/Algorithm::sysInitialize ------- END --- diff --git a/Control/AthenaBaseComps/src/AthHistogramAlgorithm.cxx b/Control/AthenaBaseComps/src/AthHistogramAlgorithm.cxx index dbdb3798d05db55564dd17648acba2beed6bb4da..6fff2f3b478afe42b8a53bd1fee50e625d0cba13 100644 --- a/Control/AthenaBaseComps/src/AthHistogramAlgorithm.cxx +++ b/Control/AthenaBaseComps/src/AthHistogramAlgorithm.cxx @@ -1,7 +1,7 @@ ///////////////////////// -*- C++ -*- ///////////////////////////// /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ /// @class AthHistogramAlgorithm.h @@ -80,10 +80,10 @@ StatusCode AthHistogramAlgorithm::sysInitialize() if ( Gaudi::StateMachine::INITIALIZED <= FSMState() ) return StatusCode::SUCCESS; // Set the Algorithm's properties - ATH_CHECK(setProperties()); + bindPropertiesTo( serviceLocator()->getOptsSvc() ); // Bypass the initialization if the algorithm is disabled. - // Need to do this after setProperties. + // Need to do this after bindPropertiesTo. if ( !isEnabled( ) ) return StatusCode::SUCCESS; // ---- stolen from GaudiKernel/Algorithm::sysInitialize ------- END --- diff --git a/Control/AthenaBaseComps/src/AthHistogramFilterAlgorithm.cxx b/Control/AthenaBaseComps/src/AthHistogramFilterAlgorithm.cxx deleted file mode 100644 index a3298420a3ff94b00db862a8a33c1941f3258060..0000000000000000000000000000000000000000 --- a/Control/AthenaBaseComps/src/AthHistogramFilterAlgorithm.cxx +++ /dev/null @@ -1,114 +0,0 @@ -///////////////////////// -*- C++ -*- ///////////////////////////// - -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -/// @class AthHistogramFilterAlgorithm.h -/// Header file for class AthHistogramAlgorithm -/// @author: Karsten Koeneke (karsten.koeneke@cern.ch) -/////////////////////////////////////////////////////////////////// - -// This class' header file -#include "AthenaBaseComps/AthHistogramFilterAlgorithm.h" - -// STL includes -#include <string> - -// Framework includes -#include "Gaudi/Property.h" -#include "GaudiKernel/ITHistSvc.h" - - - -/////////////////////////////////////////////////////////////////// -// Public methods: -/////////////////////////////////////////////////////////////////// - -// Constructors -//////////////// -AthHistogramFilterAlgorithm::AthHistogramFilterAlgorithm( const std::string& name, - ISvcLocator* pSvcLocator ) : - ::AthFilterAlgorithm( name, pSvcLocator ), - ::AthHistogramming( name ), - m_histSvc ( "THistSvc/THistSvc", name ) -{ - // - // Property declaration - // - // The histogram service - declareProperty("THistSvc", - m_histSvc = ServiceHandle<ITHistSvc>("THistSvc/THistSvc", name), - "Handle to a THistSvc instance: it will be used to write " - "ROOT objects to ROOT files" ); - - //declareProperty("THistService", m_histSvc, "The THistSvc" ); - declareProperty("RootStreamName", m_prefix = "/ANALYSIS", "Name of the output ROOT stream (file) that the THistSvc uses"); - declareProperty("RootDirName", m_rootDir = "", - "Name of the ROOT directory inside the ROOT file where the histograms will go"); - - declareProperty( "HistNamePrefix", m_histNamePrefix = "", "The prefix for the histogram THx name" ); - declareProperty( "HistNamePostfix", m_histNamePostfix = "", "The postfix for the histogram THx name" ); - - declareProperty( "HistTitlePrefix", m_histTitlePrefix = "", "The prefix for the histogram THx title" ); - declareProperty( "HistTitlePostfix", m_histTitlePostfix = "", "The postfix for the histogram THx title" ); -} - - - - -// Destructor -/////////////// -AthHistogramFilterAlgorithm::~AthHistogramFilterAlgorithm() -{ - ATH_MSG_DEBUG ("Calling destructor"); -} - - - -/** Initialization method invoked by the framework. This method is responsible - * for any bookkeeping of initialization required by the framework itself. - * It will in turn invoke the initialize() method of the derived algorithm, - * and of any sub-algorithms which it creates. - */ -StatusCode AthHistogramFilterAlgorithm::sysInitialize() -{ - // ---- stolen from GaudiKernel/Algorithm::sysInitialize ------- - // Bypass the initialization if the algorithm - // has already been initialized. - if ( Gaudi::StateMachine::INITIALIZED <= FSMState() ) return StatusCode::SUCCESS; - - // Set the Algorithm's properties - ATH_CHECK(setProperties()); - - // Bypass the initialization if the algorithm is disabled. - // Need to do this after setProperties. - if ( !isEnabled( ) ) return StatusCode::SUCCESS; - - // ---- stolen from GaudiKernel/Algorithm::sysInitialize ------- END --- - - - // Get the THistSvc - ATH_CHECK ( histSvc().retrieve() ); - - // Configure the underlying AthHistogramming helper - ATH_CHECK ( AthHistogramming::configAthHistogramming( histSvc(), - m_prefix, m_rootDir, - m_histNamePrefix, m_histNamePostfix, - m_histTitlePrefix, m_histTitlePostfix ) ); - - // Print some setup information into the log file - ATH_MSG_DEBUG ("Initializing " << name() << "..."); - ATH_MSG_DEBUG (" using THistService = " << m_histSvc ); - ATH_MSG_DEBUG (" using RootStreamName = " << m_prefix ); - ATH_MSG_DEBUG (" using RootDirName = " << m_rootDir ); - ATH_MSG_DEBUG (" using HistNamePrefix = " << m_histNamePrefix ); - ATH_MSG_DEBUG (" using HistNamePostfix = " << m_histNamePostfix ); - ATH_MSG_DEBUG (" using HistTitlePrefix = " << m_histTitlePrefix ); - ATH_MSG_DEBUG (" using HistTitlePostfix = " << m_histTitlePostfix ); - - - // re-direct to base class... - return AthFilterAlgorithm::sysInitialize(); -} - diff --git a/Control/AthenaBaseComps/src/AthHistogramTool.cxx b/Control/AthenaBaseComps/src/AthHistogramTool.cxx deleted file mode 100644 index 707641e5233e9e98534471c6065a3d4e7a9726b0..0000000000000000000000000000000000000000 --- a/Control/AthenaBaseComps/src/AthHistogramTool.cxx +++ /dev/null @@ -1,114 +0,0 @@ -///////////////////////// -*- C++ -*- ///////////////////////////// - -/* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -*/ - -// AthHistogramTool.cxx -// Implementation file for class AthHistogramTool -// Author: Karsten Koeneke -/////////////////////////////////////////////////////////////////// - -// This class' header includes -#include "AthenaBaseComps/AthHistogramTool.h" - -// STL includes -#include <string> - -// Framework includes -#include "GaudiKernel/MsgStream.h" -#include "GaudiKernel/ITHistSvc.h" - - - - -/////////////////////////////////////////////////////////////////// -// Public methods: -/////////////////////////////////////////////////////////////////// - -// Constructors -//////////////// -AthHistogramTool::AthHistogramTool( const std::string& type, - const std::string& name, - const IInterface* parent ) : - ::AthAlgTool( type, name, parent ), - ::AthHistogramming( name ), - m_histSvc ( "THistSvc/THistSvc", name ) -{ - // Properties go here - declareProperty("THistSvc", - m_histSvc = ServiceHandle<ITHistSvc>("THistSvc/THistSvc", name), - "Handle to a THistSvc instance: it will be used to write " - "ROOT objects to ROOT files" ); - - declareProperty("RootStreamName", m_prefix = "/ANALYSIS", "Name of the output ROOT stream (file) that the THistSvc uses"); - declareProperty("RootDirName", m_rootDir = "", - "Name of the ROOT directory inside the ROOT file where the histograms will go"); - - declareProperty( "HistNamePrefix", m_histNamePrefix = "", "The prefix for the histogram THx name" ); - declareProperty( "HistNamePostfix", m_histNamePostfix = "", "The postfix for the histogram THx name" ); - - declareProperty( "HistTitlePrefix", m_histTitlePrefix = "", "The prefix for the histogram THx title" ); - declareProperty( "HistTitlePostfix", m_histTitlePostfix = "", "The postfix for the histogram THx title" ); -} - - - - -// Destructor -/////////////// -AthHistogramTool::~AthHistogramTool() -{ - ATH_MSG_DEBUG ("Calling destructor"); -} - - -/////////////////////////////////////////////////////////////////// -// Non-const methods: -/////////////////////////////////////////////////////////////////// - - -//============================================================================= -// Athena initialize method -//============================================================================= -StatusCode AthHistogramTool::sysInitialize() -{ - /* - // ---- stolen from GaudiKernel/Algorithm::sysInitialize ------- - // Bypass the initialization if the algorithm - // has already been initialized. - if ( Gaudi::StateMachine::INITIALIZED <= FSMState() ) return StatusCode::SUCCESS; - - // Set the Algorithm's properties - ATH_CHECK(setProperties()); - - // Bypass the initialization if the algorithm is disabled. - // Need to do this after setProperties. - if ( !isEnabled( ) ) return StatusCode::SUCCESS; - - // ---- stolen from GaudiKernel/Algorithm::sysInitialize ------- END --- - */ - - // Get the THistSvc - ATH_CHECK ( histSvc().retrieve() ); - - // Configure the underlying AthHistogramming helper - ATH_CHECK ( AthHistogramming::configAthHistogramming( histSvc(), - m_prefix, m_rootDir, - m_histNamePrefix, m_histNamePostfix, - m_histTitlePrefix, m_histTitlePostfix ) ); - - // Print some setup information into the log file - ATH_MSG_DEBUG ("Initializing " << name() << "..."); - ATH_MSG_DEBUG (" using THistService = " << m_histSvc ); - ATH_MSG_DEBUG (" using RootStreamName = " << m_prefix ); - ATH_MSG_DEBUG (" using RootDirName = " << m_rootDir ); - ATH_MSG_DEBUG (" using HistNamePrefix = " << m_histNamePrefix ); - ATH_MSG_DEBUG (" using HistNamePostfix = " << m_histNamePostfix ); - ATH_MSG_DEBUG (" using HistTitlePrefix = " << m_histTitlePrefix ); - ATH_MSG_DEBUG (" using HistTitlePostfix = " << m_histTitlePostfix ); - - - // re-direct to base class... - return AthAlgTool::sysInitialize(); -} diff --git a/Control/AthenaBaseComps/test/AthAlgTool_test.cxx b/Control/AthenaBaseComps/test/AthAlgTool_test.cxx index 681a9368d143a2b8dde46d61c3f247a705a230a8..bbf45192f95bc3988b3620a2d744c6a7fe37bba0 100644 --- a/Control/AthenaBaseComps/test/AthAlgTool_test.cxx +++ b/Control/AthenaBaseComps/test/AthAlgTool_test.cxx @@ -1,8 +1,7 @@ /* - * Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration. + * Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration. */ -// $Id$ /** * @file AthenaBaseComps/test/AthAlgTool_test.cxx * @author scott snyder <snyder@bnl.gov> @@ -137,7 +136,7 @@ void test1 (ISvcLocator* svcloc) MyAlg alg ("toolalg", svcloc); alg.addRef(); MyAlgTool tool ("MyAlgTool", "tool2", &alg); tool.addRef(); - assert (tool.setProperties().isSuccess()); + tool.bindPropertiesTo(svcloc->getOptsSvc()); assert (tool.sysInitialize().isSuccess()); assert (tool.rkey.clid() == 293847295); @@ -210,14 +209,14 @@ void test2 (ISvcLocator* svcLoc) MyAlg alg ("arralg", svcLoc); alg.addRef(); MyArrAlgTool tool ("MyAlgTool", "arrtool", &alg); tool.addRef(); - assert (tool.setProperties().isSuccess()); + tool.bindPropertiesTo(svcLoc->getOptsSvc()); assert (tool.sysInitialize().isSuccess()); comphandles (tool.inputHandles(),{"StoreGateSvc+raa", "StoreGateSvc+rbb", "StoreGateSvc+rcc", "StoreGateSvc+rdd", "StoreGateSvc+ree", "StoreGateSvc+rff", "StoreGateSvc+rrr"}); comphandles (tool.outputHandles(),{"StoreGateSvc+waa", "StoreGateSvc+wbb", "StoreGateSvc+wcc", "StoreGateSvc+wdd", "StoreGateSvc+wee", "StoreGateSvc+wff", "StoreGateSvc+www"}); // Test that circular dependency detection worksd. MyArrAlgTool tool2 ("MyArrAlgTool", "arrtool2", &alg); tool2.addRef(); - assert (tool2.setProperties().isSuccess()); + tool2.bindPropertiesTo(svcLoc->getOptsSvc()); assert (tool2.sysInitialize().isFailure()); } diff --git a/Control/AthenaBaseComps/test/AthAlgorithm_test.cxx b/Control/AthenaBaseComps/test/AthAlgorithm_test.cxx index 9ae1da40c34af54f9ec0965d9da07f2cf11e7132..323fc19036086d8cc7c37e4441a2cc4d5f6c048d 100644 --- a/Control/AthenaBaseComps/test/AthAlgorithm_test.cxx +++ b/Control/AthenaBaseComps/test/AthAlgorithm_test.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration. + * Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration. */ // $Id$ @@ -117,7 +117,6 @@ void test1 (ISvcLocator* svcLoc) std::cout << "test1\n"; MyAlg alg ("ralg", svcLoc); alg.addRef(); - //assert (alg.setProperties().isSuccess()); assert (alg.sysInitialize().isSuccess()); assert (alg.rkey.clid() == 293847295); diff --git a/Control/AthenaBaseComps/test/AthReentrantAlgorithm_test.cxx b/Control/AthenaBaseComps/test/AthReentrantAlgorithm_test.cxx index a0489f7549f66ac55aa3bd3902e3070958e6fb96..19f881f05c4e1066dadb6be13a5bc94f3963d26f 100644 --- a/Control/AthenaBaseComps/test/AthReentrantAlgorithm_test.cxx +++ b/Control/AthenaBaseComps/test/AthReentrantAlgorithm_test.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // $Id$ @@ -114,7 +114,6 @@ void test1 (ISvcLocator* svcLoc) std::cout << "test1\n"; MyAlg alg ("ralg", svcLoc); alg.addRef(); - //assert (alg.setProperties().isSuccess()); assert (alg.sysInitialize().isSuccess()); assert (alg.rkey.clid() == 293847295); diff --git a/Control/AthenaBaseComps/test/propertyHandling_test.cxx b/Control/AthenaBaseComps/test/propertyHandling_test.cxx index 82bb2e66550cc3fa55514f535b2490f2a7792ba0..05dbdebd0377e3e913716170bd7162813e04fdd2 100644 --- a/Control/AthenaBaseComps/test/propertyHandling_test.cxx +++ b/Control/AthenaBaseComps/test/propertyHandling_test.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // $Id$ @@ -218,7 +218,6 @@ void test1 (ISvcLocator* svcLoc) std::cout << "test1\n"; MyAthAlgorithm alg ("alg", svcLoc); alg.addRef(); - //assert (alg.setProperties().isSuccess()); assert (alg.sysInitialize().isSuccess()); assert (alg.rkey.clid() == 293847295); @@ -315,7 +314,7 @@ void test2 (ISvcLocator* svcLoc) MyAthAlgorithm alg ("alg", svcLoc); alg.addRef(); MyAthAlgTool tool ("MyAthAlgTool", "tool", &alg); tool.addRef(); - assert (tool.setProperties().isSuccess()); + tool.bindPropertiesTo(svcLoc->getOptsSvc()); assert (tool.sysInitialize().isSuccess()); assert (tool.rkey.clid() == 293847295);