**************************************************************************/
/* $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>
TString& AliGenReaderTreeK::GetDirName(Int_t entry)
{
+// Get the current directory name
+
TString* retval;//return value
if (fDirs == 0x0)
{
* See cxx source for full Copyright notice */
/* $Id$ */
-
+//
+// Realisation of AliGenReader to be used with AliGenExtFile
+// It reads events from a kinematics TreeK.
+// Author: andreas.morsch@cern.ch
+//
#include "AliGenReader.h"
#include "AliStack.h"
class TFile;
-class AliHeader;
class AliRunLoader;
+class AliStack;
class TString;
class TObjArray;
AliGenReaderTreeK & operator=(const AliGenReaderTreeK & rhs);
void SetDirs(TObjArray* dirs){fDirs = dirs;} //sets array directories names
void AddDir(const char* dirname);
- private:
- void Copy(AliGenReaderTreeK&) const;
+
protected:
Int_t fNcurrent; // points to the next entry
Int_t fNparticle; // Next particle in list
TString& GetDirName(Int_t entry);
TParticle* GetParticle(Int_t i);
-
+ private:
+ void Copy(AliGenReaderTreeK&) const;
ClassDef(AliGenReaderTreeK,1) // Read particles from TreeK
};