diff --git a/src/BarrelBarDetectorWithSideFrame_geo.cpp b/src/BarrelBarDetectorWithSideFrame_geo.cpp index d7911bde8a54ec3cc8fde728a7146c22fe61e32a..7b2adc2956f9f8f3c725e839cd5944c9c08a3a85 100644 --- a/src/BarrelBarDetectorWithSideFrame_geo.cpp +++ b/src/BarrelBarDetectorWithSideFrame_geo.cpp @@ -16,6 +16,7 @@ #include "DDRec/DetectorData.h" #include "DDRec/Surface.h" #include "XML/Layering.h" +#include <array> using namespace std; using namespace dd4hep; diff --git a/src/BarrelTrackerWithFrame_geo.cpp b/src/BarrelTrackerWithFrame_geo.cpp index ea0420a068bf5024e4d1a4e754fddaa64da52c73..9470042e594c5e8808495c308c2bc52f89deae6c 100644 --- a/src/BarrelTrackerWithFrame_geo.cpp +++ b/src/BarrelTrackerWithFrame_geo.cpp @@ -13,6 +13,7 @@ #include "DDRec/DetectorData.h" #include "XML/Layering.h" #include "XML/Utilities.h" +#include <array> #if defined(USE_ACTSDD4HEP) #include "ActsDD4hep/ActsExtension.hpp" diff --git a/src/FieldMapBrBz.cpp b/src/FieldMapBrBz.cpp index b3c5af11cfb73aed5775ab89838c0c29e7978253..7215411b309311d8d152ad695abb579b7f801483 100644 --- a/src/FieldMapBrBz.cpp +++ b/src/FieldMapBrBz.cpp @@ -195,7 +195,7 @@ static Ref_t create_field_map_brbz(Detector & /*lcdd*/, xml::Handle_t handle) if( !fs::exists(fs::path(field_map_file)) ) { printout(ERROR, "FieldMapBrBz", "file " + field_map_file + " does not exist"); printout(ERROR, "FieldMapBrBz", "use a FileLoader plugin before the field element"); - std::quick_exit(1); + std::_Exit(EXIT_FAILURE); } auto map = new FieldMapBrBz(field_type); diff --git a/src/FileLoaderHelper.h b/src/FileLoaderHelper.h index ea310e2f0c772ec949af2986e8d96486eedc4b23..821350cdbec5c0ea2108e28cd18e8177de6785fc 100644 --- a/src/FileLoaderHelper.h +++ b/src/FileLoaderHelper.h @@ -54,7 +54,7 @@ EnsureFileFromURLExists( if (fs::create_directories(parent_path) == false) { printout(ERROR, "FileLoader", "parent path " + parent_path.string() + " cannot be created"); printout(ERROR, "FileLoader", "check permissions and retry"); - std::quick_exit(1); + std::_Exit(EXIT_FAILURE); } } @@ -85,7 +85,7 @@ EnsureFileFromURLExists( } catch (const fs::filesystem_error&) { printout(ERROR, "FileLoader", "unable to link from " + hash_path.string() + " to " + cache_hash_path.string()); printout(ERROR, "FileLoader", "check permissions and retry"); - std::quick_exit(1); + std::_Exit(EXIT_FAILURE); } break; } @@ -103,7 +103,7 @@ EnsureFileFromURLExists( printout(ERROR, "FileLoader", "unable to run cmd " + cmd); printout(ERROR, "FileLoader", "check command and retry"); printout(ERROR, "FileLoader", "hint: allow insecure connections with -k"); - std::quick_exit(1); + std::_Exit(EXIT_FAILURE); } } @@ -120,14 +120,14 @@ EnsureFileFromURLExists( if (fs::remove(file_path) == false) { printout(ERROR, "FileLoader", "unable to remove symlink " + file_path.string()); printout(ERROR, "FileLoader", "check permissions or remove manually"); - std::quick_exit(1); + std::_Exit(EXIT_FAILURE); } } } else { // file exists but not symlink printout(ERROR, "FileLoader", "will not remove actual file " + file_path.string()); printout(ERROR, "FileLoader", "check content, remove manually, and retry"); - std::quick_exit(1); + std::_Exit(EXIT_FAILURE); } } // file_path now does not exist @@ -139,6 +139,6 @@ EnsureFileFromURLExists( } catch (const fs::filesystem_error&) { printout(ERROR, "FileLoader", "unable to link from " + file_path.string() + " to " + hash_path.string()); printout(ERROR, "FileLoader", "check permissions and retry"); - std::quick_exit(1); + std::_Exit(EXIT_FAILURE); } } diff --git a/src/TrapEndcapTracker_geo.cpp b/src/TrapEndcapTracker_geo.cpp index 01ff4ef07bab4f1b76e4be88a83aa4f0be06948b..f65d8498b8c90459e7073c7836a6d2de87ddc62e 100644 --- a/src/TrapEndcapTracker_geo.cpp +++ b/src/TrapEndcapTracker_geo.cpp @@ -6,6 +6,7 @@ * * @{ */ +#include <array> #include <map> #include "DD4hep/DetFactoryHelper.h" #include "DD4hep/Printout.h"