00001 #include "proto/TransferTest.hh" 00002 #include "artdaq/DAQdata/Globals.hh" 00003 #include "fhiclcpp/make_ParameterSet.h" 00004 00005 00006 int main(int argc, char* argv[]) 00007 { 00008 artdaq::configureMessageFacility("transfer_driver"); 00009 TRACE(10, "s_r_handles main enter"); 00010 00011 std::cout << "argc:" << argc << std::endl; 00012 for (int i = 0; i < argc; ++i) 00013 { 00014 std::cout << "argv[" << i << "]: " << argv[i] << std::endl; 00015 } 00016 00017 if (argc != 3) 00018 { 00019 std::cerr << argv[0] << " requires 2 arguments, " << argc - 1 << " provided" << std::endl; 00020 std::cerr << "Usage: " << argv[0] << " <my_rank> <fhicl_document>" << std::endl; 00021 return 1; 00022 } 00023 00024 my_rank = atoi(argv[1]); 00025 00026 cet::filepath_lookup lookup_policy("FHICL_FILE_PATH"); 00027 fhicl::ParameterSet ps; 00028 00029 auto fhicl = std::string(argv[2]); 00030 make_ParameterSet(fhicl, lookup_policy, ps); 00031 00032 artdaq::TransferTest theTest(ps); 00033 theTest.runTest(); 00034 00035 TRACE(11, "s_r_handles main return"); 00036 return 0; 00037 }