ROOT logo

void ProofEnableAliRoot(const char* location = "/usr/local/grid/AliRoot/v4-05-Release")
{
  // enables a locally deployed AliRoot in a PROOF cluster
  gProof->Exec(Form("TString str(gSystem->ExpandPathName(\"%s\")); gSystem->Setenv(\"ALICE_ROOT\", str);", location), kTRUE);

  gProof->AddIncludePath(Form("%s/include", location));
  gProof->AddIncludePath(Form("%s/TPC", location));
  gProof->AddIncludePath(Form("%s/TRD", location));
  gProof->AddIncludePath(Form("%s/TRD/Cal", location));
  gProof->AddIncludePath(Form("%s/PWGPP", location));
  gProof->AddIncludePath(Form("%s/ANALYSIS", location));

  gProof->AddDynamicPath(Form("%s/lib/tgt_linuxx8664gcc", location));

  // load all libraries
  gProof->Exec("gROOT->Macro(\"$ALICE_ROOT/PWGPP/TPC/macros/LoadMyLibs.C\")",kTRUE);
}

 
 ProofEnableAliRoot.C:1
 ProofEnableAliRoot.C:2
 ProofEnableAliRoot.C:3
 ProofEnableAliRoot.C:4
 ProofEnableAliRoot.C:5
 ProofEnableAliRoot.C:6
 ProofEnableAliRoot.C:7
 ProofEnableAliRoot.C:8
 ProofEnableAliRoot.C:9
 ProofEnableAliRoot.C:10
 ProofEnableAliRoot.C:11
 ProofEnableAliRoot.C:12
 ProofEnableAliRoot.C:13
 ProofEnableAliRoot.C:14
 ProofEnableAliRoot.C:15
 ProofEnableAliRoot.C:16
 ProofEnableAliRoot.C:17
 ProofEnableAliRoot.C:18
 ProofEnableAliRoot.C:19
 ProofEnableAliRoot.C:20
 ProofEnableAliRoot.C:21