Add default macro path
authoreserradi <eserradi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 20 Jan 2013 15:45:00 +0000 (15:45 +0000)
committereserradi <eserradi@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 20 Jan 2013 15:45:00 +0000 (15:45 +0000)
PWGLF/SPECTRA/Nuclei/B2/macros/run.C

index a6cf8de..5f340b0 100644 (file)
@@ -7,7 +7,7 @@ Int_t run(const TString& config)
        TStopwatch timer;
        timer.Start();
        
-       gROOT->SetMacroPath("$ALICE_ROOT/PWGLF/SPECTRA/Nuclei/B2/macros/");
+       gROOT->SetMacroPath(Form("%s:$ALICE_ROOT/PWGLF/SPECTRA/Nuclei/B2/macros/", gROOT->GetMacroPath()));
        
        // Install RooUnfold and uncomment and edit AliLnPt.{h,cxx}
        //gSystem->Load("$ALICE_ROOT/../RooUnfold/libRooUnfold.so");