]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG1/macros/ProofEnableAliRoot.C
59347fdd02aeda7e857eb7198090c9ec25ff7168
[u/mrichter/AliRoot.git] / PWG1 / macros / ProofEnableAliRoot.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   /* executes the following commands on each node:
7      gSystem->Setenv("ALICE_ROOT", "/home/alicecaf/ALICE/aliroot-head")
8      gSystem->AddIncludePath("/home/alicecaf/ALICE/aliroot-head/include");
9      gSystem->SetDynamicPath(Form("%s:%s", gSystem->GetDynamicPath(), "/home/alicecaf/ALICE/aliroot-head/lib/tgt_linux"))
10      gROOT->Macro("$ALICE_ROOT/macros/loadlibs.C");
11   */
12
13   gProof->Exec(Form("TString str(gSystem->ExpandPathName(\"%s\")); gSystem->Setenv(\"ALICE_ROOT\", str);", location), kTRUE);
14
15   gProof->AddIncludePath(Form("%s/include", location));
16   gProof->AddIncludePath(Form("%s/TPC", location));
17   gProof->AddIncludePath(Form("%s/PWG1", location));
18   gProof->AddIncludePath(Form("%s/ANALYSIS", location));
19
20   gProof->AddDynamicPath(Form("%s/lib/tgt_linuxx8664gcc", location));
21
22   // load all libraries
23   gProof->Exec("gROOT->Macro(\"$ALICE_ROOT/PWG1/macros/LoadMyLibs.C\")",kTRUE);
24   //gProof->Exec("gROOT->Macro(\"$ALICE_ROOT/macros/loadlibsrec.C\")",kTRUE);
25 }
26
27