]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenReaderTreeK.cxx
classes AliITSSortTrkl and AliITSTracklPairs temporarily removed from compilation
[u/mrichter/AliRoot.git] / EVGEN / AliGenReaderTreeK.cxx
index 241139fa81cbd03ed239c6e3ab651c8c50b088b3..09f54ff32acb6373a3394706f8c23ceeda62cf12 100644 (file)
  **************************************************************************/
 
 /* $Id$ */
-
+//
+// Realisation of AliGenReader to be used with AliGenExtFile
+// It reads events from a kinematics TreeK.
+// NextEvent() is used to loop over events 
+// and NextParticle() to loop over particles.  
+// Author: andreas.morsch@cern.ch
+//
 #include <TFile.h>
 #include <TTree.h>
 #include <TParticle.h>
@@ -26,7 +32,7 @@
 #include "AliRun.h"
 #include "AliRunLoader.h"
 
-ClassImp(AliGenReaderTreeK);
+ClassImp(AliGenReaderTreeK)
 
 const TString AliGenReaderTreeK::fgkEventFolderName("GenReaderTreeK");
 
@@ -73,7 +79,7 @@ void AliGenReaderTreeK::Init()
 // Initialization
 // Connect base file and file to read from
 
-    TTree *ali = gAlice->TreeE();
+    TTree *ali = AliRunLoader::GetRunLoader()->TreeE();
     if (ali) {
       fBaseFile = ali->GetCurrentFile();
     } else {
@@ -153,7 +159,7 @@ AliGenReaderTreeK& AliGenReaderTreeK::operator=(const  AliGenReaderTreeK& rhs)
     return *this;
 }
 
-void AliGenReaderTreeK::Copy(AliGenReaderTreeK&) const
+void AliGenReaderTreeK::Copy(TObject&) const
 {
     //
     // Copy 
@@ -165,6 +171,8 @@ void AliGenReaderTreeK::Copy(AliGenReaderTreeK&) const
 
 TString& AliGenReaderTreeK::GetDirName(Int_t entry)
  {
+// Get the current directory name
+
    TString* retval;//return value
    if (fDirs ==  0x0)
     {