diff --git a/benchmarks/barrel_hcal/scripts/hcal_barrel_energy_scan_analysis.cxx b/benchmarks/barrel_hcal/scripts/hcal_barrel_energy_scan_analysis.cxx
index 8ac13ba13750571492f29b32b7c960a05644a984..1d66a9819fdc05a31e420bbe0c2e3218bb4e852d 100644
--- a/benchmarks/barrel_hcal/scripts/hcal_barrel_energy_scan_analysis.cxx
+++ b/benchmarks/barrel_hcal/scripts/hcal_barrel_energy_scan_analysis.cxx
@@ -5,6 +5,7 @@
 
 #include "ROOT/RDataFrame.hxx"
 #include <iostream>
+#include <fstream>
 #include <fmt/core.h>
 
 #include "dd4pod/Geant4ParticleCollection.h"
diff --git a/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_analysis.cxx b/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_analysis.cxx
index 1ae105d396b399b3d4226e02cd86837a7928632e..fbe72c2a1b3daf700f256679099e87ed82d04e29 100644
--- a/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_analysis.cxx
+++ b/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_analysis.cxx
@@ -5,6 +5,7 @@
 
 #include "ROOT/RDataFrame.hxx"
 #include <iostream>
+#include <fstream>
 #include <fmt/core.h>
 
 #include "dd4pod/Geant4ParticleCollection.h"
diff --git a/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_gen.cxx b/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_gen.cxx
index 5c9142e08ac5acc48fe3b217db0c403d0145982f..297a74f554ed4b48a52acb9415ecc4c950e272dd 100644
--- a/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_gen.cxx
+++ b/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_gen.cxx
@@ -15,6 +15,7 @@
 
 #include <cmath>
 #include <iostream>
+#include <fstream>
 #include <math.h>
 #include <random>
 #include <fmt/core.h>
diff --git a/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_reader.cxx b/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_reader.cxx
index 6c16a91f29d76c6cd6ecd1998bd92d656f74d4d7..c21db831cd198a640ea74d08a1f2e5d30a8ea7d5 100644
--- a/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_reader.cxx
+++ b/benchmarks/barrel_hcal/scripts/hcal_barrel_particles_reader.cxx
@@ -18,6 +18,7 @@
 #include "TMath.h"
 
 #include <iostream>
+#include <fstream>
 #include <fmt/core.h>
 
 #include "hcal_barrel_common_functions.h"