From: richterm Date: Mon, 2 Apr 2012 11:06:32 +0000 (+0000) Subject: proper cleanup of HLTOUT at the end of the reconstruction for the case of inactive... X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=06b7d051b69dfe3d97cdebce937fcb81179873d9;p=u%2Fmrichter%2FAliRoot.git proper cleanup of HLTOUT at the end of the reconstruction for the case of inactive extended AliReconstruction functionality, handles a warning at the end of the reconstruction --- diff --git a/HLT/rec/AliHLTReconstructor.cxx b/HLT/rec/AliHLTReconstructor.cxx index de24f0d9f23..797214f3ec8 100644 --- a/HLT/rec/AliHLTReconstructor.cxx +++ b/HLT/rec/AliHLTReconstructor.cxx @@ -214,6 +214,20 @@ void AliHLTReconstructor::Terminate() const if (fpPluginBase) { AliHLTSystem* pSystem=fpPluginBase->GetInstance(); if (pSystem) { + // 2012-04-02 + // clean up the HLTOUT instance if still existing, currently FinishEvent + // is not called at the end of the event processing and the cleanup + // needs to be done here to avoid a warning message. Later it can be + // declared a malfunction if the HLTOUT instance is still existing at + // this point. + AliHLTOUT* pHLTOUT=NULL; + pSystem->InvalidateHLTOUT(&pHLTOUT); + if (pHLTOUT) { + pHLTOUT->Reset(); + delete pHLTOUT; + pHLTOUT=NULL; + } + AliDebug(0, Form("terminate HLT system: status %#x", pSystem->GetStatusFlags())); if (pSystem->CheckStatus(AliHLTSystem::kStarted)) { // send specific 'event' to execute the stop sequence