diff --git a/algo/detectors/trd/HitFactory2D.cxx b/algo/detectors/trd/HitFactory2D.cxx
index c779d497db8aaca6735796baf0ee355c66c2da77..8e21bb28412f4bf2a6930c53bc55dba6de040b3c 100644
--- a/algo/detectors/trd/HitFactory2D.cxx
+++ b/algo/detectors/trd/HitFactory2D.cxx
@@ -2,7 +2,8 @@
    SPDX-License-Identifier: GPL-3.0-only
    Authors: Dominik Smith [committer], Alexandru Bercuci */
 
-#include "HitFinder2D.h"
+#include "HitFactory2D.h"
+
 #include "log.hpp"
 
 #include <numeric>
diff --git a/algo/detectors/trd/HitFactory2D.h b/algo/detectors/trd/HitFactory2D.h
index c2fa53a7dce9b67c343580516f6d5b2b15449d12..4efed555300b7767c1275cd22277972af8be692f 100644
--- a/algo/detectors/trd/HitFactory2D.h
+++ b/algo/detectors/trd/HitFactory2D.h
@@ -4,6 +4,8 @@
 
 #pragma once
 
+#include "compat/RTypes.h"
+
 #include <cstdint>
 #include <vector>