Fixing warnings
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveEventBufferHomer.cxx
index 420dbbb..fa5b055 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));
   }
 }
@@ -121,12 +121,12 @@ void AliEveEventBufferHomer::ConnectToSource () {
 ///_____________________________________________________________________
 void AliEveEventBufferHomer::WriteToFile(Int_t runnumber){
 
-  TFile * file = TFile::Open(Form("Run_%d_0x%016X_ESD.root", runnumber, GetEventId()), "RECREATE"); 
+  TFile * file = TFile::Open(Form("Run_%d_0x%016LX_ESD.root", runnumber, GetEventId()), "RECREATE"); 
   fEventBuffer->At(fBIndex[kCurrent])->Write("blockList", TObject::kSingleKey);
   file->Close();
   
   if(fAsyncList) {
-    TFile * afile = TFile::Open(Form("Run_%d_0x%016X_Async.root",  runnumber, GetEventId()), "RECREATE"); 
+    TFile * afile = TFile::Open(Form("Run_%d_0x%016LX_Async.root",  runnumber, GetEventId()), "RECREATE"); 
     fAsyncList->Write("blockList", TObject::kSingleKey);
     //aFile-
     afile->Close();