R__ADD_INCLUDE_PATH($RATROOT/include); R__ADD_INCLUDE_PATH($RATROOT/include/libpq); R__ADD_INCLUDE_PATH($RATROOT/include/external); R__ADD_LIBRARY_PATH($RATROOT/lib); R__LOAD_LIBRARY(RATEvent_$RATSYSTEM); void rootinit(){ gROOT->SetStyle("Plain"); gStyle->SetCanvasBorderMode(0); gStyle->SetPadBorderMode(0); gStyle->SetPadColor(0); gStyle->SetCanvasColor(0); string RATSYSTEM = getenv("RATSYSTEM"); string libname = string("libRATEvent_") + RATSYSTEM; gSystem->AddDynamicPath(Form("%s/%s", getenv("RATROOT"), "lib")); gSystem->Load(libname.c_str()); cout << "RAT: Libraries loaded." << endl; vector includes; includes.push_back("include"); includes.push_back("include/libpq"); includes.push_back("include/external"); for(size_t i=0; iAddIncludePath(header); gInterpreter->AddIncludePath(header_stripped); } RAT::Log::Init("/dev/null"); RAT::DB* gRATDB = RAT::DB::Get(); RAT::DU::Utility* gRAT = RAT::DU::Utility::Get(); }