R__ADD_INCLUDE_PATH($RATROOT/include); R__LOAD_LIBRARY(libRATEvent_$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; char *header_stripped = Form("%s/include",getenv("RATROOT")); char *header = Form("-I%s",header_stripped); gSystem->AddIncludePath(header); gInterpreter->AddIncludePath(header_stripped); // reassign with the libpq subheader. header_stripped = Form("%s/include/libpq",getenv("RATROOT")); header = Form("-I%s",header_stripped); gSystem->AddIncludePath(header); gInterpreter->AddIncludePath(header_stripped); RAT::Log::Init("/dev/null"); RAT::DB* gRATDB = RAT::DB::Get(); RAT::DU::Utility* gRAT = RAT::DU::Utility::Get(); }