]>
Commit | Line | Data |
---|---|---|
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 |