return result;
}
+const char* GetAliRootLocation(Int_t aliroot)
+{
+ switch (aliroot)
+ {
+ case 1: return "/afs/cern.ch/alice/caf/sw/ALICE/v4-04-Release/slc4_ia32_gcc34/aliroot"; break;
+ default: return 0;
+ }
+}
+
void ProofEnableAliRoot(Int_t aliroot)
{
// enables a locally deployed AliRoot in a PROOF cluster
gROOT->Macro("$ALICE_ROOT/macros/loadlibs.C");
*/
- const char* location = 0;
+ const char* location = GetAliRootLocation(aliroot);
const char* target = "tgt_linux";
-
- switch (aliroot)
- {
- case 1: location = "/afs/cern.ch/alice/caf/sw/ALICE/v4-04-Release/slc4_ia32_gcc34/aliroot"; break;
- default: return;
- }
gProof->Exec(Form("gSystem->Setenv(\"ALICE_ROOT\", \"%s\")", location), kTRUE);
gProof->AddIncludePath(Form("%s/include", location));
gProof->Exec("gROOT->Macro(\"$ALICE_ROOT/macros/loadlibs.C\")");
}
+void ProofAddAliRootIncludePath(Int_t aliroot, const char* dir)
+{
+ // adds an include path inside the aliroot structure
+
+ const char* location = GetAliRootLocation(aliroot);
+ gProof->AddIncludePath(Form("%s/%s", location, dir));
+}
+
Bool_t EnablePackageLocal(const char* package)
{
printf("Enabling package %s locally...\n", package);