File indexing completed on 2026-08-31 08:20:35
0001 #include "PHUtils.h"
0002
0003 #include <phool/phool.h>
0004
0005 #include <filesystem>
0006 #include <iostream>
0007
0008 std::string PHUtils::CreateReproducibleTFileName(const std::string &filename)
0009 {
0010 std::string outfilename = filename;
0011 if (filename.empty())
0012 {
0013 std::cout << PHWHERE << " called with empty filename string, returning empty string" << std::endl;
0014 return outfilename;
0015 }
0016 std::filesystem::path p = filename;
0017 outfilename = outfilename + std::string("?reproducible=") + std::string(p.filename());
0018 return outfilename;
0019 }