* 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;
+ AliRunLoader * GetRunLoader() const {return fInRunLoader;}
+
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(TObject&) const;
ClassDef(AliGenReaderTreeK,1) // Read particles from TreeK
};
-inline
-TParticle* AliGenReaderTreeK::GetParticle(Int_t i)
- {
- if (fStack && i<fNp) return fStack->Particle(i);
- return 0x0;
- }
+
#endif