Add new macros (Jens, marian)
[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");
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/RAW -I$ALICE_ROOT/STEER/STEERBase/ -I$ALICE_ROOT/STEER/ESD/");
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");
23
24 gSystem->Load("libSTEERBase");
25 gSystem->Load("libESD");
26 gSystem->Load("libCDB");
27 gSystem->Load("libRAWDatabase");
28 gSystem->Load("libRAWDatarec");
29 gSystem->Load("libANALYSIS");
30 gSystem->Load("libSTEER");
31 gSystem->Load("libSTAT");
32
33 gSystem->Load("libTPCbase");
34 gSystem->Load("libTPCrec");
35
36 // gSystem->Load("libANALYSISalice");
37 gSystem->Load("libTPCcalib");
38 gSystem->Load("libThread");
39
40 gSystem->AddIncludePath(Form("-I%s/",dir));
41 // gSystem->AddIncludePath(Form("-I%s/code/Event",dir));
42
43 //gSystem->Exec(Form("cd %s/code; make",dir));
44
45 // gSystem->Load(Form("%s/code/libGEMEvent.so",dir));
46 //if (!gSystem->AccessPathName(Form("%s/code/libGEMtest.so",dir))){
47 // gSystem->Load(Form("%s/code/libGEMtest.so",dir));
48 // }
49
50// gROOT->LoadMacro(Form("%s/code/RawReader/AliRawReaderGEM.cxx+g",dir));
51// gROOT->LoadMacro(Form("%s/code/AliTPCSimpleEventDisplay/AliTPCSimpleEventDisplay.cxx+g",dir));
52 // if (hasAR) gROOT->LoadMacro(Form("%s/code/AliTPCSimpleEventDisplay/TestSimpleEvDisp.C+g",dir));
53 // gROOT->LoadMacro(Form("%s/CRSIMSubTrack.cxx+g",dir));
54 // gROOT->LoadMacro(Form("%s/CRSIMTrack.cxx+g",dir));
55 // gROOT->LoadMacro(Form("%s/CRSIMEvent.cxx+g",dir));
56 // gROOT->LoadMacro(Form("%s/CRSIMDrawer.cxx+g",dir));
57 // gROOT->LoadMacro(Form("%s/CRSIMDisplay.cxx+g",dir));
58 // gROOT->LoadMacro(Form("%s/CRSIMEventGenerator.cxx+g",dir));
59 // gROOT->LoadMacro(Form("%s/CRSIMEventGeneratorSimple.cxx+g",dir));
60 // gROOT->LoadMacro(Form("%s/CRSIMRunGenerator.cxx+g",dir));
61 // CRSIMDrawer *drawer = new CRSIMDrawer("test.root");
62 //CRSIMDisplay *disp = new CRSIMDisplay();
63 gROOT->LoadMacro(Form("%s/ToyMCTrack.cxx+g",dir));
64 gROOT->LoadMacro(Form("%s/ToyMCEvent.cxx+g",dir));
65 gROOT->LoadMacro(Form("%s/ToyMCEventGenerator.cxx+g",dir));
66 gROOT->LoadMacro(Form("%s/ToyMCEventGeneratorSimple.cxx+g",dir));
67 // gROOT->LoadMacro(Form("%s/ToyMCDrawer.cxx+g",dir));
68 // disp->SetDrawer(drawer);
69
70}