#include #include #include #include #include #include #include #include #include #include int main(int argc, char *argv[]) { std::cout << "\n *******************************************\n" << " * T H I S I S R A T ' s R O O T *\n" << " * *\n" << " * RAT Version: " << std::setw( 23 ) << std::left << RAT::RATVERSION << "*\n" << " * *\n" //<< " * RAT Revision: " << std::setw( 20 ) << RAT::RATREVISION << "*\n" << " *******************************************\n\n"; TRint *app = new TRint("ROOT for RAT", &argc, argv); std::string ratroot = getenv("RATROOT"); std::string initmacro = ratroot+std::string("/rootinit.C"); gROOT->ProcessLine((std::string(".x ") + initmacro).c_str()); try { app->Run(); } catch( RAT::DBNotFoundError& e ) { std::cout << e.what() << " " << e.table << "[" << e.index << "] " << e.field << std::endl; } catch( RAT::DS::DataNotFound& e ) { std::cout << e.what() << " " << e.fClassName << "::" << e.fFieldName << std::endl; } catch( std::exception& e ) { std::cout << "Exception: " << e.what() << std::endl; } return 0; }