From b7253ffe9e3c305b1c400217ce4f417a6298488b Mon Sep 17 00:00:00 2001 From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de> Date: Mon, 22 May 2023 13:45:54 +0000 Subject: [PATCH] Fix compilation on Mac OS. --- algo/base/util/TimingsFormat.cxx | 2 +- algo/data/sts/LandauTable.cxx | 2 +- algo/global/Reco.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/algo/base/util/TimingsFormat.cxx b/algo/base/util/TimingsFormat.cxx index a35956ec69..f7e81949ac 100644 --- a/algo/base/util/TimingsFormat.cxx +++ b/algo/base/util/TimingsFormat.cxx @@ -18,7 +18,7 @@ namespace cbm::algo void Begin(size_t align) { fAlign = align; - fSS = {}; + fSS = std::stringstream(); } void Title(std::string_view title) { fSS << fmt::format("{:<{}}\n", title, fAlign); } diff --git a/algo/data/sts/LandauTable.cxx b/algo/data/sts/LandauTable.cxx index fe7fcabf5f..fcea6f0c72 100644 --- a/algo/data/sts/LandauTable.cxx +++ b/algo/data/sts/LandauTable.cxx @@ -15,7 +15,7 @@ sts::LandauTable sts::LandauTable::FromFile(fs::path path) std::vector<f32> charge; std::vector<f32> prob; - std::ifstream file(path); + std::ifstream file(path.string()); while (!file.eof()) { diff --git a/algo/global/Reco.cxx b/algo/global/Reco.cxx index dc5f6af7c6..c87975a7ce 100644 --- a/algo/global/Reco.cxx +++ b/algo/global/Reco.cxx @@ -26,7 +26,7 @@ void Reco::Init(const Options& opts) LOG(info) << "Running CBM Reco on Device " << props.name(); // Reco Params - fs::path recoParamsPath = opts.ParamsDir() / "Reco.yaml"; + fs::path recoParamsPath = opts.ParamsDir() / "RecoParams.yaml"; YAML::Node yaml = YAML::LoadFile(recoParamsPath.string()); fContext.recoParams = config::Read<RecoParams>(yaml); -- GitLab