Little change to run on CAF
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 Jul 2009 10:18:23 +0000 (10:18 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 Jul 2009 10:18:23 +0000 (10:18 +0000)
PWG3/vertexingHF/RunAnalysisAODVertexingHF.C

index d530317..1fb9d3f 100644 (file)
@@ -21,6 +21,7 @@ void RunAnalysisAODVertexingHF()
   Bool_t useAlienPlugin=kTRUE;\r
   TString pluginmode="full";\r
   TString loadMacroPath="$ALICE_ROOT/PWG3/vertexingHF/";\r
+  //TString loadMacroPath="./"; // this is normally needed for CAF\r
   //\r
 \r
   if(analysisMode=="grid") {\r
@@ -47,12 +48,16 @@ void RunAnalysisAODVertexingHF()
     gSystem->Load("libVMC.so");    \r
     // Enable the needed packages\r
     //gProof->ClearPackages();\r
+    TString parDir="/afs/cern.ch/user/d/dainesea/code/";\r
+    TString parFile;\r
     if(!useParFiles) {\r
       gProof->UploadPackage("AF-v4-17");\r
       gProof->EnablePackage("AF-v4-17");\r
+      // --- Enable the PWG3vertexingHF Package\r
+      parFile="PWG3vertexingHF.par"; parFile.Prepend(parDir.Data());\r
+      gProof->UploadPackage(parFile.Data());\r
+      gProof->EnablePackage("PWG3vertexingHF");\r
     } else {\r
-      TString parDir="/afs/cern.ch/user/d/dainesea/code/";\r
-      TString parFile;\r
       // --- Enable the STEERBase Package\r
       parFile="STEERBase.par"; parFile.Prepend(parDir.Data());\r
       gProof->UploadPackage(parFile.Data());\r