Merge from EVE-dev to HEAD.
[u/mrichter/AliRoot.git] / EVE / macros / reve_sa_init.C
CommitLineData
2cea0600 1// Stand-Alone reve initialization.
2// If class Reve::RGTopFrame is not know it attempts to load
3// "libReve".
4
5void reve_sa_init(int mode=1)
6{
7 TClass* c = gROOT->GetClass("Reve::RGTopFrame");
8 if (!c) {
9 Info("reve_sa_init", "tring to load libReve.");
10 //gSystem->Load("libTreePlayer");
11 //gSystem->Load("libGeomPainter");
12 //gSystem->Load("libGed");
13 gSystem->Load("libRGL");
14 gSystem->Load("libEG");
15 if (gSystem->Load("libReve") == -1)
16 Warning("reve_sa_init", "loading of libReve failed.");
17 }
18
19 Reve::SetupEnvironment();
20 Reve::RGTopFrame::SpawnGui(mode);
21}