GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StartServer.C
Go to the documentation of this file.
1 
2 
3 {
4  printf("******************************************************************** \n") ;
5  printf(" Messages from StartServer.C \n") ;
6  printf("******************************************************************** \n") ;
7 
8  TString tmp, macroPATH = gROOT->GetMacroPath();
9 
10  // to set path to Gw macros
11  tmp = Gw::Env::GetPath("MacrosPath");
12  if ( macroPATH.Contains(tmp.Data()) == false ) {
13  printf("- Add %s to the macros path \n",tmp.Data());
14  tmp += ":";
15  macroPATH.Prepend(tmp.Data()); gROOT->SetMacroPath(macroPATH.Data());
16  }
17 
18  // add GammaWare include path for compilation
19  tmp = Gw::Env::GetPath("IncludePath");
20  printf("- Add %s to the include path \n",tmp.Data());
21  tmp.Prepend(" .include ");
22  gROOT->ProcessLine(tmp.Data());
23 
24  // load the different Gw libraries needed
25  gSystem->Load("libGWCORE.so");
26  gSystem->Load("libGWADF.so");
27  gSystem->Load("libGWADFE.so");
28 
29  // compile and load the watcher server
30  gROOT->ProcessLine(".L Macros/WatcherServer.C+");
31 
32  printf(" To start the Server : RunWatcherServer(\"./\") \n");
33 }
TString tmp
Definition: StartServer.C:8
TString macroPATH
Definition: StartServer.C:8
printf(" Messages from StartServer.C \n")
static const char * GetPath(const char *)
to get a particular GW environment variable
Definition: Env.cpp:47