Skip to content

Commit

Permalink
Use preprocessor to make converter work always
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener authored and andresailer committed Sep 12, 2023
1 parent 9cda6ba commit f4acf77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions k4MarlinWrapper/k4MarlinWrapper/converters/EDM4hep2Lcio.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@
#include <string>
#include <vector>

#ifdef EDM4HEP2LCIOCONV_NAMESPACE
using EDM4hep2LCIOConv::CollectionsPairVectors;
using EDM4hep2LCIOConv::vec_pair;
#endif

class EDM4hep2LcioTool : public GaudiTool, virtual public IEDMConverter {
public:
Expand Down
2 changes: 2 additions & 0 deletions k4MarlinWrapper/src/components/EDM4hep2Lcio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@

DECLARE_COMPONENT(EDM4hep2LcioTool);

#ifdef EDM4HEP2LCIOCONV_NAMESPACE
using namespace EDM4hep2LCIOConv;
#endif

EDM4hep2LcioTool::EDM4hep2LcioTool(const std::string& type, const std::string& name, const IInterface* parent)
: GaudiTool(type, name, parent), m_eventDataSvc("EventDataSvc", "EDM4hep2LcioTool") {
Expand Down

0 comments on commit f4acf77

Please sign in to comment.