5 #include <boost/filesystem.hpp> 10 std::cout <<
"Please pass a (gzipped) BDT weight file and a name for the output ROOT file." << std::endl;
17 if (!boost::filesystem::exists(inputFileName)) {
18 std::cout <<
"Input file " << inputFileName <<
" does not exists." << std::endl;
22 if (boost::filesystem::exists(outputFileName)) {
23 std::cout <<
"Output file " << outputFileName <<
" already exists." << std::endl;
28 std::cout <<
"Read GBRForest " << inputFileName <<
" successfully." << std::endl;
30 TFile{
outputFileName,
"RECREATE"}.WriteObject(gbrForest.get(),
"gbrForest");
31 std::cout <<
"GBRForest written to " << outputFileName <<
" successfully." << std::endl;
int main(int argc, char **argv)