]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - macros/loadlibs.C
Adapted to the new set of libraries
[u/mrichter/AliRoot.git] / macros / loadlibs.C
index 3e0306c9363207fe5279ecc56dcca808372f0a20..f2b82ccef1f883a90fa72c0c0af2dfbdb1677ea2 100644 (file)
@@ -1,34 +1,89 @@
 void loadlibs () 
 {
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libminicern");
-  gSystem->Load("$(ROOTSYS)/lib/libPhysics");
-  gSystem->Load("$(ROOTSYS)/lib/libEG");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libSTEER");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTGeant3Dummy");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libdummyhijing");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTHijing");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libdummypythia6");
-  gSystem->Load("$(ROOTSYS)/lib/libEGPythia6");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libCONTAINERS");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libdummyHBTP");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTHbtp");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libdummymevsim");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTMevSim");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libEVGEN");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libHBTP"); 
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libRALICE");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libFMD");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libMUON");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libPHOS");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libPMD");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libRICH");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libSTRUCT");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTOF");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTPC");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libTRD");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libZDC");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libITS");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libCRT");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libSTART");
-  gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libEMCAL");
+  // Macro which loads the libraries needed for simulation and reconstruction
+  // Possible usage: In a Root session (no AliRoot) one does
+  // root [0] .x loadlibs.C
+  // root [1] gAlice = new AliRun("gAlice","test")           
+  // root [2] AliSimulation sim
+  // root [3] sim.Run()
+  // root [4] AliReconstruction rec
+  // root [5] rec.Run()
+
+  gSystem->Load("libPhysics");
+  gSystem->Load("libMinuit");
+
+  // Uncomment the following line for macosx
+  // Waiting for a better solution
+  // gSystem->Load("libg2c_sh");
+  gSystem->Load("libmicrocern");
+  gSystem->Load("libpdf");
+  gSystem->Load("libpythia6");
+
+  gSystem->Load("libEG");
+  gSystem->Load("libGeom");
+  gSystem->Load("libVMC");
+
+  gSystem->Load("libEGPythia6");
+
+  gSystem->Load("libRAW");
+
+  gSystem->Load("libESD");
+  gSystem->Load("libSTEER");
+  gSystem->Load("libEVGEN");
+  gSystem->Load("libFASTSIM");
+  gSystem->Load("libAliPythia6");
+
+  gSystem->Load("libhijing");
+  gSystem->Load("libTHijing");// AliGenHijingEventHeader needed by libZDCsim.so
+
+  gSystem->Load("libSTRUCT");
+  gSystem->Load("libPHOS");
+  gSystem->Load("libMUONmapping");
+  gSystem->Load("libMUONgeometry");
+  gSystem->Load("libMUONbase");
+  gSystem->Load("libMUONsim");
+  gSystem->Load("libMUONrec");
+  gSystem->Load("libFMDbase");
+  gSystem->Load("libFMDsim");
+  gSystem->Load("libFMDrec");
+  gSystem->Load("libPMDbase");
+  gSystem->Load("libPMDsim");
+  gSystem->Load("libPMDrec");
+  gSystem->Load("libRICHbase");
+  gSystem->Load("libRICHsim");
+  gSystem->Load("libRICHrec");
+  gSystem->Load("libSTARTbase");
+  gSystem->Load("libSTARTsim");
+  gSystem->Load("libSTARTrec");
+  gSystem->Load("libZDCbase");
+  gSystem->Load("libZDCsim");
+  gSystem->Load("libZDCrec");
+  gSystem->Load("libCRT");
+  gSystem->Load("libVZERObase");
+  gSystem->Load("libVZEROsim");
+  gSystem->Load("libVZEROrec");
+  gSystem->Load("libEMCAL");
+  gSystem->Load("libCONTAINERS");
+
+  // The following lines have to be commented on Darwin
+  // for the moment due to cross dependencies
+  gSystem->Load("libTPCbase");
+  gSystem->Load("libTPCrec");
+  gSystem->Load("libTPCsim");
+  gSystem->Load("libTPCfast");
+  gSystem->Load("libITS");
+  gSystem->Load("libTRDbase");
+  gSystem->Load("libTRDsim");
+  gSystem->Load("libTRDrec");
+  gSystem->Load("libTRDfast");
+  gSystem->Load("libTOFbase");
+  gSystem->Load("libTOFsim");
+  gSystem->Load("libTOFrec");
+
+  gSystem->Load("libAliL3Src");
+  gSystem->Load("libAliL3Misc");
+  gSystem->Load("libAliL3Comp");
+  gSystem->Load("libThread");
+  gSystem->Load("libAliL3Hough");
+  gSystem->Load("libAliL3ITS");
 }