32 using namespace Jetscape;
39 int main(
int argc,
char** argv)
41 clock_t
t; t = clock();
54 auto jetscape = make_shared<JetScape>();
55 const char* mainXMLName =
"../config/jetscape_main.xml";
56 const char* userXMLName =
"../config/jetscape_user.xml";
58 if ( strcmp(argv[1],
"--help")==0 || strcmp(argv[1],
"-h")==0 ){
59 std::cout <<
"Command line options:" << std::endl;
60 std::cout <<
" First (optional) argument: path to user XML file ./runJetscape /path/to/user.xml" << std::endl;
61 std::cout <<
" Second (optional) argument: path to main XML file ./runJetscape /path/to/user.xml /path/to/main.xml" << std::endl;
62 std::cout <<
" If no command line options are given, defaults are used: config/jetscape_user.xml config/jetscape_main.xml" << std::endl;
66 userXMLName = argv[1];
70 userXMLName = argv[1];
71 mainXMLName = argv[2];
73 jetscape->SetXMLMainFileName(mainXMLName);
74 jetscape->SetXMLUserFileName(userXMLName);
90 printf (
"CPU time: %f seconds.\n",((
float)t)/CLOCKS_PER_SEC);
91 printf (
"Real time: %f seconds.\n",difftime(end,start));
99 INFO_NICE<<
"------------------------------";
100 INFO_NICE<<
"| ... JetScape Framework ... |";
101 INFO_NICE<<
"------------------------------";