Skip to content
Snippets Groups Projects
Commit 9e49bc0e authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'rec5813' into 'master'

Move from AthReentrantAlg back to AthAlg (ATLASRECTS-5813)

See merge request atlas/athena!39041
parents 4be65182 c67cdf04
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
#include "MuonCombinedEvent/MuonCandidateCollection.h"
MuonCombinedInDetExtensionAlg::MuonCombinedInDetExtensionAlg(const std::string& name, ISvcLocator* pSvcLocator)
: AthReentrantAlgorithm(name, pSvcLocator) {
: AthAlgorithm(name, pSvcLocator) {
}
StatusCode
......@@ -31,8 +31,9 @@ MuonCombinedInDetExtensionAlg::initialize()
}
StatusCode
MuonCombinedInDetExtensionAlg::execute(const EventContext& ctx) const
{
MuonCombinedInDetExtensionAlg::execute() {
const EventContext& ctx = Gaudi::Hive::currentContext();
SG::ReadHandle<InDetCandidateCollection> indetCandidateCollection(m_indetCandidateCollectionName, ctx);
if (!indetCandidateCollection.isValid()) {
......
......@@ -6,7 +6,7 @@
#define MUONCOMBINEDALGS_MUONCOMBINEDINDETEXTENSIONALG_H
#include "AthenaBaseComps/AthReentrantAlgorithm.h"
#include "AthenaBaseComps/AthAlgorithm.h"
#include "GaudiKernel/ToolHandle.h"
#include "MuonCombinedEvent/InDetCandidateCollection.h"
#include "MuonCombinedEvent/InDetCandidateToTagMap.h"
......@@ -20,13 +20,15 @@
#include <string>
class MuonCombinedInDetExtensionAlg : public AthReentrantAlgorithm {
// uses (further down the call chain) the MuPatHitTool that has a mutable cache of pointers to-be-deleted and the end of the event
// thus, currently, the MuonCombinedInDetExtensionAlg cannot become an AthReentrantAlgorithm
class MuonCombinedInDetExtensionAlg : public AthAlgorithm {
public:
MuonCombinedInDetExtensionAlg(const std::string& name, ISvcLocator* pSvcLocator);
~MuonCombinedInDetExtensionAlg()=default;
StatusCode initialize();
StatusCode execute(const EventContext& ctx) const;
StatusCode execute();
private:
ToolHandleArray<MuonCombined::IMuonCombinedInDetExtensionTool> m_muonCombinedInDetExtensionTools{this,"MuonCombinedInDetExtensionTools",{}};
......
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