]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Corrections for bug #72863: Important bug fix to AliReconstruction::RunEVE (Christian)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Sep 2010 12:17:25 +0000 (12:17 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Sep 2010 12:17:25 +0000 (12:17 +0000)
STEER/AliReconstruction.cxx

index 3f369ebe0ae434ec2cbfa6cb3ff39d1a1efee2ce..dcf9a0060085e3633351728e6831c3afe893c939 100644 (file)
@@ -3440,9 +3440,15 @@ Bool_t AliReconstruction::InitAliEVE()
   // The return flag shows whenever the
   // AliEVE initialization was successful or not.
 
-  TString macroStr;
-  macroStr.Form("%s/EVE/macros/alieve_online.C",gSystem->ExpandPathName("$ALICE_ROOT"));
-  AliInfo(Form("Loading AliEVE macro: %s",macroStr.Data()));
+  TString macroPath;
+  macroPath.Form(".:%s:%s/EVE/macros/",
+                gROOT->GetMacroPath(),
+                gSystem->ExpandPathName("$ALICE_ROOT"));
+  gROOT->SetMacroPath(macroPath.Data());
+
+  TString macroStr("alieve_online.C");
+  AliInfo(Form("Loading AliEVE macro: %s (%s)",macroStr.Data(), 
+              gSystem->Which(gROOT->GetMacroPath(), macroStr.Data())));
   if (gROOT->LoadMacro(macroStr.Data()) != 0) return kFALSE;
 
   gROOT->ProcessLine("if (!AliEveEventManager::GetMaster()){new AliEveEventManager();AliEveEventManager::GetMaster()->AddNewEventCommand(\"alieve_online_on_new_event()\");gEve->AddEvent(AliEveEventManager::GetMaster());};");
@@ -3460,7 +3466,7 @@ void AliReconstruction::RunAliEVE()
   // successful initialization of AliEVE.
 
   AliInfo("Running AliEVE...");
-  gROOT->ProcessLine(Form("AliEveEventManager::GetMaster()->SetEvent((AliRunLoader*)0x%p,(AliRawReader*)0x%p,(AliESDEvent*)0x%p,(AliESDfriend*)0x%p);",fRunLoader,fRawReader,fesd,fesdf));
+  gROOT->ProcessLine(Form("AliEveEventManager::GetMaster()->SetEvent((AliRunLoader*)%p,(AliRawReader*)%p,(AliESDEvent*)%p,(AliESDfriend*)%p);",fRunLoader,fRawReader,fesd,fesdf));
   gSystem->Run();
 }