]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliEventBuffer.cxx
Change in the signature of base class method Use to avoid compilation warnings (icc)
[u/mrichter/AliRoot.git] / ANALYSIS / AliEventBuffer.cxx
index 2cd074ef06e422fee4701f1d215d3b1876a8adc9..983ef97761292f70cd16636c3cd4b631e29d3a3a 100644 (file)
@@ -39,6 +39,21 @@ AliEventBuffer::~AliEventBuffer()
 }
 /***********************************************************/
 
+void AliEventBuffer::Reset()
+{
+  //Resets the queue
+  if (fEvents.IsOwner())
+   { 
+     AliAOD* e=0x0;
+     while (( e=RemoveLast() )) delete e;
+   }
+  else
+   {
+     fEvents.RemoveAll();
+   } 
+}
+/***********************************************************/
+
 AliAOD* AliEventBuffer::Push(AliAOD* event)
 {
   //adds a new event, and returns old of do not fit in size