]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG0/PWG0Helper.C
adding second trigger definition to function IsEventTriggered
[u/mrichter/AliRoot.git] / PWG0 / PWG0Helper.C
index f1424c371e88d9124c20ab026fba65cd81467b22..5dd551917c7394515ec3812cf04d52fa50f226f2 100644 (file)
@@ -111,6 +111,15 @@ Int_t executeQuery(TChain* chain, TList* inputList, TString selectorName, const
   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
@@ -123,14 +132,8 @@ void ProofEnableAliRoot(Int_t aliroot)
      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));
@@ -141,6 +144,14 @@ void ProofEnableAliRoot(Int_t aliroot)
   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);