Possibility to use a rec.C file outside the aliroot distribution folder. To be used...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Nov 2009 17:16:36 +0000 (17:16 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Nov 2009 17:16:36 +0000 (17:16 +0000)
MONITOR/AliOnlineReco.cxx

index 310d6e4..c877dfa 100644 (file)
@@ -185,12 +185,15 @@ void AliOnlineReco::StartAliEve(mIntInt_i& mi)
        gSystem->mkdir(Form("run%d_%d", run, (Int_t)procPID));
        gSystem->cd(Form("run%d_%d", run, (Int_t)procPID));
 
-       const char *recMacroPath = "$ALICE_ROOT/MONITOR/rec.C";
+       TString recMacroPath(gSystem->Getenv("ONLINERECO_MACRO"));
+       if (recMacroPath.IsNull()) {
+         recMacroPath = "$ALICE_ROOT/MONITOR/rec.C";
+       }
 
        s = execlp("alieve",
                   "alieve",
                   "-q",
-                  Form("%s(\"mem://@*:\")", gSystem->ExpandPathName(recMacroPath)),
+                  Form("%s(\"mem://@*:\")", gSystem->ExpandPathName(recMacroPath.Data())),
                   (char*) 0);
       }