o update
[u/mrichter/AliRoot.git] / TPC / Upgrade / macros / loadlibs.C
CommitLineData
c0172f82 1void 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");
d1cf83f5 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/");
c0172f82 11
12 gSystem->Load("libCore");
13 gSystem->Load("libPhysics");
14 gSystem->Load("libMinuit");
15 gSystem->Load("libGui.so");
16
17 gSystem->Load("libGeom");
18 gSystem->Load("libVMC");
19
20 gSystem->Load("libNet");
21 gSystem->Load("libTree");
22 gSystem->Load("libProof");
c0172f82 23 gSystem->Load("libSTEERBase");
f356075c 24 gSystem->Load("libAOD");
c0172f82 25 gSystem->Load("libESD");
26 gSystem->Load("libCDB");
27 gSystem->Load("libRAWDatabase");
28 gSystem->Load("libRAWDatarec");
29 gSystem->Load("libANALYSIS");
f356075c 30 gSystem->Load("libANALYSISalice");
c0172f82 31 gSystem->Load("libSTEER");
32 gSystem->Load("libSTAT");
33
34 gSystem->Load("libTPCbase");
35 gSystem->Load("libTPCrec");
de0014b7 36 gSystem->Load("libTPCupgrade");
c0172f82 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();
de0014b7 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));
f356075c 69 // gROOT->LoadMacro(Form("%s/AliToyMCDrawer.cxx+g",dir));
c0172f82 70 // disp->SetDrawer(drawer);
f356075c 71 // gROOT->LoadMacro(Form("%s/AliToyMCEventGeneratorESD.cxx+g",dir));
c0172f82 72}