0a9ce2744b68f5569cab9e2c87bffb4f94e47f05
[u/mrichter/AliRoot.git] / TPC / TPCupgrade / macros / loadlibs.C
1 void loadlibs(const char *dir=".")
2 {
3   //fix ld path for par files
4   gSystem->Exec("export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH");
5   
6   //set inlcude paths
7   gSystem->AddIncludePath("-I$ROOTSYS/include");
8    Bool_t hasAR=!TString(gSystem->Getenv("ALICE_ROOT")).IsNull();
9   // if (hasAR) gSystem->AddIncludePath("-I$ALICE_ROOT/ -I$ALICE_ROOT/include -I$ALICE_ROOT/STEER  -I$ALICE_ROOT/ANALYSIS -I$ALICE_ROOT/TPC -I$ALICE_ROOT/RAW");
10    if (hasAR) gSystem->AddIncludePath("-I$ALICE_ROOT/ -I$ALICE_ROOT/include -I$ALICE_ROOT/STEER  -I$ALICE_ROOT/ANALYSIS -I$ALICE_ROOT/TPC -I$ALICE_ROOT/TPC/Base -I$ALICE_ROOT/TPC/Rec -I$ALICE_ROOT/TPC/Upgrade -I$ALICE_ROOT/RAW -I$ALICE_ROOT/STEER/STEERBase/ -I$ALICE_ROOT/STEER/ESD/ -I$ALICE_ROOT/HLT/BASE/ -I$ALICE_ROOT/STAT");
11
12   gSystem->Load("libCore");
13   gSystem->Load("libPhysics");
14   gSystem->Load("libMinuit");
15   gSystem->Load("libGui");
16
17   gSystem->Load("libGeom");
18   gSystem->Load("libVMC");
19
20   gSystem->Load("libNet");
21   gSystem->Load("libTree");
22   gSystem->Load("libProof");
23   gSystem->Load("libSTEERBase");
24   gSystem->Load("libAOD");
25   gSystem->Load("libESD");
26   gSystem->Load("libCDB");
27   gSystem->Load("libRAWDatabase");
28   gSystem->Load("libRAWDatarec");
29   gSystem->Load("libANALYSIS");
30   gSystem->Load("libANALYSISalice");
31   gSystem->Load("libSTEER");
32   gSystem->Load("libSTAT");
33
34   gSystem->Load("libTPCbase");
35   gSystem->Load("libTPCrec");
36   gSystem->Load("libTPCupgrade");
37   
38   // gSystem->Load("libANALYSISalice");
39  gSystem->Load("libTPCcalib");
40  gSystem->Load("libThread");
41
42   gSystem->AddIncludePath(Form("-I%s/",dir));                                                                                                                      
43   //  gSystem->AddIncludePath(Form("-I%s/code/Event",dir));
44
45   //gSystem->Exec(Form("cd %s/code; make",dir));
46
47   // gSystem->Load(Form("%s/code/libGEMEvent.so",dir));
48   //if (!gSystem->AccessPathName(Form("%s/code/libGEMtest.so",dir))){
49   //   gSystem->Load(Form("%s/code/libGEMtest.so",dir));
50   // }
51   
52 //   gROOT->LoadMacro(Form("%s/code/RawReader/AliRawReaderGEM.cxx+g",dir));
53 //   gROOT->LoadMacro(Form("%s/code/AliTPCSimpleEventDisplay/AliTPCSimpleEventDisplay.cxx+g",dir));
54   // if (hasAR) gROOT->LoadMacro(Form("%s/code/AliTPCSimpleEventDisplay/TestSimpleEvDisp.C+g",dir));
55   // gROOT->LoadMacro(Form("%s/CRSIMSubTrack.cxx+g",dir));
56   // gROOT->LoadMacro(Form("%s/CRSIMTrack.cxx+g",dir));
57   // gROOT->LoadMacro(Form("%s/CRSIMEvent.cxx+g",dir));
58   // gROOT->LoadMacro(Form("%s/CRSIMDrawer.cxx+g",dir));
59   // gROOT->LoadMacro(Form("%s/CRSIMDisplay.cxx+g",dir));
60   // gROOT->LoadMacro(Form("%s/CRSIMEventGenerator.cxx+g",dir));
61   // gROOT->LoadMacro(Form("%s/CRSIMEventGeneratorSimple.cxx+g",dir));
62   // gROOT->LoadMacro(Form("%s/CRSIMRunGenerator.cxx+g",dir));
63   // CRSIMDrawer *drawer = new CRSIMDrawer("test.root");
64   //CRSIMDisplay *disp = new CRSIMDisplay();
65   //gROOT->LoadMacro(Form("%s/AliToyMCTrack.cxx+g",dir));
66   //gROOT->LoadMacro(Form("%s/AliToyMCEvent.cxx+g",dir));
67  // gROOT->LoadMacro(Form("%s/AliToyMCEventGenerator.cxx+g",dir));
68  // gROOT->LoadMacro(Form("%s/AliToyMCEventGeneratorSimple.cxx+g",dir));
69   //  gROOT->LoadMacro(Form("%s/AliToyMCDrawer.cxx+g",dir));
70   // disp->SetDrawer(drawer);
71   //  gROOT->LoadMacro(Form("%s/AliToyMCEventGeneratorESD.cxx+g",dir));
72 }