6#include "GeoModelKernel/throwExcept.h"
12 [](
const unsigned char c){
13 return !std::isalnum(c);
18 const std::string dir = path.substr(0, path.rfind(
"/"));
19 if (dir.rfind(
"/") != std::string::npos){
21 }
else if (dir.empty()) {
24 if (!std::filesystem::is_directory(dir) && !std::filesystem::create_directory(dir)) {
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
void ensureDirectory(const std::string &path)
Ensures that the subdirectory in the path is created.
std::string removeNonAlphaNum(std::string str)
Removes all non-alpha numerical characters from a string.
DataModel_detail::iterator< DVL > remove_if(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end, Predicate pred)
Specialization of remove_if for DataVector/List.
#define THROW_EXCEPTION(MESSAGE)