2 void ProofEnableAliRoot(const char* location = "/usr/local/grid/AliRoot/v4-05-Release")
4 // enables a locally deployed AliRoot in a PROOF cluster
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");
13 gProof->Exec(Form("TString str(gSystem->ExpandPathName(\"%s\")); gSystem->Setenv(\"ALICE_ROOT\", str);", location), kTRUE);
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));
20 gProof->AddDynamicPath(Form("%s/lib/tgt_linuxx8664gcc", location));
23 gProof->Exec("gROOT->Macro(\"$ALICE_ROOT/PWG1/macros/LoadMyLibs.C\")",kTRUE);
24 //gProof->Exec("gROOT->Macro(\"$ALICE_ROOT/macros/loadlibsrec.C\")",kTRUE);