From dacd0263786cae76d0395aa2581fe2351c88fc79 Mon Sep 17 00:00:00 2001
From: Florian Uhlig <f.uhlig@gsi.de>
Date: Fri, 29 Jul 2022 18:49:40 +0200
Subject: [PATCH] Fix a runtime problem on arm64

When compiling one of the test macros the compilation crashed. The reson was
a problem with the generated dictionary. The problem could be solved by
removing an include statement from the header file.
---
 analysis/common/at_kfpf_interface/ATKFParticleFinder.cxx | 2 ++
 analysis/common/at_kfpf_interface/ATKFParticleFinder.h   | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/analysis/common/at_kfpf_interface/ATKFParticleFinder.cxx b/analysis/common/at_kfpf_interface/ATKFParticleFinder.cxx
index 03ad28e944..6632f83b52 100644
--- a/analysis/common/at_kfpf_interface/ATKFParticleFinder.cxx
+++ b/analysis/common/at_kfpf_interface/ATKFParticleFinder.cxx
@@ -4,6 +4,8 @@
 
 #include "ATKFParticleFinder.h"
 
+#include "KFParticleTopoReconstructor.h"
+
 void ATKFParticleFinder::InitInput(const std::string& file_name, const std::string& tree_name)
 {
   std::cout << "ATKFParticleFinder::InitInput()\n";
diff --git a/analysis/common/at_kfpf_interface/ATKFParticleFinder.h b/analysis/common/at_kfpf_interface/ATKFParticleFinder.h
index a60c7d3072..9521a33ebb 100644
--- a/analysis/common/at_kfpf_interface/ATKFParticleFinder.h
+++ b/analysis/common/at_kfpf_interface/ATKFParticleFinder.h
@@ -16,7 +16,8 @@
 #include "AnalysisTree/Detector.hpp"
 #include "AnalysisTree/EventHeader.hpp"
 #include "CutsContainer.h"
-#include "KFParticleTopoReconstructor.h"
+
+class KFParticleTopoReconstructor;
 
 class ATKFParticleFinder {
 public:
-- 
GitLab