Make sure PWG2/FORWARD/analysis2 is in the macro path
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Oct 2011 11:59:45 +0000 (11:59 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Oct 2011 11:59:45 +0000 (11:59 +0000)
PWG2/FORWARD/analysis2/AddTaskCentralMult.C
PWG2/FORWARD/analysis2/AddTaskForwardMult.C

index 0017bbf1ed429d162a8bbaf61ecdf84d0934efef..5f5347230de30d360ab1bb50a5c2fe1af58ba9c6 100644 (file)
@@ -37,6 +37,11 @@ AddTaskCentralMult(Bool_t mc=false,
   mgr->AddTask(task);
 
   // --- Configure the task ------------------------------------------
+  TString macroPath(gROOT->GetMacroPath());
+  if (!macroPath.Contains("$(ALICE_ROOT)/PWG2/FORWARD/analysis2")) { 
+    macroPath.Append(":$(ALICE_ROOT)/PWG2/FORWARD/analysis2");
+    gROOT->SetMacroPath(macroPath);
+  }
   const char* config = gSystem->Which(gROOT->GetMacroPath(),
                                      "CentralAODConfig.C");
   if (!config) 
index 7d4771b577a03ce4def6b6c94271156cbfed335c..d1ebb82c98ff7b7500bf5570ed11bbee24b9e450 100644 (file)
@@ -49,6 +49,11 @@ AddTaskForwardMult(Bool_t mc, UShort_t sys=0, UShort_t sNN=0, Short_t field=0)
     AliForwardCorrectionManager::Instance().Init(sys,sNN,field,mc);
 
   // --- Configure the task ------------------------------------------
+  TString macroPath(gROOT->GetMacroPath());
+  if (!macroPath.Contains("$(ALICE_ROOT)/PWG2/FORWARD/analysis2")) { 
+    macroPath.Append(":$(ALICE_ROOT)/PWG2/FORWARD/analysis2");
+    gROOT->SetMacroPath(macroPath);
+  }
   const char* config = gSystem->Which(gROOT->GetMacroPath(),
                                      "ForwardAODConfig.C");
   if (!config)