]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/dNdPt/macros/ProofEnableAliRootGSI.C
7d519cffeb824d8b06b2bbf5c67806ccfba15621
[u/mrichter/AliRoot.git] / PWG0 / dNdPt / macros / ProofEnableAliRootGSI.C
1
2 void ProofEnableAliRoot(const char* location = "/usr/local/grid/AliRoot/v4-05-Release")
3 {
4   // enables a locally deployed AliRoot in a PROOF cluster
5
6   printf("Load libraries: %s \n",location);
7   gProof->Exec(Form("TString str(gSystem->ExpandPathName(\"%s\")); gSystem->Setenv(\"ALICE_ROOT\", str);", location), kTRUE);
8
9   gProof->AddIncludePath(Form("%s/include", location));
10   gProof->AddIncludePath(Form("%s/TPC", location));
11   gProof->AddIncludePath(Form("%s/PWG0", location));
12   gProof->AddIncludePath(Form("%s/PWG0/dNdPt", location));
13   gProof->AddIncludePath(Form("%s/ANALYSIS", location));
14
15   gProof->AddDynamicPath(Form("%s/lib/tgt_linuxx8664gcc", location));
16
17   // load all libraries
18   gProof->Exec("gROOT->Macro(\"$ALICE_ROOT/PWG0/dNdPt/macros/LoadMyLibs.C\")",kTRUE);
19 }
20
21