26int main(
int argc,
char **argv) {
34 for (ptrpy = 1; ptrpy < argc; ptrpy++) {
35 std::cout << argv[ptrpy] << std::endl;
36 if (strstr(argv[ptrpy],
".py"))
42 printf(
" ** No python script provided. **\n");
48 std::cout <<
"---- [ hpstr ]: Loading configuration --------" << std::endl;
52 std::cout <<
"---- [ hpstr ]: Configuration load complete --------" << std::endl;
55 int run_mode = p->getRunMode();
57 std::cout <<
"---- [ hpstr ]: Process mode " << run_mode <<
" initialized. --------" << std::endl;
61 memset (&act,
'\0',
sizeof(act));
62 if (sigaction(SIGINT, &act, NULL) < 0) {
67 std::cout <<
"---- [ hpstr ]: Start of processing --------" << std::endl;
72 std::cout<<
"---- [ hpstr ]: Running LCIO -> ROOT Process --------" << std::endl;
75 else if (run_mode == 1)
77 std::cout<<
"---- [ hpstr ]: Running ROOT -> Histo Process --------" << std::endl;
80 else if (run_mode == 2)
82 std::cout<<
"---- [ hpstr ]: Running Histo Analysis Process --------" << std::endl;
87 std::cout<<
"---- [ hpstr ]: Run Mode " << run_mode <<
" does not exist! --------" << std::endl;
90 std::cout <<
"---- [ hpstr ]: Event processing complete --------" << std::endl;
92 }
catch (exception& e) {
93 std::cerr <<
"Error! [" << e.what() <<
"] \n";
94 std::cerr <<
"Program aborted. " << std::endl;