]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGCF/Correlations/DPhi/FourierDecomposition/AliPool.cxx
Compatibility with the Root trunk
[u/mrichter/AliRoot.git] / PWGCF / Correlations / DPhi / FourierDecomposition / AliPool.cxx
index dddb5e73f6b33f7914a916f0ef40d908237063d4..f569f0fb57a1b9c914748da037d146389012ad3f 100644 (file)
@@ -4,6 +4,9 @@
 //                             AliEvtPool
 // ===================================================================
 
+using std::cout;
+using std::endl;
+
 ClassImp(AliEvtPool)
 
 AliEvtPool::~AliEvtPool()
@@ -118,6 +121,7 @@ AliEvtPool::UpdatePool(MiniEvent* miniEvt)
   }
   if (removeFirstEvent) {
     MiniEvent* oldestEvent = fEvents.front();
+    oldestEvent->clear();
     delete oldestEvent;
     fEvents.pop_front();         // remove first track array 
     fNTracksInEvent.pop_front(); // remove first int