Skip to content

Commit

Permalink
Make the wrapper not be reentrant
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jun 20, 2024
1 parent f8af711 commit 8efd018
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions k4MarlinWrapper/k4MarlinWrapper/MarlinProcessorWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#define K4MARLINWRAPPER_MARLINPROCESSORWRAPPER_H

// std
#include <cstdlib>
#include <iostream>
#include <stack>
#include <string>

Expand All @@ -48,7 +46,6 @@
#include <TSystem.h>

// k4MarlinWrapper
#include "k4MarlinWrapper/LCEventWrapper.h"
#include "k4MarlinWrapper/converters/IEDMConverter.h"

namespace marlin {
Expand Down Expand Up @@ -87,6 +84,8 @@ class MarlinProcessorWrapper : public Gaudi::Algorithm {
mutable ToolHandle<IEDMConverter> m_lcio_conversionTool{"IEDMConverter/Lcio2EDM4hep", this};

static std::stack<marlin::Processor*>& ProcessorStack();

bool isReEntrant() const override { return false; }
};

std::stack<marlin::Processor*>& MarlinProcessorWrapper::ProcessorStack() {
Expand Down
1 change: 1 addition & 0 deletions k4MarlinWrapper/src/components/MarlinProcessorWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "k4MarlinWrapper/MarlinProcessorWrapper.h"
#include "IMPL/LCEventImpl.h"
#include "k4MarlinWrapper/LCEventWrapper.h"
#include "k4MarlinWrapper/util/k4MarlinWrapperUtil.h"

DECLARE_COMPONENT(MarlinProcessorWrapper)
Expand Down

0 comments on commit 8efd018

Please sign in to comment.