GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
stogs/GwtoSToGS/Load.C
Go to the documentation of this file.
1 {
2  /*
3  This is used to use the GW in order to produce Primary entries fro SToGS
4 
5  Usage:
6  root Load.C
7 
8  O. Stézowski
9  */
10 
11  // ---> GammaWare PART /////////////////////////
12 
13  printf("******************************************************************** \n") ;
14  printf(" Messages from Load.C \n") ;
15  printf("******************************************************************** \n") ;
16 
17  // load the different Gw libraries needed
18  gSystem->Load("libGWCORE.so");
19  gSystem->Load("libGWPHYSICS.so");
20  gSystem->Load("libGWADF.so");
21  gSystem->Load("libGWADFE.so");
22  gSystem->Load("libGWGEM.so");
23  gSystem->Load("libGWTOOLS.so");
24 
25  // add GammaWare include path to ROOT for compilation
26  TString tmp = Gw::Env::GetPath("IncludePath"); printf("- Add %s to the include path \n",tmp.Data());
27  tmp.Prepend(" .include ");
28  gROOT->ProcessLine(tmp.Data());
29 
30  gROOT->ProcessLine(".include ../analysis/");
31  gROOT->ProcessLine(".L ../analysis/SToGS_BaseROOTEvents.C+");
32 }
TString tmp
printf(" Messages from Load.C \n")
static const char * GetPath(const char *)
to get a particular GW environment variable
Definition: Env.cpp:47