]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenReaderTreeK.cxx
1. i need to know pointer to parent inputhandler (In case i want to access
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderTreeK.cxx
index 035a89981e6e9780fbd211fcafb95c81b0470b0c..5f31a5b7312b6acc056c34fd1e3836dddf6b7b5a 100644 (file)
@@ -32,7 +32,7 @@
 #include "AliRun.h"
 #include "AliRunLoader.h"
 
-ClassImp(AliGenReaderTreeK);
+ClassImp(AliGenReaderTreeK)
 
 const TString AliGenReaderTreeK::fgkEventFolderName("GenReaderTreeK");
 
@@ -79,7 +79,7 @@ void AliGenReaderTreeK::Init()
 // Initialization
 // Connect base file and file to read from
 
-    TTree *ali = gAlice->TreeE();
+    TTree *ali = AliRunLoader::Instance()->TreeE();
     if (ali) {
       fBaseFile = ali->GetCurrentFile();
     } else {