Commit 5cedb789 authored by Stewart Martin-Haugh's avatar Stewart Martin-Haugh
Browse files

Make TRT_TrackExtensionAlg properly re-entrant

parent c2ba0cff
......@@ -16,7 +16,7 @@
#define TRT_TrackExtensionAlg_H
#include <string>
#include "AthenaBaseComps/AthAlgorithm.h"
#include "AthenaBaseComps/AthReentrantAlgorithm.h"
#include "GaudiKernel/ToolHandle.h"
#include "InDetRecToolInterfaces/ITRT_TrackExtensionTool.h"
......@@ -32,7 +32,7 @@
namespace InDet {
class TRT_TrackExtensionAlg : public AthAlgorithm {
class TRT_TrackExtensionAlg : public AthReentrantAlgorithm {
///////////////////////////////////////////////////////////////////
// Public methods:
......@@ -47,7 +47,7 @@ namespace InDet {
TRT_TrackExtensionAlg(const std::string &name, ISvcLocator *pSvcLocator);
virtual ~TRT_TrackExtensionAlg() {}
StatusCode initialize();
StatusCode execute();
StatusCode execute(const EventContext& ctx) const;
StatusCode finalize();
///////////////////////////////////////////////////////////////////
......@@ -55,9 +55,6 @@ namespace InDet {
///////////////////////////////////////////////////////////////////
protected:
StatusCode execute_r(const EventContext& ctx) const;
///////////////////////////////////////////////////////////////////
// Protected data
///////////////////////////////////////////////////////////////////
......
......@@ -16,7 +16,7 @@
InDet::TRT_TrackExtensionAlg::TRT_TrackExtensionAlg
(const std::string& name,ISvcLocator* pSvcLocator) :
AthAlgorithm(name, pSvcLocator) {
AthReentrantAlgorithm(name, pSvcLocator) {
}
///////////////////////////////////////////////////////////////////
......@@ -38,11 +38,7 @@ StatusCode InDet::TRT_TrackExtensionAlg::initialize() {
// Execute
///////////////////////////////////////////////////////////////////
StatusCode InDet::TRT_TrackExtensionAlg::execute() {
return execute_r( Gaudi::Hive::currentContext() );
}
StatusCode InDet::TRT_TrackExtensionAlg::execute_r(const EventContext& ctx) const {
StatusCode InDet::TRT_TrackExtensionAlg::execute(const EventContext& ctx) const {
Counter_t counter;
// Get input tracks collection
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment