X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=STEER%2FAliReconstruction.cxx;h=9e3bfc5665f00275c04dab59a56b768ff4777b87;hp=e8601e165c4e2d2063286c594fb621ca373d9b4e;hb=319f30847dffdde01b1ad0801c1e289950bf6d66;hpb=f39fcb6015aa77000bd751c33176a25e3f29e81e diff --git a/STEER/AliReconstruction.cxx b/STEER/AliReconstruction.cxx index e8601e165c4..9e3bfc5665f 100644 --- a/STEER/AliReconstruction.cxx +++ b/STEER/AliReconstruction.cxx @@ -642,6 +642,19 @@ Bool_t AliReconstruction::Run(const char* input) AliCodeTimerAuto(""); if (!InitRun(input)) return kFALSE; + + Bool_t runAliEVE = kFALSE; + if (strcmp(gProgName,"alieve") == 0) runAliEVE = kTRUE; + + if (runAliEVE) { + TString macroStr; + macroStr.Form("%s/EVE/macros/alieve_online.C",gSystem->ExpandPathName("$ALICE_ROOT")); + AliInfo(Form("Loading AliEVE macro: %s",macroStr.Data())); + if (gROOT->LoadMacro(macroStr.Data()) != 0) + runAliEVE = kFALSE; + else + gROOT->ProcessLine("if (!gAliEveEvent) {gAliEveEvent = new AliEveEventManager();gAliEveEvent->SetAutoLoad(kTRUE);gAliEveEvent->AddNewEventCommand(\"alieve_online()\");gEve->AddEvent(gAliEveEvent);};"); + } //******* The loop over events Int_t iEvent = 0; @@ -649,6 +662,13 @@ Bool_t AliReconstruction::Run(const char* input) (fRawReader && fRawReader->NextEvent())) { if (!RunEvent(iEvent)) return kFALSE; iEvent++; + + if (runAliEVE) { + AliInfo("Running AliEVE..."); + gROOT->ProcessLine(Form("gAliEveEvent->SetEvent((AliRunLoader*)%p,(AliRawReader*)%p,(AliESDEvent*)%p);",fRunLoader,fRawReader,fesd)); + gROOT->ProcessLine("gAliEveEvent->StartStopAutoLoadTimer();"); + gSystem->Run(); + } } if (!FinishRun()) return kFALSE;