Use TList::Delete, change some output
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveEventBufferHomer.cxx
index 420dbbb34f4a724cbb2a4a44aa5d49cc37a3e806..2fe92a7583147c3f3dc4d9033e263a715ab467bf 100644 (file)
@@ -35,7 +35,7 @@ AliEveEventBufferHomer::~AliEveEventBufferHomer() {
 }
 
 
-
+///____________________________________________________________
 ULong64_t AliEveEventBufferHomer::GetEventIdFromSource() {
   ///see header file for documentation
   return fHomer->GetEventID();
@@ -76,7 +76,7 @@ void AliEveEventBufferHomer::AddToBuffer(TObject * event) {
   fBIndex[kTop] = CalculateNext(fBIndex[kTop]);
   TList * list = dynamic_cast<TList*>(fEventBuffer->At(fBIndex[kTop]));
   if(list) {
-    list->Clear();
+    list->Delete();
     list->AddAll(dynamic_cast<TList*>(event));
   }
 }