Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:15:32

0001 #include "genStatus.h"
0002 
0003 #include <iostream>
0004 #include <vector>
0005 
0006 int main(int argc, const char* const argv[])
0007 {
0008   const std::vector<std::string> args(argv, argv + argc);
0009 
0010   if (args.size() < 2 || args.size() > 3)
0011   {
0012     std::cerr << "usage: " << args[0] << " <input_list> [output_directory]" << std::endl;
0013     std::cerr << "  input_list: path to the input list file" << std::endl;
0014     std::cerr << "  output_directory: (optional) path to the output directory (default: 'output')" << std::endl;
0015     return 1;  // Indicate error
0016   }
0017 
0018   const std::string& input_list_path = args[1];
0019   std::string output_dir_path = "output";
0020 
0021   if (args.size() >= 3)
0022   {
0023     output_dir_path = args[2];
0024   }
0025 
0026   GenStatus genStat;
0027   genStat.process(input_list_path, output_dir_path);
0028 
0029   std::cout << "======================================" << std::endl;
0030   std::cout << "done" << std::endl;
0031   return 0;
0032 }