Fixing warnings
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveEventBufferHomer.cxx
index 9fea278..fa5b055 100644 (file)
@@ -35,9 +35,9 @@ 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));
   }
 }
@@ -107,7 +107,7 @@ void AliEveEventBufferHomer::Initialize() {
 
   fHomer->SetRetryCount(1,15);
   fHomer->SetBlockOwner(kFALSE);
-  fHomer->StartEveSourceListLoop();
+  //fHomer->StartEveSourceListLoop();
 }
 
 
@@ -121,13 +121,14 @@ void AliEveEventBufferHomer::ConnectToSource () {
 ///_____________________________________________________________________
 void AliEveEventBufferHomer::WriteToFile(Int_t runnumber){
 
-  TFile * file = TFile::Open(Form("%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("%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();
   }
 }