From fc868a11f14a3ef84c4e8ec878b80e75d15b6b2f Mon Sep 17 00:00:00 2001 From: tmadlener Date: Tue, 1 Oct 2024 15:22:47 +0200 Subject: [PATCH] Mark function inline to avoid linker problems --- converter/include/k4SimDelphes/DelphesEDM4HepConverter.h | 2 +- .../include/k4SimDelphes/DelphesEDM4HepOutputConfiguration.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/converter/include/k4SimDelphes/DelphesEDM4HepConverter.h b/converter/include/k4SimDelphes/DelphesEDM4HepConverter.h index 6cd9826..ccfd800 100644 --- a/converter/include/k4SimDelphes/DelphesEDM4HepConverter.h +++ b/converter/include/k4SimDelphes/DelphesEDM4HepConverter.h @@ -68,7 +68,7 @@ namespace k4SimDelphes { std::string className; }; - std::vector getBranchSettings(ExRootConfParam /*const&*/ treeConf) { + inline std::vector getBranchSettings(ExRootConfParam /*const&*/ treeConf) { std::vector branches; for (int b = 0; b < treeConf.GetSize(); b += 3) { k4SimDelphes::BranchSettings branch{treeConf[b].GetString(), treeConf[b + 1].GetString(), diff --git a/converter/include/k4SimDelphes/DelphesEDM4HepOutputConfiguration.h b/converter/include/k4SimDelphes/DelphesEDM4HepOutputConfiguration.h index 36945ce..02b366e 100644 --- a/converter/include/k4SimDelphes/DelphesEDM4HepOutputConfiguration.h +++ b/converter/include/k4SimDelphes/DelphesEDM4HepOutputConfiguration.h @@ -161,7 +161,7 @@ namespace k4SimDelphes { return settings; } - OutputSettings getEDM4hepOutputSettings(const char* confFile) { + inline OutputSettings getEDM4hepOutputSettings(const char* confFile) { ExRootConfReader confReader{}; confReader.ReadFile(confFile); return getEDM4hepOutputSettings(&confReader);