UF-HH / bbbbAnalysis

1 stars 6 forks source link

is_dir failing sometimes #13

Open l-cadamuro opened 5 years ago

l-cadamuro commented 5 years ago

The helper function is_dir defined in AnalysisHelper.cc sometimes fails upon launching fill_histograms.exe and the code complains about the output folder existing while nothing has been created. Not sure about the cause and it's typically enough to just relaunch the command. One thing that could be tried is the filesystem library of C++:

#include <experimental/filesystem>
if (std::experimental::filesystem::is_directory(outputFolder_))

Clearly not critical to be fixed :-)