]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/PROOF-INF.PWGflowTasks/SETUP.C
allow to reuse tracks
[u/mrichter/AliRoot.git] / PWG / PROOF-INF.PWGflowTasks / SETUP.C
index abaf5a48247bdaa136155e8a522e14534355f7af..19319a53f4d6dee42574f1acb82d45d27ffa8441 100644 (file)
@@ -1,13 +1,15 @@
 void SETUP() {
-
+  // Set the library paths
   TString dypath = gSystem->GetDynamicPath();
-  dypath.Prepend(".:");
+  dypath.Prepend("./PWGflowTasks/:");
   gSystem->SetDynamicPath(dypath);
   gSystem->Load("libPWGflowBase");
   gSystem->Load("libPWGflowTasks");
   
   // Set the include paths
-  gROOT->ProcessLine(".include PWGflowTasks/FLOW/Tasks $(ALICE_ROOT)/TOF");
+  TString incpath = gSystem->GetIncludePath();
+  incpath.Prepend("-I./PWGflowTasks/FLOW/Tasks -I$ALICE_ROOT/TOF ");
+  gSystem->SetIncludePath(incpath);
 
   // Set our location, so that other packages can find us
   gSystem->Setenv("PWGflowTasks_INCLUDE", "PWGflowTasks/FLOW/Tasks");