GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LoadILL.C
Go to the documentation of this file.
1 {
2  /*
3 
4  Usage:
5  root LoadILL.C
6 
7  O. Stézowski
8  */
9 
10  // ---> GammaWare PART /////////////////////////
11 
12  printf("******************************************************************** \n") ;
13  printf(" Messages from LoadILL.C \n") ;
14  printf("******************************************************************** \n") ;
15 
16  // to add to ROOT the Gw path to look for macros
17  TString tmp, macroPATH; const Char_t *CompOpt = "";
18 
19  macroPATH = gROOT->GetMacroPath(); tmp = Gw::Env::GetPath("MacrosPath");
20  if ( macroPATH.Contains(tmp.Data()) == false ) {
21  printf("- Add %s to the macros path \n",tmp.Data());
22  tmp += ":";
23  macroPATH.Prepend(tmp.Data()); gROOT->SetMacroPath(macroPATH.Data());
24  }
25 
26  // add GammaWare include path to ROOT for compilation
27  tmp = Gw::Env::GetPath("IncludePath"); printf("- Add %s to the include path \n",tmp.Data());
28  tmp.Prepend(" .include ");
29  gROOT->ProcessLine(tmp.Data());
30 
31  // load the different Gw libraries needed
32  gSystem->Load("libGWCORE.so");
33  gSystem->Load("libGWPHYSICS.so");
34  gSystem->Load("libEve.so");
35  gSystem->Load("libGWTOOLS.so");
36  gSystem->Load("libGWADF.so");
37  gSystem->Load("libGWADFE.so");
38  gSystem->Load("libGWILL.so");
39 
40  tmp = "./" ; printf("- Add %s to the include path \n",tmp.Data());
41  tmp.Prepend(" .include ");
42  gROOT->ProcessLine(tmp.Data());
43 
44  tmp = Form(".L ILLWatchers.C+%s",CompOpt);
45  gROOT->ProcessLine(tmp.Data());
46  tmp = Form(".L Utilities.C+%s",CompOpt);
47  gROOT->ProcessLine(tmp.Data());
48 
49  // start a ROOT TBrowser
50  TBrowser b;
51 }
printf(" Messages from LoadILL.C \n")
TString macroPATH
Definition: LoadILL.C:17
TString tmp
Definition: LoadILL.C:17
TBrowser b
Definition: LoadILL.C:50
const Char_t * CompOpt
Definition: LoadILL.C:17
static const char * GetPath(const char *)
to get a particular GW environment variable
Definition: Env.cpp:47