Changing form statements from LX to llu to prevent warnings
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveEventBufferOffline.cxx
index dfac316..f16682a 100644 (file)
@@ -46,10 +46,11 @@ AliEveEventBufferOffline::AliEveEventBufferOffline(TString filename)  :
   }
 
   fTree = dynamic_cast<TTree *>(fFile->Get("HLTesdTree"));
-  cout << "File has " << fNEntries << "events" << endl;
-  fNEntries = fTree->GetEntries();
-  fEvent->ReadFromTree(fTree);
-  
+  if(fTree) {
+    fNEntries = fTree->GetEntries();
+    cout << "File has " << fNEntries << "events" << endl;
+    fEvent->ReadFromTree(fTree);
+  }
 }
 
 
@@ -109,7 +110,7 @@ void AliEveEventBufferOffline::ConnectToSource() {
 ///_____________________________________________________________________
 void AliEveEventBufferOffline::WriteToFile(Int_t runnumber){
   //Inherited from AliEveEventBuffer
-  TFile * file = TFile::Open(Form("%d_%x%016X_ESD.root", runnumber, GetEventId()), "RECREATE"); 
+  TFile * file = TFile::Open(Form("%d_0x%016llu_ESD.root", runnumber, GetEventId()), "RECREATE"); 
   fEventBuffer->At(fBIndex[kCurrent])->Write("blockList", TObject::kSingleKey);
   file->Close();
 }